You are not logged in.
Pages: 1
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.cfgI used the same command used to install grub when installing Arch Linux:
sudo grub-install --target=x86_64-efi --efi-directory=boot --bootloader-id=GRUBbut 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 /bootis
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
Shouldn't this be
--efi-directory=/bootOffline
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
sudo grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
sudo grub-mkconfig -o /boot/grub/grub.cfgLast edited by V1del (2023-04-18 12:26:10)
Offline
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=GRUBwithout "/" 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
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
Pages: 1