通过 Grub 启动多个 Windows 副本

通过 Grub 启动多个 Windows 副本

请查看我的 SSD 的结构,注意“DEV”是 Windows 10,“DAW”也是另一个 Windows 10:

nvme0n1                                                                          
├─nvme0n1p1 vfat   UEFI      D4F4-1F7A                             871.3M     8% /boot/efi
├─nvme0n1p2 swap             b18a8de1-5fe2-413b-8605-813c5baa77c0             [SWAP]
├─nvme0n1p3 ext4   UBUNTU    77018d89-077f-4076-9f2f-ba385addce9b  124.5G     8% /
├─nvme0n1p4 apfs             775b62e8-2e49-45d4-8460-46c7c8a79859                
├─nvme0n1p5 ntfs   DEV       EA3414BA34148C27                                    
├─nvme0n1p6 ntfs   DAW       7C8473EE8473A8F2                                    
└─nvme0n1p7

我可以从 grub 2 启动其中一个 Windows 操作系统,但是我想从 GRUB 启动两个 Windows 副本,解释我的问题的最简单方法是发布我的 GRUB 配置文件并附上注释,基本上我得到了 NTLR 错误,有什么想法可以解决吗?

谢谢!

# This entry works fine but only boots Windows on one partition.
# I need to boot the second Windows partition as well. Hence new boot entries below.
    # Note this is the only thing detected with sudo os-prober:

    menuentry "DAW - Windows 10" --class windows --class os {
        insmod part_gpt
        insmod fat
        search --no-floppy --fs-uuid --set=root D4F4-1F7A
        chainloader /EFI/Microsoft/Boot/bootmgfw.efi
    }

# The entry produces...
# error: file '/boot/grub/x86_64-efi/ntldr.mod' not found.
# error: can't find 'ntldr'
    menuentry "DEV - Windows 10" {
        insmod ntfs
        insmod ntldr
        insmod part_msdos
        search --no-floppy --fs-uuid --set=root EA3414BA34148C27
        ntldr /bootmgr                         
    }

#This entry produces...
#error: file '/boot/grub/x86_64-efi/ntldr.mod' not found.
#error: can't find 'ntldr'
    menuentry "DAW - Windows 10" {
        insmod ntfs
        insmod ntldr
        insmod part_msdos
        search --no-floppy --fs-uuid --set=root 7C8473EE8473A8F2
        ntldr /bootmgr                         
    }

相关内容