I've had a look at a few other questions here (such as GRUB does not detect Windows), however, many of the options that have been voted up don't work.
Currently my 40_custom
file looks like the below (after a few different attempts):
#8AEC5322EC5307B9
menuentry "Windows 10" --class windows --class os {
insmod ntfs
search --no-floppy --set=root --fs-uuid 88F44DC9F44DB9E8
#chainloader +1
ntldr /bootmgr
}
When using this this I get the error cannot find command ntldr
. if i comment out the above and change to chainloader +1
i get the error invalid efi file path
.
I suspect the problem is that when I installed Windows 10, it was "kind" enough to use a different storage device to one I installed Windows on for the System Reserved
location. I won't lie, I wasn't frilled at it's choice, but nevermind. As a result the boot files are on /dev/sda1
(with the ID 88F44DC9F44DB9E8
) and Windows 10 itself is on /dev/sdb1
. Ubuntu is installed on a nvme device.
os-prober
doesn't detect Windows 10 (yes, both the partitions are mounted in ubuntu when I run it) and update-grub
doesn't detect it either.
I can still boot to Windows 10 at least, however, to do it I need to hit Esc in grub and then type exit
in the command line. I'll then be greeted with the Windows 10 logo.
Anyone any ideas here? I'm guessing I need to use a command like set root='(hd0,1)'
, but I'm honestly not sure which values need to go in for the parameters.
PasteBin link for boot-repair
logs.
Relevant boot-repair
section:
=================== Suggested repair
The default repair of the Boot-Repair utility would purge (in order to unsign) and reinstall the grub2 of nvme0n1p2 into the MBRs of all disks (except live-disks and removable disks without OS).
Grub-efi would not be selected by default because: no-win-efi
Additional repair would be performed: unhide-bootmenu-10s fix-windows-boot
=================== Blockers in case of suggested repair
GPT detected. Please create a BIOS-Boot partition (>1MB, unformatted filesystem, bios_grub flag). This can be performed via tools such as Gparted. Then try again.
Alternatively, you can retry after activating the [Separate /boot/efi partition:] option.
=================== Advice in case of suggested repair
EFI detected. You may want to retry after activating the [Separate /boot/efi partition:] option.
Do you want to continue?
=================== Final advice in case of suggested repair
Please do not forget to make your BIOS boot on nvme0n1 (WDS500G2X0C-00L350) disk!
=================== User settings
The settings chosen by the user will not act on the boot.