You are not logged in.

#1 2023-12-24 16:17:42

Boolan-Q
Member
Registered: 2023-12-24
Posts: 8

Install GRUB

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

#2 2023-12-24 17:13:24

Morlock
Member
Registered: 2022-06-20
Posts: 12

Re: Install GRUB

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

#3 2023-12-24 19:19:50

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,744
Website

Re: Install GRUB

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?

Offline

#4 2023-12-24 21:37:36

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,599

Re: Install GRUB

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)

Offline

#5 2023-12-25 03:28:57

Boolan-Q
Member
Registered: 2023-12-24
Posts: 8

Re: Install GRUB

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?

Offline

#6 2023-12-25 10:45:09

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,744
Website

Re: Install GRUB

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)

Offline

#7 2023-12-25 12:28:03

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,599

Re: Install GRUB

Boolan-Q wrote:
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.

Offline

Board footer

Powered by FluxBB