7

I was facing grub rescue issue in linux. However i was able to login in the OS with below tutorial https://www.lisenet.com/2014/grub2-rescue-mode-error-unknown-filesystem/. I have to upgrade grub to fix the problem.
I am getting error grub-install: error: cannot find EFI directory
I have filesystem as below
`sda4, sda5, sda6 for EFI system, linux swap, linux file system respectively.
I am not much experienced using mount or other commands.

grub-install /dev/sda
grub-install: error: cannot find EFI directory.

Thanks

  • add to your answer what command you ran exactly that resulted in the error. – jdwolf Nov 19 '17 at 2:35
6

When you run grub-install by default it assumes the EFI system is mounted as /boot/efi

It depends on your distribution where EFI system is mounted and on some distributions it isn't mounted after boot.

First check if /boot/efi is mounted with

mount | grep /boot/efi

If that doesn't work try

mount | grep /dev/sda6

To see if its amounted elsewhere. If neither do:

mount /dev/sda6 /mnt

Now run:

grub-install --efi-directory=/mnt/efi
grub-mkconfig -o /boot/grub/grub.cfg
  • 1
    Thanks, In the grub-install --efi-directory=/boot/EFI as i chroot into /mnt. – krishnakant Nov 26 '17 at 19:20
0

Grub rescue mode can be treated as

set root=(hd0,gpt6)
set prefix=(hd0,gpt6)/boot/grub
insmod normal
normal

Once you login, enter sudo update-grub && sudo grub-install /dev/sda.

  • Should the grub-install not the done before the update-grub? – danger89 Oct 18 '18 at 22:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.