You are not logged in.

#1 2021-06-10 22:12:22

highfrequencyhertz
Member
Registered: 2021-05-30
Posts: 16

Failed to get canonical path of /efi when installing grub.

So when I was not chrooted I did

mkdir /mnt/efi

then I mounted my efi partition to /mnt/efi with

mount /dev/sdb1 /mnt/efi

I then chrooted and attempted to install grub like this

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

but it says

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

What is going wrong?

Last edited by highfrequencyhertz (2021-06-10 22:13:47)

Offline

#2 2021-06-10 22:26:48

merlock
Member
Registered: 2018-10-30
Posts: 176

Re: Failed to get canonical path of /efi when installing grub.

highfrequencyhertz wrote:

So when I was not chrooted I did

mkdir /mnt/efi

then I mounted my efi partition to /mnt/efi with

mount /dev/sdb1 /mnt/efi

Did you mount your new root partition to /mnt prior to the above?


It's a big club...and you ain't in it -- George Carlin
Eenie meenie, chili beanie, the spirits are about to speak -- Bullwinkle J. Moose
Registered Linux user #149839
perl -e 'print$i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10); '

Offline

#3 2021-06-10 22:29:04

highfrequencyhertz
Member
Registered: 2021-05-30
Posts: 16

Re: Failed to get canonical path of /efi when installing grub.

No, I mounted the efi system partition first, then the root partition.

Last edited by highfrequencyhertz (2021-06-10 22:30:11)

Offline

#4 2021-06-10 22:47:59

loqs
Member
Registered: 2014-03-06
Posts: 13,862

Re: Failed to get canonical path of /efi when installing grub.

highfrequencyhertz wrote:

No, I mounted the efi system partition first, then the root partition.

Mounting /mnt after /mnt/efi hides /mnt/efi beneath the new /mnt.

Offline

#5 2021-06-10 22:50:33

highfrequencyhertz
Member
Registered: 2021-05-30
Posts: 16

Re: Failed to get canonical path of /efi when installing grub.

Oh, thanks! I guess I have to REALLY follow the installation guide.

Offline

Board footer

Powered by FluxBB