You are not logged in.

#1 2021-04-17 17:17:54

palmighty
Member
Registered: 2021-04-06
Posts: 14

rEFInd stanza for GParted live: Invalid loader file

I downloaded GParted live archive and extracted it to /dev/sda4. The GParted guide explains installation with grub, but since I'm not using grub I wanted to give it a shot adding a manual entry to rEFInd. This is the pratition tree.

NAME        MOUNTPOINT    LABEL         SIZE TYPE FSTYPE
sda                                   111.8G disk 
├─sda1                    Recovery      499M part ntfs
├─sda2                                   99M part vfat
├─sda3                                   16M part 
├─sda4                    ARCH_202104  16.1G part vfat
└─sda5                    Data         95.1G part ntfs
sdb                                   931.5G disk 
├─sdb1                                    1M part 
├─sdb2                                   15M part 
├─sdb3                    Main        833.8G part ntfs
└─sdb4      /mnt/ArchData              97.7G part ext4
nvme0n1                               931.5G disk 
├─nvme0n1p1                              16M part 
├─nvme0n1p2               Main M.2      433G part ntfs
└─nvme0n1p3 /             Arch        494.6G part ext4

rEFInd is installed on sda2 and GParted is on sda4(ARCH_202104) and in refind.conf I've added an entry like so:

menuentry "GParted Live" {
    icon     /EFI/refind/icons/os_linux.png
    volume   "ARCH_202104"
    loader   /live/vmlinuz
    initrd   /live/initrd.img
    options  "root=/dev/sda4 rw add_efi_memmap"   
}

Restarting and booting from that new entry in rEFInd yields the error

Invalid loader file. Error not found while loading.

And it yanks me back to rEFInd loader. In the end I let rEFInd scan for new entries itself, it adds it correctly and I can boot GParted, but when I add the stanza manually it's not working. I want to know what was the mistake I made?

Last edited by palmighty (2021-04-17 17:18:30)

Offline

#2 2021-04-17 18:16:25

Wild Penguin
Member
Registered: 2015-03-19
Posts: 399

Re: rEFInd stanza for GParted live: Invalid loader file

Well, first I don't see what this question has to do with Arch Linux? So, there's the first mistake smile. A more appropriate place would be gparted specific forum, or rEFInd forum (as this seems to be a rEFInd configuration issue).

Second, the philosophy of rEFInd is exactly that you don't create manual stanzas, instead let it find stuff to boot manually.

I would look into the contents of the partition labeled "ARCH_202104", as you have not listed them. I've glanced at the zip file I found via gparted.org and the instructions, and to me it seems you are trying to boot BIOS (Legacy) loaders. I'm not sure rEFInd can use those. It probably finds the stuff in the EFI directory automatically. If you really insist on making a manual stanza, you probably need to point there (but I don't see the point - no pun intended!).

Last edited by Wild Penguin (2021-04-17 18:35:10)

Offline

#3 2021-04-17 19:47:23

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,687

Re: rEFInd stanza for GParted live: Invalid loader file

There is a gparted-like add on mentioned in the rEFInd wiki that you can consider, a GPT fdisk. That probably is the closest to what you are trying to do.

Last edited by d_fajardo (2021-04-17 19:50:45)

Offline

Board footer

Powered by FluxBB