You are not logged in.

#1 2023-11-27 21:07:34

korupcja
Member
Registered: 2023-11-27
Posts: 4

grub-install: error: failed to get canonical path of `/boot/efi`

I was installing Arch with LUKS encryption on my root partition, everything was going smoothly until i tried to install grub. I got the error "grub-install: error: failed to get canonical path of `/boot/efi` ."

The command I used was:

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

Checked lsblk and noticed that the mounting points seem to be interrupted. I'm not sure if it should be like that, I don't really know when it changed since I mounted boot partition to /boot/efi and root crypt under root partition to /mnt

The lsblk output in chroot shows the boot partition has no mounting point and the root crypt is mounted to /

Last edited by korupcja (2023-11-27 21:08:36)

Offline

#2 2023-11-27 21:27:26

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

Re: grub-install: error: failed to get canonical path of `/boot/efi`

korupcja wrote:

Checked lsblk and noticed that the mounting points seem to be interrupted. I'm not sure if it should be like that, I don't really know when it changed since I mounted boot partition to /boot/efi and root crypt under root partition to /mnt

The lsblk output in chroot shows the boot partition has no mounting point and the root crypt is mounted to /

Please post actual, verbatim output rather than vague descriptions, it's easier for you and less confusing for us. Thanks.

Offline

#3 2023-11-27 21:36:53

korupcja
Member
Registered: 2023-11-27
Posts: 4

Re: grub-install: error: failed to get canonical path of `/boot/efi`

How would I do this? I'm doing it on my laptop on a live environment. Also there is nothing really more to it, after executing this command I got this error, though I understand my description could be confusing.

EDIT: I could upload the photo of the output on imgur and post it here, unless there is an easier way

Last edited by korupcja (2023-11-27 21:43:03)

Offline

#4 2023-11-27 21:51:44

korupcja
Member
Registered: 2023-11-27
Posts: 4

Re: grub-install: error: failed to get canonical path of `/boot/efi`

Offline

#5 2023-11-27 21:56:34

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

Re: grub-install: error: failed to get canonical path of `/boot/efi`

You could have used https://wiki.archlinux.org/title/list_o … ted_client but anyway the photo shows that /boot/efi/ does not have any partitions mounted under it.

Offline

#6 2023-11-27 22:04:20

korupcja
Member
Registered: 2023-11-27
Posts: 4

Re: grub-install: error: failed to get canonical path of `/boot/efi`

After exiting chroot they are mounted properly, when I try to mount it i get an error that the mount point does not exist.
Should I just create the /boot/efi directory again and mount it to /dev/nvme0n1p1?

Last edited by korupcja (2023-11-27 22:05:17)

Offline

#7 2023-11-27 22:29:12

seth
Member
Registered: 2012-09-03
Posts: 52,372

Re: grub-install: error: failed to get canonical path of `/boot/efi`

In the chroot, what's the output of "ls /boot"?

Offline

Board footer

Powered by FluxBB