You are not logged in.

#1 2024-09-14 16:03:58

scarlet
Member
Registered: 2024-06-07
Posts: 19

[SOLVED]rEFInd cannot find loader file(btrfs subvolume)

I followed the arch wiki for boot from btrfs subvolume as root

# blkid
/dev/nvme1n1p2: UUID="822e11a9-b462-4780-b760-66f7a044d26a" TYPE="swap" PARTUUID="49f8b7db-674e-4fd4-b006-62d0780488ee"
/dev/nvme1n1p3: LABEL="archlinux" UUID="85d05a62-f25d-4aaf-bf1f-a6a12fcf8ccb" UUID_SUB="4daf31eb-3663-450e-9e2e-60dfe1d4aa67" BLOCK_SIZE="4096" TYPE="btrfs" PARTUUID="11c62a03-e8df-43ca-bfce-b4e111509938"
/dev/nvme1n1p1: UUID="20E8-FDAF" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="d4971610-2c16-4ef2-9436-6a425879ea04"

# parted -l
Number  Start   End     Size    File system     Name  Flags
 1      1049kB  1075MB  1074MB  fat32                 boot, esp
 2      1075MB  2149MB  1074MB  linux-swap(v1)        swap
 3      2149MB  1024GB  1022GB  btrfs

# lsblk -f
NAME        FSTYPE FSVER LABEL     UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
nvme1n1                                                                                
├─nvme1n1p1 vfat   FAT32           20E8-FDAF                             822.6M    20% /boot
├─nvme1n1p2 swap   1               822e11a9-b462-4780-b760-66f7a044d26a                [SWAP]
└─nvme1n1p3 btrfs        archlinux 85d05a62-f25d-4aaf-bf1f-a6a12fcf8ccb  782.4G    18% /home
                                                                                       /
 

my refind config

menuentry "Arch Linux" {
    icon     /EFI/refind/icons/os_arch.png
    volume   "archlinux"
    loader   /@/boot/vmlinuz-linux
    initrd   /@/boot/initramfs-linux.img
    options     "root=PARTUUID=11c62a03-e8df-43ca-bfce-b4e111509938 rw rootflags=subvol=@  nvidia_drm.modeset=1 nvidia_drm.fbdev=1 loglevel=5"
    # options  "root=PARTUUID=5028fa50-0079-4c40-b240-abfaf28693ea rw add_efi_memmap"
    submenuentry "Boot using fallback initramfs" {
        initrd /boot/initramfs-linux-fallback.img
    }
    submenuentry "Boot to terminal" {
        add_options "systemd.unit=multi-user.target"
    }
}

when i boot from that entry, errors occurs that loader is not found

Last edited by scarlet (2024-09-14 18:03:16)

Offline

#2 2024-09-14 16:14:46

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,732
Website

Re: [SOLVED]rEFInd cannot find loader file(btrfs subvolume)

The lsblk output indicates a separate /boot/ partition on the ESP so the loader & initrd paths should be relative to that (ie, /vmlinuz-linux & /initrams-linux.img).

Note that manual configuration is not recommended for rEFInd. Did you try the auto-detection feature?


Para todos todo, para nosotros nada

Offline

#3 2024-09-14 18:03:00

scarlet
Member
Registered: 2024-06-07
Posts: 19

Re: [SOLVED]rEFInd cannot find loader file(btrfs subvolume)

Thank you so much; after I changed the path to /vimlinuz, it works!

Offline

Board footer

Powered by FluxBB