F22 :: EFI boot :: grub2 does not find Windows 8.1 - solved

Pete Travis lists at petetravis.com
Sun May 31 19:27:17 UTC 2015


On 05/31/2015 01:27 AM, Adrian Sevcenco wrote:
> On 05/31/2015 03:04 AM, Pete Travis wrote:
>> Grub does not live in the MBR of a drive on UEFI systems.  It's a UEFI
>> executable file on the EFI system partition.  In Fedora, the relevant
>> bits come from a completely different package.  You could try something
>> like this:
>>
>>     - Set up a chroot with appropriate bind mounts (
>> https://fedorapeople.org/groups/docs/multiboot-guide/html/common_operations_appendix.html#common-chroot_from_live
>> )
>>     - # dnf remove grub
>>     - # dnf install grub2-efi shim
>>     - Create an efi boot entry (the one in your paste is from the live
>> image)
>>        
>> https://fedorapeople.org/groups/docs/multiboot-guide/html/GRUB-reinstalling.html
>>
>> It's a somewhat complicated and involved process; if you've just
>> installed Fedora it may be easier to reinstall.
> Thanks for info! basically what i tried was what you said (with chroot and recreate entry with efibootmgr)
> but without that reinstall of grub2-efi and shim .. it did not worked well with creating the efi entry.. 
> so, making sure that i have a uefi only bios, i reinstalled and things worked out: 

I wouldn't expect it to work if you skipped the step where you install
the UEFI bootloader package for Fedora.  Anyway, I'm glad you were able
to get a working system.

> Generating grub configuration file ...
> Found linux image: /boot/vmlinuz-4.0.4-301.fc22.x86_64
> Found initrd image: /boot/initramfs-4.0.4-301.fc22.x86_64.img
> Found Windows Boot Manager on /dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi
>
> [root at x360 fedora]# efibootmgr -v
> BootCurrent: 0001
> Timeout: 5 seconds
> BootOrder: 0001,3001,0002,2001,2002,2004
> Boot0001* Fedora        HD(2,c8800,82000,f5495ca8-ccea-4573-afe6-ec42fb4cdb01)File(\EFI\fedora\shim.efi)
> Boot0002* Windows Boot Manager  HD(2,c8800,82000,f5495ca8-ccea-4573-afe6-ec42fb4cdb01)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.}...e................
> Boot2001* EFI USB Device        RC
> Boot3001* Internal Hard Disk or Solid State Disk        RC
>
> One more clarification i would like:
> what is the difference between the loaders?:
> gcdx64.efi
> grubx64.efi
> MokManager.efi
> shim.efi
> shim-fedora.efi
>
> the shim part i know that is for secure boot (which is disabled in my case).
> what are the others? is there a wiki page explaining this files?
>
> Thank you!
> Adrian
>
>
>

There might be wiki pages that explain all this, but wiki pages can be
hard to find and often get lost and unmaintained, so I wrote a guide
instead.  It doesn't explain the individual files at the moment
(although there is some copy in the sources for it) because it's
information that you don't really need to get the system going, and I
didn't want to overwhelm new users. I'll look at adding the info in an
appropriate section.

Until then, grubx64.efi is the actual grub second stage binary,
MokManager.efi is for signature management, shim is the part that is
signed and allows SecureBoot to work.

-- 
-- Pete 



More information about the users mailing list