r/archlinux • u/Lilanit77 • 3d ago
SUPPORT Problems installing grub
I'm new and following a tutorial
So I tipped: mkdir /boot/EFI
mount /dev/sda1 /boot/EFI
grub-install --target=x86_64-efi --bootloader-id=grub_uefi --recheck
And it gave me error: cannot find EFI directionary
Can someone help
The tutorial was
https://youtu.be/U8uMmsJQTZM?is=K5CBhT3Zo9hc3X7X
At one hour
0
Upvotes
8
u/WhirlPloof 3d ago edited 3d ago
First of all you should mount to /boot not /boot/EFI. Second of all the error occurs because you need to supply the path to the directory to grub-install with the --efi-directory flag. So the correct command is: grub-install --target=x86_64-efi --bootloader-id=GRUB --efi-directory=/boot --recheck