You are not logged in.

#1 2023-02-16 17:31:17

mtubarch
Member
From: Italy
Registered: 2023-02-16
Posts: 46

[SOLVED] grub-install error during installation

Hi everyone. I installed Arch Linux in my main machine last April 2022. Now, I am trying to install it on another laptop, following the official guide.
I have created the partitions, then:

mkfs.fat -F 32 /dev/efi_system_partition
mkfs.btrfs /dev/root_partition
mkswap /dev/swap_partition

After it I mounted:

mount --mkdir /dev/efi_system_partition /mnt/boot
mount /dev/root_partition /mnt
swapon /dev/swap_partition

No errors until GRUB installation:

grub-install --target=x86_64-efi --efi-directory=boot --bootloader-id=GRUB
error message: grub-install: error: boot doesn’t look like an EFI partition

What can I do?
Thank you in advance for the help.

Last edited by mtubarch (2023-02-16 19:17:36)

Offline

#2 2023-02-16 18:04:04

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,717

Re: [SOLVED] grub-install error during installation

"boot" isn't a full path. You missed the leading slash.

/dev/efi_system_partition makes me think you're using lvm, though. The firmware can't read that, it's not going to boot.

Last edited by Scimmia (2023-02-16 18:05:13)

Offline

#3 2023-02-16 18:10:00

mtubarch
Member
From: Italy
Registered: 2023-02-16
Posts: 46

Re: [SOLVED] grub-install error during installation

I have tried
$ grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
but I got the same error

About
$ mount --mkdir /dev/efi_system_partition /mnt/boot
I followed the Arch Wiki. What should I do?
Thanks

Offline

#4 2023-02-16 18:12:08

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,717

Re: [SOLVED] grub-install error during installation

Now I'm questioning whether you meant /dev/mapper/efi_system_partition as I originally thought or if you're using efi_system_partition as a placeholder instead of giving us actual info. Which is it?

Offline

#5 2023-02-16 18:15:27

mtubarch
Member
From: Italy
Registered: 2023-02-16
Posts: 46

Re: [SOLVED] grub-install error during installation

Sorry for the misunderstanding, I have used "efi_system_partition", "root_partition" and "swap_partition" as placeholders. The actual code was
$ mount --mkdir /dev/sda1 /mnt/boot

Last edited by mtubarch (2023-02-16 18:16:48)

Offline

#6 2023-02-16 18:18:33

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,717

Re: [SOLVED] grub-install error during installation

Alright then, everything should work.

Did you arch-chroot before installing grub?

Offline

#7 2023-02-16 18:19:59

mtubarch
Member
From: Italy
Registered: 2023-02-16
Posts: 46

Re: [SOLVED] grub-install error during installation

Yes, using
$ arch-chroot /mnt
and, despite everything, I got the error described above

Last edited by mtubarch (2023-02-16 18:23:54)

Offline

#8 2023-02-16 18:24:47

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,717

Re: [SOLVED] grub-install error during installation

Then we'll need to see the output of lsblk -o +PARTTYPE

Offline

#9 2023-02-16 18:25:21

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] grub-install error during installation

mtubarch wrote:
mount --mkdir /dev/efi_system_partition /mnt/boot
mount /dev/root_partition /mnt

The EFI system partition should be mounted after the root partition, not before: https://wiki.archlinux.org/title/Instal … le_systems


Jin, Jîyan, Azadî

Offline

#10 2023-02-16 19:12:32

mtubarch
Member
From: Italy
Registered: 2023-02-16
Posts: 46

Re: [SOLVED] grub-install error during installation

Head_on_a_Stick wrote:
mtubarch wrote:
mount --mkdir /dev/efi_system_partition /mnt/boot
mount /dev/root_partition /mnt

The EFI system partition should be mounted after the root partition, not before: https://wiki.archlinux.org/title/Instal … le_systems

I tried in a VM: you are right. Now it works. Thank you very much for your help.

Offline

Board footer

Powered by FluxBB