我正在尝试双启动 ubuntu 和 windows 10 pro。我有一个 m2 ssd,上面装有 windows,还有一个普通 ssd,上面装有 ubuntu。两个操作系统都运行良好。
当我尝试使用 grub 启动 Windows 时出现以下错误:
error: no such device: 6E4E-A0AB
error: file `/efi/Microsoft/Boot/bootmgfw.efi' not found
如果我重新启动 PC,首先打开 BIOS,然后再次退出,我可以在 grub 中选择 Windows,这次我不会收到错误,Windows 可以正常启动。如果我关闭 PC 或重新启动并尝试再次启动 Windows,我会收到相同的错误。
我可以正常启动 Ubuntu,没有任何问题。
sudo os-prober
在 ubuntu 中显示:
dev/nvme0n1p2@/efi/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
sudo update-grub
显示:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.0.0-27-generic
Found initrd image: /boot/initrd.img-5.0.0-27-generic
Found linux image: /boot/vmlinuz-5.0.0-23-generic
Found initrd image: /boot/initrd.img-5.0.0-23-generic
Found Windows Boot Manager on /dev/nvme0n1p2@/efi/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
done
有人能帮我解决 windows 上的 grub 问题吗?两个操作系统都在 uefi 模式下运行。我先安装了 Ubuntu,然后断开了 ssd,然后在 m2 ssd 上安装了 windows。不知道这算不算什么。
如果有人能帮助我,我将非常感激。
编辑:fstab 输出
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda2 during installation
UUID=89ca9766-ca28-4f94-afe2-2c65ad3dd0ef / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=26ED-3C0D /boot/efi vfat umask=0077 0 1
/swapfile```
lsblk output:
```NAME FSTYPE LABEL UUID MOUNTPOINT
sda
├─sda1 vfat 26ED-3C0D /boot/efi
└─sda2 ext4 89ca9766-ca28-4f94-afe2-2c65ad3dd0ef /
nvme0n1
└─nvme0n1p1 ntfs Everything B2B88650B88612D1
nvme1n1
├─nvme1n1p1 ntfs Recovery 0CF84E6AF84E51DE
├─nvme1n1p2 vfat 6E4E-A0AB
├─nvme1n1p3
└─nvme1n1p4 ntfs 76B8511AB850DA67```