You are not logged in.
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
"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
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
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
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
Alright then, everything should work.
Did you arch-chroot before installing grub?
Offline
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
Then we'll need to see the output of lsblk -o +PARTTYPE
Offline
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
mtubarch wrote:mount --mkdir /dev/efi_system_partition /mnt/boot mount /dev/root_partition /mntThe 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