You are not logged in.
Hi all,
I made an attempt to replace GRUB with rEFInd but I have so far been unsuccessful in configuring rEFInd to get a list of bootable entries.
First things first my /etc/fstub file:
# /dev/nvme0n1p5
UUID=4acd123c-5044-474e-9b76-69fd5fa1fbe4 / ext4 rw,relatime 0 1
# /dev/nvme0n1p1
UUID=DE67-2CB1 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 2
# /dev/nvme0n1p4
# UUID=28fc9739-0b33-4d8b-8a63-4502b3701816 none swap defaults 0 0
# /dev/sda SSDS 1TB
UUID=d6ec69f4-1566-4426-aaf2-d449cd1f92a2 /home/bednar/SteamGames ext4 rw,relatime 0 1
# /dev/sdb External HDD 4TB
#UUID=0810b004-3bba-488d-ab1b-bca216a29970 /home/bednar/External ext4 rw,relatime 0 1
UUID=1CF6-3CA8 /home/bednar/External_Media exfat defaults,nofail,x-systemd.device-timeout=1ms,noauto,rw,uid=1000 0 1
# /tmp/
tmpfs /tmp tmpfs rw,nodev,nosuid,size=32G 0 0My boot partition looks as follows:
ls /boot/
amd-ucode.img EFI grub initramfs-linux.img initramfs-linux-lts.img refind_linux.conf 'System Volume Information' vmlinuz-linux vmlinuz-linux-ltsls /boot/EFI
Boot EFI GRUB Microsoft refind toolsand here are my 2 manual stanzas which don't boot. the screen flashes but then I am booted back to the rEFInd welcome screen:
menuentry "Arch Linux Stable" {
icon /EFI/refind/icons/os_arch.png
loader /boot/vmlinuz-linux
initrd /boot/initramfs-linux.img
options "root=UUID=4acd123c-5044-474e-9b76-69fd5fa1fbe4 rw noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier mds=off tsx=on tsx_async_abort=off mitigations=off amdgpu.ppfeaturemask=0xffffffff initrd=/boot/amd-ucode.img"
ostype Linux
}
menuentry "Arch Linux LTS" {
icon /EFI/refind/icons/os_arch.png
loader /boot/vmlinuz-linux-lts
initrd /boot/initramfs-linux-lts.img
options "root=UUID=4acd123c-5044-474e-9b76-69fd5fa1fbe4 rw noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier mds=off tsx=on tsx_async_abort=off mitigations=off amdgpu.ppfeaturemask=0xffffffff initrd=/boot/amd-ucode.img"
ostype Linux
}Any pointers where things could have gone wrong?
Thanks,
Last edited by Bednar (2022-10-11 13:15:00)
Offline
Your paths are wrong. See the warning here https://wiki.archlinux.org/title/REFInd … ot_stanzas
Offline
thanks. I assume you are referring to this:
loader and initrd paths are relative to the root of volume. If /boot is a separate partition (e.g. the ESP), the loader and initrd paths would be /vmlinuz-linux and /initramfs-linux.img, respectively.
in which case the paths should be as follows:
menuentry "Arch Linux Stable" {
icon /EFI/refind/icons/os_arch.png
loader /vmlinuz-linux
initrd /initramfs-linux.img
options "root=UUID=4acd123c-5044-474e-9b76-69fd5fa1fbe4 rw noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier mds=off tsx=on tsx_async_abort=off mitigations=off amdgpu.ppfeaturemask=0xffffffff initrd=/amd-ucode.img"
ostype Linux
}
menuentry "Arch Linux LTS" {
icon /EFI/refind/icons/os_arch.png
loader /vmlinuz-linux-lts
initrd /initramfs-linux-lts.img
options "root=UUID=4acd123c-5044-474e-9b76-69fd5fa1fbe4 rw noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier mds=off tsx=on tsx_async_abort=off mitigations=off amdgpu.ppfeaturemask=0xffffffff initrd=/amd-ucode.img"
ostype Linux
}correct?
Last edited by Bednar (2022-10-11 12:45:32)
Offline
I confirm this has resolved my issues. Thanks, marking as solved.
Offline
Although the path issue has resolved the problem in the title of this thread, and refind will likely continue to work fine for quite some time, I do note that there has been no upstream development in refind for around half a year, and it is increasingly looking like refind will become unmaintained into the future. With that in mind, I recently decided to switch from refind to systemd-boot since the latter is being kept updated with new features and any fixes to issues within a reasonable timescale. So systemd-boot looks like a good boot manager to use into the future.
Mike C
Offline