You are not logged in.

#1 2021-08-17 15:23:16

lucasgarciabertaina
Member
Registered: 2021-08-17
Posts: 3

grub-install: error: falied to get canonical path of /boot/EFI

I am installing arch linux in virtualbox I have the following disk partition:
/root: 16G mount /mnt
/EFI 580M mount /mnt/boot/EFI
/boot: 200M mount /mnt/boot
/var: 9G 9G mount /mnt/var
/swap: 4G (mkswap,swapon)
/home 5.2G mount /mnt/home

It turns out that when I install grub it does not identify the /boot/EFI folder. Help.

Offline

#2 2021-08-17 15:27:50

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,088

Re: grub-install: error: falied to get canonical path of /boot/EFI

What is "it"? You pick the command mentioned in https://wiki.archlinux.org/title/GRUB#Installation_2 and use --esp=/boot/EFI

But seeing this partition scheme, what was your mount order? If you want to do it like that you need to mount /boot before mounting /boot/EFI otherwise you mask the path.

Last edited by V1del (2021-08-17 15:29:14)

Offline

#3 2021-08-17 16:34:50

lucasgarciabertaina
Member
Registered: 2021-08-17
Posts: 3

Re: grub-install: error: falied to get canonical path of /boot/EFI

Thank you very much, I am a noob at this and it is very new to me. I will try as you say to see if it works.

Offline

#4 2021-08-17 19:17:28

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: grub-install: error: falied to get canonical path of /boot/EFI

If you're a 'noob' then I'd suggest not attempting such a complicated partitioning scheme, especially as it's a virtual installation.
All you need is a 500MB EFI partiton at /boot and the rest as /


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2021-08-17 20:24:20

Ammako
Member
Registered: 2021-07-16
Posts: 267

Re: grub-install: error: falied to get canonical path of /boot/EFI

For what it's worth, I have boot at /boot, efi at /boot/efi, and I never needed to do anything fancy to get grub to figure it out. Just grub-install. It's a pretty standard partitioning scheme used by basically every noob-friendly linux distro.

It's possible that you might just need to change the mount point to /boot/efi rather than /boot/EFI, because caps matter on Linux and that might lead to grub-install not being able to find it on its own. You would need to specify with --efi-directory=/boot/EFI as mentioned.

Last edited by Ammako (2021-08-17 20:27:36)

Offline

#6 2021-08-18 22:27:30

lucasgarciabertaina
Member
Registered: 2021-08-17
Posts: 3

Re: grub-install: error: falied to get canonical path of /boot/EFI

Thank you very much, it works now! big_smile (happy noob)

Offline

Board footer

Powered by FluxBB