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```