Skip to content

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.

4 points24 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
4 · 74% up
Kind
Text
ID
oevirl

Author

8
posts
13
comments
0
media
View profile

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

8 points

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

-7 points

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!

7 points

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?

3 points

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

1 points

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.

3 points

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.

3 points

Have you made the /boot/EFI directory and mounted your EFI System Partition, and are you chrooted into the system or not?

3 points

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

3 points

That's because there is more arguments required than that. It's like 100 characters dude

2 points

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.

3 points
unknown author

Deleted before we saved it.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.