You are not logged in.

#1 2023-04-18 06:03:22

mtubarch
Member
From: Italy
Registered: 2023-02-16
Posts: 46

[SOLVED]GRUB update

After GRUB update pacman notified me:

To use the new features provided in this GRUB update, it is recommended to install it to the MBR or UEFI. Due to potential configuration incompatibilities, it is advised to run both, installation and generation of configuration:
$ grub-install ...
$ grub-mkconfig -o /boot/grub/grub.cfg

I used the same command used to install grub when installing Arch Linux:

sudo grub-install --target=x86_64-efi --efi-directory=boot --bootloader-id=GRUB

but I got this error:

Installing for x86_64-efi platform.
grub-install: error: failed to get canonical path of `boot'.

The output of:

$ ls -l /boot

is

total 105508
drwxr-xr-x 3 root root 	4096 Apr  7 10:58 EFI/
drwxr-xr-x 6 root root 	4096 Apr  7 11:00 grub/
-rwxr-xr-x 1 root root 74246089 Apr 15 15:57 initramfs-linux-fallback.img*
-rwxr-xr-x 1 root root 14199002 Apr 15 15:57 initramfs-linux.img*
-rwxr-xr-x 1 root root  7066624 Feb 15 03:22 intel-ucode.img*
-rwxr-xr-x 1 root root 12512192 Apr 15 15:57 vmlinuz-linux*

I have already read the Wiki on GRUB.
What are the correct commands to update grub properly?
Thank you very much in advance.

Last edited by mtubarch (2023-04-18 17:24:39)

Offline

#2 2023-04-18 06:25:10

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,676

Re: [SOLVED]GRUB update

Shouldn't this be

--efi-directory=/boot

Offline

#3 2023-04-18 11:02:49

mtubarch
Member
From: Italy
Registered: 2023-02-16
Posts: 46

Re: [SOLVED]GRUB update

skunktrader wrote:

Shouldn't this be

--efi-directory=/boot

Thanks for reporting the error.  In light of this and the output of "ls -l /boot", what are the correct commands to update grub?

Offline

#4 2023-04-18 12:25:14

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,255

Re: [SOLVED]GRUB update

sudo grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
sudo grub-mkconfig -o /boot/grub/grub.cfg

Last edited by V1del (2023-04-18 12:26:10)

Offline

#5 2023-04-18 12:48:20

mtubarch
Member
From: Italy
Registered: 2023-02-16
Posts: 46

Re: [SOLVED]GRUB update

V1del wrote:
sudo grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
sudo grub-mkconfig -o /boot/grub/grub.cfg

Thank you!
During the installation I used the command:

grub-install --target=x86_64-efi --efi-directory=boot --bootloader-id=GRUB

without "/" before "boot". Can this affect the proper functioning and updating of GRUB?
If so, what should I do?
Thanks again.

Last edited by mtubarch (2023-04-18 12:53:27)

Offline

#6 2023-04-18 13:53:11

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,255

Re: [SOLVED]GRUB update

As you've seen by the error message that prompted you to start this thread, that's either impossible, or you working directory was / which would then lead to the same logical end goal and will not make a difference.

Offline

Board footer

Powered by FluxBB