Ask Your Question
1

Grub won't boot Windows 7, but EFI will

asked 2016-11-18 05:17:15 -0500

fat-lobyte gravatar image

updated 2016-11-18 07:33:42 -0500

Hi! I have Fedora 24 installed alongside Windows 7.

I am able to boot Fedora kernels just fine, but whenever I try to boot the Windows installation, nothing happens. The boot just gets stuck displaying a single underscore _ , and no other error messages.

When I go into the grub2 command prompt, and try

chainloader /EFI/Microsoft/Boot/bootmgfw.efi
boot

the same thing happens: the screen just freezes, becomes unresponsive and Windows doesn't boot.

The strange thing is: if I choose Windows from my Bios startup options, it boots perfectly fine.

System information:

  • System: Lenovo ThinkPad x230
  • Partition Type: gpt
  • Boot Type: UEFI
  • Secure Boot: OFF

Output of efibootmgr:

...
Boot0018* Windows Boot Manager
Boot0019* Windows Boot Manager
Boot001A* Fedora

Boot entry information for Windows:

$ efibootdump Boot0018
Boot0018: * Windows Boot Manager HD(2,GPT,a299fff2-ba84-4596-b79e-8e13940485e2,0x40800,0x32000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)

Boot entry information for Windows:

$ efibootdump Boot0019
Boot0019: * Windows Boot Manager HD(2,GPT,a299fff2-ba84-4596-b79e-8e13940485e2,0x40800,0x32000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...a.................

As you see, I have two boot entries in the EFI boot manager, but they both work perfectly fine.

Entry for windows in /etc/grub2-efi.cfg:

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/sda2)' --class windows --class os $menu
entry_id_option 'osprober-efi-D601-A70F' {
        insmod part_gpt
        insmod fat
        set root='hd0,gpt2'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  D601-A70F
        else
          search --no-floppy --fs-uuid --set=root D601-A70F
        fi
        chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
### END /etc/grub.d/30_os-prober ###

As you can see, there is nothing really special going on. There isn't really a difference between GRUB and EFI, both seem to only want to load /EFI/Microsoft/Boot/bootmgfw.efi, but for some reason, GRUB gets stuck while EFI doesn't.

Does anyone know how to fix Grub to start my Windows?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-11-22 08:17:40 -0500

fat-lobyte gravatar image

updated 2016-12-02 03:54:04 -0500

Update: apparently this is a known bug in recent versions of GRUB, but has been fixed since:

https://bugzilla.redhat.com/show_bug....

You can wait for the update to arrive through the Fedora update repository. Alternatively, you can install the fixed packages directly from Koji:

get root rights (enter the root password when prompted)

su -
dnf install https://kojipkgs.fedoraproject.org//work/tasks/5694/16685694/grub2-2.02-0.34.2.fc24.x86_64.rpm https://kojipkgs.fedoraproject.org//work/tasks/5694/16685694/grub2-efi-2.02-0.34.2.fc24.x86_64.rpm https://kojipkgs.fedoraproject.org//work/tasks/5694/16685694/grub2-efi-modules-2.02-0.34.2.fc24.x86_64.rpm https://kojipkgs.fedoraproject.org//work/tasks/5694/16685694/grub2-starfield-theme-2.02-0.34.2.fc24.x86_64.rpm https://kojipkgs.fedoraproject.org//work/tasks/5694/16685694/grub2-tools-2.02-0.34.2.fc24.x86_64.rpm
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-11-18 05:17:15 -0500

Seen: 501 times

Last updated: Dec 02 '16