I have an UEFI/GPT system with Grub2 booting Slackware on sda and UEFI/GPT booting Windows on sdb.
I want to add Windows to the gub list as it was not added automatically.
I have seen this
Quote:
(Find the UUID of the FAT32 filesystem in the UEFI SYSTEM PARTITION where the Windows UEFI Bootloader files reside. For example, if Windows bootmgfw.efi exists at /boot/efi/efi/Microsoft/Boot/bootmgfw.efi (ignore the upper-lower case differences since that is immaterial in FAT fs):
# grub-probe --target=fs_uuid /boot/efi/efi/Microsoft/Boot/bootmgfw.efi
1ce5-7f28
Then, add this code to grub.cfg to chainload Windows x86_64 (Vista SP1+, 7 or 8) installed in UEFI-GPT mode :
menuentry "Windows x86_64 UEFI-GPT" {
search --fs-uuid --no-floppy --set=root 1ce5-7f28
chainloader (${root})/efi/Microsoft/Boot/bootmgfw.efi
|
So I tried mounting the small FAT partition containing efi/Microsoft/Boot/bootmgfw.efi and
managed to get out a code. But this would not boot and I had an error - unrecognised code.
I have also seen this
Quote:
Chainload Microsoft Windows x86_64 UEFI-GPT Find the UUID of the FAT32 filesystem in the UEFI SYSTEM PARTITION where the Windows UEFI Bootloader files reside. For example, if Windows bootmgfw.efi exists at /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi (ignore the upper-lower case differences since that is immaterial in FAT filesystem):
# grub-probe --target=fs_uuid /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi
1ce5-7f28
# grub-probe --target=hints_string /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi
--hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1
Then, add this code to /boot/grub/grub.cfg OR /boot/efi/EFI/grub/grub.cfg to chainload Windows x86_64 (Vista SP1+, 7 or 8) installed in UEFI-GPT mode:
menuentry "Microsoft Windows x86_64 UEFI-GPT" {
insmod part_gpt
insmod fat
insmod search_fs_uuid
insmod chain
search --fs-uuid --no-floppy --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 1ce5-7f28
chainloader /efi/Microsoft/Boot/bootmgfw.efi
}
|
but grub-probe did not like the instruction # grub-probe --target=hints_string
Any ideas?
TIA