I have a quad-boot setup (KDE Neon Unstable, Ubuntu MATE developer release (aka “Rolling Rhino”), Windows 10 & Arch) on my laptop. I just installed Arch an hour ago. I’m getting this error when trying to boot it using rEFInd:
Invalid loader file!
Error: Not found while loading vmlinuz-linux
I installed Arch on my laptop’s secondary drive and formatted using Btrfs, and the ESP is on the primary. rEFInd was installed few weeks back with KDE Neon, if that helps.
In rEFInd, the Arch entry is looking for my ESP even after I already changed the PARTUUID
to look for my Arch partition.
I noticed that in /boot/efi/EFI/refind/drivers_x64/
, it only had drivers for ext4, so I copied Btrfs driver from /usr/share/refind/refind/drivers_x64
.
Following instructions on Arch Wiki about setting up rEFInd, here’s the menu entry for Arch on my laptop:
menuentry "Arch Linux" {
icon /EFI/refind/icons/os_arch.png
volume "Arch"
loader /boot/vmlinuz-linux
initrd /boot/initramfs-linux.img
options "root=PARTUUID=12c1d277-ab6f-764f-aa41-92a11fd1b4c5 rw rootfstype=btrfs add_efi_memmap initrd=boot\intel-ucode.img"
submenuentry "Boot using fallback initramfs" {
initrd /boot/initramfs-linux-fallback.img
}
submenuentry "Boot to terminal" {
add_options "systemd.unit=multi-user.target"
}
}
I tried using the PARTUUID
from my EFI partition and my Arch partition, but no go.
I also double checked if subvolumes exist on that partition, but none exist:
$ sudo btrfs subvolume list /mnt
ID 258 gen 20 top level 5 path var/lib/portables
ID 259 gen 21 top level 5 path var/lib/machines
Is there something I’m missing?