Booting Windows using GRUB2

Using apt-get install grub-customizer to install the tool we can start adding the correct stuff. From here add an entry and select “Chain Loader”. This will produce and entry like this;

set root='(hd1,1)'
search --no-floppy --fs-uuid --set 0C7ABF867ABF6ADA
drivemap -s (hd0) ${root}
chainloader +1

I my case this did not work (most likely because I use Windows 10 with MBR instead of GPT). So I had to adjust it using the following tweaks

insmod chain
insmod ntfs
insmod part_msdos
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set 0C7ABF867ABF6ADA
chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi

Inserting the chain, NTFS and part_msdos mods allowed the partitions to be read. Setting my root to hd1,msdos1 came as a result of experimenting with the grub_rescue tool and using the ls command. I also had to diverge from using the chainloader +1 to supplying the actual location of the bootmgfw.efi file.

Hopefully this helps some more people because I spend the better part of 3 hours figuring this all out!

Leave a Reply

Your email address will not be published. Required fields are marked *