You are not logged in.
Pages: 1
When I installed GRUB, I entered the command:
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB.
The result was:
grub-install:error: /usr/lib/grub /×86_64-efi/modinfo.sh doesn't exist. Please specify --target or --directory
How to deal with it?
Offline
According to the Wiki: First, install the packages grub and efibootmgr: GRUB is the boot loader while efibootmgr is used by the GRUB installation script to write boot entries to NVRAM.
So first: # pacman -S grub efibootmgr , then # grub-install --......
Offline
The grub-install command is supplied by the grub package so I think the OP has already done that. The efibootmgr package is pulled in by the grub package and anyway that would give a different error if it was missing.
@OP: check the named file actually exists, it should be there. If it isn't reinstall the grub package with pacman.
If the modinfo.sh file is present check the EFI system partition with
# parted --list
The EFI system partition should have the "boot, esp" flags. If it doesn't then correct it with
# parted /dev/sdX set Y esp on
Replace X with the drive letter and replace Y with the partition number for the ESP.
Otherwise check if the ESP is actually mounted under /boot/efi/ with
lsblk -o name,mountpoint
Make sure the --efi-directory option matches the ESP mountpoint. Note that /boot/efi/ is presumed by the grub-install command so if it is mounted there then the --efi-directory option can be omitted.
Out of curiosity: which guide did you follow when installing Arch?
Jin, Jîyan, Azadî
Offline
Was the error copy and pasted? it doesn't appear that x in x86_64 is actually an x
Last edited by Scimmia (2023-12-24 21:37:58)
Online
Was the error copy and pasted? it doesn't appear that x in x86_64 is actually an x
So how do you type × in archlinux?
Offline
Hold down <ctrl>+<shift> then type u00d7 and release all keys.
Back on topic: please answer the questions.
Last edited by Head_on_a_Stick (2023-12-25 11:37:51)
Jin, Jîyan, Azadî
Offline
Scimmia wrote:Was the error copy and pasted? it doesn't appear that x in x86_64 is actually an x
So how do you type × in archlinux?
You shouldn't be. The error seems to indicate you did that instead of using x, and that's why you're having a problem.
Online
Pages: 1