How do i fix 'grub-install: error: cannot find EFI directory.' ?
When trying to run: grub-install /dev/sda
i get this error message: grub-install: error: cannot find EFI directory.
What should i do? I really need help thanks
*beginner here*
EDIT 1: IVE SUCCESFULLY INSTALLED THE BASE SYSTEM but still gonna read the documentation
EDIT 2: IVE FINALLY END IT! I did it guys ive putted a window manager etc thank you guys for the help and support!
Edited 7 Jul 2021. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 4 · 74% up
- Kind
- Text
- ID
- oevirl
25 comments
You should probably follow the arch wiki grub page since that command is supposed to have more arguments than just the install location. https://wiki.archlinux.org/title/GRUB
thanks bro, but its too long and iam a beginner
Edit: now i understand that people are mad and i need to read the wiki
Welcome to Arch, better hope you know how to read
I also found it overwhelming at the beginning to read this long documentation. But you will really learn a lot by reading them and researching on the terminology or things you do not understand yet.
Alternatively you can also watch/follow video or written tutorials in parallel of using the wiki for the installation.
Good luck for your install!
Did you boot arch in UEFI or BIOS mode?
The command to install grub on an EFI system is
grub-install --efi-directory=(insert mount point of EFI directory). Did you make an EFI partition? If so, is it mounted?no(not 100% sure) iam following a tutorial: https://www.youtube.com/watch?v=GKdPSGb9f5s,
minute: 5:09
Ive COPIED HIM AT EVERYTHING, like machines names etc
He's installing on legacy boot but you're installing on EFI. These instructions cannot be strictly followed to install on an EFI system. Would highly recommend reading the official installation guide on the Arch wiki, but if you find videos easier to follow (which is valid), this Arch installation guide for an EFI system should work from what I can tell.
I would also highly recommend installing in a VM or on a crappy $30 laptop from eBay before installing on your main system.
This tutorial is from 4 years ago and so many things in the install process have changed
I got this a lot when I just started. Maybe it‘s because you tried to mount the boot partition first. That doesn‘t work because then you mount the boot partition to the boot folder of the live usb. You have to mount the root partition first and then mount the boot partition appropriately.
Have you made the /boot/EFI directory and mounted your EFI System Partition, and are you chrooted into the system or not?
Assuming your efi partition is /dev/sda1, create an efi directory in / (mkdir /efi) and mount to it (mount /dev/sda1 /efi)
Now do (grub-install /dev/sda —efi-directory=/efi —boot loader-id=GRUB)
This is assuming you are using efi, also remember to make sure /dev/sda1 is formatted to fat32.
All this can be found on the archwiki but I understand it can be overwhelming
That's because there is more arguments required than that. It's like 100 characters dude
Usually grub-install will automatically detect if your on BIOS or UEFI and will install accordingly.
My guess is that the EFI partition wasn't mounted, or it wasn't mounted in the right directory. I'm not sure if grub expects it to be mounted in
/boot/efi.Deleted before we saved it.