I am trying to dual boot ubuntu and windows 10 pro. I have a m2 ssd with windows on it and a normal ssd with ubuntu on it. Both OS work fine.
When I try to boot windows with grub I get this error:
error: no such device: 6E4E-A0AB
error: file `/efi/Microsoft/Boot/bootmgfw.efi' not found
If I then restart my pc and first open the bios and then exit again, I can choose windows in grub and this time I dont get the errors and it boots windows fine. If I then shut my pc down or restart and try to boot in to windows again I get the same error.
I can boot in to Ubuntu just fine no problems with that.
sudo os-prober
in ubuntu shows:
dev/nvme0n1p2@/efi/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
sudo update-grub
shows:
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
Can anyone help me resolve my grub problem with windows. Both OS run in uefi mode. I first had Ubuntu installed than disconnected that ssd and than installed windows on the m2 ssd btw. Dont know if that is something.
I would be very thankfull if someone can help me with this.
Edit: fstab output
#
# 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```
sudo-update grub
and it should work. But grub only boots working Windows, and that includes that Windows fast start up must be off. http://askubuntu.com/questions/843153/ubuntu-16-showing-windows-10-partitions Also many have needed UEFI updates and SSD firmware updates. You may want to confirm that UUID of FAT32 partition ESP with Windows .efi files matches grub's boot stanza UUID.cat /etc/fstab
andlsblk -af |grep -sv loop
(excludes snaps). – oldfred Sep 12 '19 at 15:06cat /boot/grub/grub.cfg
orsudo nano /boot/grub/grub.cfg
– oldfred Sep 12 '19 at 22:30This is in that file for windows:
– Sunil Kisoensingh Sep 12 '19 at 22:36update-grub
-output in your question it is/dev/nvme0n1p2@/efi/Microsoft/Boot/bootmgfw.efi
but the partition with the matching UUID is/dev/nvme1n1p2
in thelsblk
-output. – mook765 Sep 13 '19 at 03:44