Cannot find EFI directory

6

1

I'm new at Arch Linux and I'm trying to install it on my laptop. When I try to use this command:

grub-install --recheck /dev/sda

I get error messages like this:

Installing for x86_64-efi platform.

grub-install: error: cannot find EFI directory.

Just want to know what I did wrong.

osman-coskun

Posted 2016-10-26T03:21:21.867

Reputation: 61

I haven't checked every option, but GAD3R's answer looks correct. I do want to point out, though, that GRUB 2 is not the only option. See this page of the Arch Linux wiki for a summary of BIOS and EFI boot loaders. You can click the name of a boot loader on that page to see detailed instructions on how to install it under Arch. Most Arch wiki pages are pretty good.

– Rod Smith – 2016-10-30T18:03:53.590

Answers

2

Create an ESP partition Fat32 , the minimum size is 100MiB , the recommended size is 512 MiB then run the following command :

grub-install --target=x86_64-efi --efi-directory=esp --bootloader-id=grub --boot-directory=esp --debug

Regenerate grub.cfg

grub-mkconfig -o esp/grub/grub.cfg

GAD3R

Posted 2016-10-26T03:21:21.867

Reputation: 2 677