You are not logged in.

#1 2018-09-28 17:57:29

bazalia
Member
Registered: 2017-12-11
Posts: 6

[Solved] grub-install: error: failed to get canonical path of 'udev'

I am trying to install arch on my laptop that has a UEFI system.

I followed the wiki word by word till the boot loader installation where I tried to install GRUB.

The wiki says esp is the EFI system partition mount point, which for me was /dev/nvme0n1p1

But running the following command:

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

But got the following message:

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

What am I missing?

Last edited by bazalia (2018-09-29 08:27:32)

Offline

#2 2018-09-29 08:16:29

nl6720
The Evil Wiki Admin
Registered: 2016-07-02
Posts: 592

Re: [Solved] grub-install: error: failed to get canonical path of 'udev'

/dev/nvme0n1p1 is not a mount point, it's the path to the device file.
Read EFI system partition#Mount the partition.

Offline

#3 2018-09-29 08:26:38

bazalia
Member
Registered: 2017-12-11
Posts: 6

Re: [Solved] grub-install: error: failed to get canonical path of 'udev'

Thank you for the reply.

It seems that when I mounted my boot partition using

mount /dev/nvme0n1p1 /mnt/boot

I thought that /dev/nvme0n1p1 was the mount point when it should've been /mnt/boot.

grub-install ran fine when I used "--efi-directory=/boot" instead.

Offline

#4 2021-06-27 17:45:15

toni
Member
Registered: 2011-10-15
Posts: 437

Re: [Solved] grub-install: error: failed to get canonical path of 'udev'

bazalia wrote:

Thank you for the reply.

It seems that when I mounted my boot partition using

mount /dev/nvme0n1p1 /mnt/boot

I thought that /dev/nvme0n1p1 was the mount point when it should've been /mnt/boot.

grub-install ran fine when I used "--efi-directory=/boot" instead.

I had the same error. In my case was because EFI system partition was formatted as ext4 and it seems GRUB does not support it. I formatted EFI system partition to FAT32 and then it worked.
I have no idea why this is not working if EFI system partition is formatted to ext4 since in this link it is being said GRUB supports ext4.
Could anyone tell me why grub-install is failing when EFI system partition is formatted as ext4?

As it is stated here in the answer by Tom Yan, EFI system partition must be formatted as FAT32 using:

mkfs.fat -F32 /dev/sdaX

Where X corresponds to your EFI system partition.

Offline

Board footer

Powered by FluxBB