Ask Your Question

grub trouble, boot menu lost

asked 2015-09-22 04:50:48 -0500

pierods gravatar image

Hi all,

After Window$8 did something on my dual boot win8/fedora 22, my grub boot menu is lost.

At boot (UEFI), instead of getting the usual grub menu, I simply get a grub command prompt.

If I type exit. then I boot into Windows 8.

I managed to get back to linux by typing in:

set root=(hd0,5)/

linuxefi (hd0,5)/vmlinux...(my most recent kernel) root=/dev/sda7 selinux=0

initrdefi (hd0,5)/initramfs...(mymost recent initramfs)


Once booted, I tried:


and it went well, but:

grub2-install grub2-install: error: /usr/lib/grub/x86_64-efi/ doesn't exist. Please specify --target or --directory.

I am very much lost....any help is sincerely appreciated.

Additional info:

  • uname -a
  • 4.1.6-201.fc22.x86_64 #1 SMP Fri Sep 4 17:49:24 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

  • to make UEFI work with linux, i had to go into the bios and set it to something like "allow untrusted" or something of the kind.

  • [studio@linux-2 ~]$ efibootmgr -v

BootCurrent: 0014

Timeout: 0 seconds

BootOrder: 0014,0007,0015,0008,0009,000A,000B,000C,000D,000E,0013

Boot0000 Setup FvFile(721c8b66-426c-4e86-8e99-3457c46ab0b9)

Boot0001 Boot Menu FvFile(126a762d-5758-4fca-8531-201a7f57f850)

Boot0002 Diagnostic Splash Screen FvFile(a7d8d9a6-6ab0-4aeb-ad9d-163e59a7a380)

Boot0003 Lenovo Diagnostics FvFile(3f7e615b-0d45-4f80-88dc-26b234958560)

Boot0004 Startup Interrupt Menu FvFile(f46ee6f4-4785-43a3-923d-7f786c3c8479)

Boot0005 Rescue and Recovery FvFile(665d3f60-ad3e-4cad-8e26-db46eee9f1b5)

Boot0006 MEBx Hot Key FvFile(ac6fd56a-3d41-4efd-a1b9-870293811a28)

Boot0007* USB CD VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,86701296aa5a7848b66cd49dd3ba6a55)

Boot0008* USB FDD VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,6ff015a28830b543a8b8641009461e49)

Boot0009* ATAPI CD0 VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,aea2090adfde214e8b3a5e471856a35401)

Boot000A* ATA HDD0 VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f600)

Boot000B* ATA HDD1 VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f601)

Boot000C* ATA HDD2 VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f602)

Boot000D* USB HDD VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,33e821aaaf33bc4789bd419f88c50803)

Boot000E* PCI LAN VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,78a84aaf2b2afc4ea79cf5cc8f3d3803)

Boot000F* IDER BOOT CDROM PciRoot(0x0)/Pci(0x16,0x2)/Ata(0,1,0)

Boot0010* IDER BOOT Floppy PciRoot(0x0)/Pci(0x16,0x2)/Ata(0,0,0)

Boot0011* ATA HDD VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f6)

Boot0012* ATAPI CD VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,aea2090adfde214e8b3a5e471856a354)

Boot0013* PCI LAN VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,78a84aaf2b2afc4ea79cf5cc8f3d3803)

Boot0014* Fedora HD(2,GPT,2f832434-cdbc-4db7-88a0-78538be27729,0x1f4800,0x82000)/File(\EFI\fedora\shim.efi)

Boot0015* Windows Boot Manager HD(2,GPT,2f832434-cdbc-4db7-88a0-78538be27729,0x1f4800,0x82000)/File(\EFI \fedora\shim.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.}...)................

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2015-09-22 07:03:28 -0500

pnadk gravatar image

Maybe the tool grub-customizer can create a working menu for you?

sudo dnf install grub-customizer

sudo grub-customizer

edit flag offensive delete link more



Error while installing the bootloader

grub2-install: error: /usr/lib/grub/x86_64-efi/ doesn't exist. Please specify --target or --directory.

pierods gravatar imagepierods ( 2015-09-22 09:05:35 -0500 )edit

and it went well, but:

This doesn't do anything without arguments. Point it at your grub configuration file. There are instructions in the manpage or in dozens of other posts here.

grub2-install grub2-install: error: /usr/lib/grub/x86_64-efi/ doesn't exist. Please specify --target or --directory.

You don't do this on UEFI systems. On your system, you do not need to do this at all. You stated GRUB loads but drops into a prompt; you know grub is installed because it loads. If it is installed, it does not need to be installed.

randomuser gravatar imagerandomuser ( 2015-09-22 12:08:38 -0500 )edit

I do not understand. Is "grub2-install" started by the program grub-customizer?

pnadk gravatar imagepnadk ( 2015-09-23 02:43:47 -0500 )edit

Not that I know of; you customize the configuration, not the actual bootloader code. grub2-install is not needed here anyway.

randomuser gravatar imagerandomuser ( 2015-09-23 07:34:57 -0500 )edit

Ok, as randomuser says, once you are into grub, with EFI, you know it works.

I did grub2-mkconfig a few more times, and it worked - my boot menu reappeared.

pierods gravatar imagepierods ( 2015-09-24 03:43:32 -0500 )edit

answered 2016-02-20 13:34:36 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

dnf install grub2-efi-modules

That was the solution for me, and then grub2-install /dev/sda

edit flag offensive delete link more


Seems like this should work, but I get the "x86_64-efi/ doesn't exist" error even after installing grub2-efi-modules. I'm on Fedora 27 nowadays.

jons gravatar imagejons ( 2018-02-24 22:02:45 -0500 )edit

Question Tools

1 follower


Asked: 2015-09-22 04:50:48 -0500

Seen: 6,628 times

Last updated: Sep 22 '15