METROIDHunter_ n00b
Joined: 14 Mar 2023 Posts: 10
|
Posted: Tue Mar 14, 2023 11:30 pm Post subject: rEFInd: Invalid loader file! Error: Not Found |
|
|
Hello everyone,
I built a new PC this weekend and I've installed Gentoo. Now I'm trying to boot into my new installation.
I've installed rEFInd and my UEFI loads it when I turn on my PC. When I attempt to boot my new Gentoo installation through rEFInd, I get this message from rEFInd:
Quote: | Starting vmlinuz-6.1.12-gentoo-x86_64
Using load options 'root=/dev/disk/by-label/LINUX-MULTI rw rootflags-subvol=@gentoo quiet dolvm initrd=\initramfs-6.1.24-gentoo-x86_64.img'
Invalid loader file!
Error: Not Found while loading vmlinuz-6.1.12-gentoo-x86_64 |
I am using a custom rEFInd boot stanza for Gentoo, & this is because I'm using lvm for most of my disk and BTRFS for my root partition.
This is the rEFInd boot stanza in question:
Code: |
menuentry "Gentoo Linux" {
icon /EFI/refind/icons/os_gentoo.png
volume BOOT
loader /vmlinuz-6.1.12-gentoo-x86_64
initrd /initramfs-6.1.12-gentoo-x86_64.img
options "root=/dev/disk/by-label/LINUX-MULTI rw rootflags-subvol=@gentoo quiet dolvm"
}
|
I use volume BOOT because my /boot partition is on /dev/disk/by-label/BOOT, formatted as ext4.
Instead of volume BOOT, I also tried volume <partuuid>, which changed nothing.
I also used volume ThisDoesNotExist, and that also changed nothing about the error message.
I've installed sys-boot/refind with USE="btrfs ext4".
I can see ext4_x64.efi within /boot/efi/EFI/refind/drivers_x64 (not btrfs, but my /boot is on an ext4 partition so I don't expect that to matter. The rest of / is on btrfs)
I've already verified that I've made no typos in the boot stanza.
If it's relevant, the hard drive I'm installing this to is an NVMe SSD.
Really struggling to figure out why rEFInd can't locate my Gentoo Linux kernel. I'd appreciate any suggestions for troubleshooting or fixing this.
Before someone asks, I did try to use GRUB, although it's not what I'd prefer. GRUB failed with an error message that said "Unknown filesystem" - I believe this might be relevant to my rEFInd issue...
I also had issues trying to install EFI boot entries into my UEFI NVRAM along the way, although I believe that's no longer the problem since rEFInd was able to install itself and I can boot into it consistently. I just can't boot Gentoo.
Thanks for reading. I appreciate any suggestions. _________________ The signature is a lost art. |
|