How to define savefile/dir and sfs to load at boot from refind?

Moderators: kirk, jamesbond, p310don, JakeSFR, step, Forum moderators

Post Reply
libertas
Posts: 79
Joined: Thu Apr 22, 2021 8:35 pm
Has thanked: 12 times
Been thanked: 2 times

How to define savefile/dir and sfs to load at boot from refind?

Post by libertas »

Hi,

I've already setup a SFS file comprised of some software and can load it successfully from the control panel/menu | System | System SFS Loader.

It would be even better if I could load the SFS file in the boot process.
Tried two entries in refind.conf using the parameter extrasfs as mentioned at
https://distro.ibiblio.org/fatdog/web/f ... tions.html.

One uses the add_options rEFInd option:

Code: Select all

menuentry "Fatdog64 Linux with save dir and sfs" {
    icon /EFI/boot/icons/os_fatdog.png
    volume PUPPIES
    initrd \FD901\initrd
    loader /FD901/vmlinuz
    options "savefile=ram:uuid:6e301609-8536-4989-871f-b4e1c7a47915:FatDog/fd64save waitdev=5"
    add_options "extrasfs=uuid:6e301609-8536-4989-871f-b4e1c7a47915:FatDog/project3.sfs waitdev=5"
}

In this second one I just appended the 'extrasfs=...' stuff to the options line, using a ; as separator:

Code: Select all

menuentry "Fatdog64 Linux with save dir and sfs2" {
    icon /EFI/boot/icons/os_fatdog.png
    volume PUPPIES
    initrd \FD901\initrd
    loader /FD901/vmlinuz
    options "savefile=ram:uuid:6e301609-8536-4989-871f-b4e1c7a47915:FatDog/fd64save waitdev=5;extrasfs=uuid:6e301609-8536-4989-871f-b4e1c7a47915:FatDog/project3.sfs waitdev=5"
}

None of them worked.
How should I do it?

LateAdopter
Posts: 124
Joined: Sat Aug 15, 2020 5:10 pm
Been thanked: 19 times

Re: How to define savefile/dir and sfs to load at boot from refind?

Post by LateAdopter »

When I was experimenting, I never worked out how to do a manual mode of refind, I let it scan for bootable systems. In that case the Fatdog configuration was in a file called refind_linux.conf in the same directory as the Fatdog kernel and initrd.

Mine has this content:

Code: Select all

"Boot with nano" "waitdev=3 savefile=direct:label:XORO:/fd811sd/fd64save.ext4 mergeinitrd1=label:XORO:/fd811sd/initrd initrd=fd811sd\initrd-nano"
"Boot with Mega" "waitdev=3 savefile=direct:label:XORO:/fd811sd/fd64save.ext4" initrd=fd811sd\initrd

That worked OK.

libertas
Posts: 79
Joined: Thu Apr 22, 2021 8:35 pm
Has thanked: 12 times
Been thanked: 2 times

Re: How to define savefile/dir and sfs to load at boot from refind?

Post by libertas »

Doing rEFInd manually is working fine.
Loading SFS it's not.
Still searching for a way to do it since the hyperlink I posted suggests it's possible.

jamesbond
Posts: 718
Joined: Tue Aug 11, 2020 3:02 pm
Location: The Pale Blue Dot
Has thanked: 124 times
Been thanked: 402 times

Re: How to define savefile/dir and sfs to load at boot from refind?

Post by jamesbond »

libertas wrote: Thu May 30, 2024 9:10 am

In this second one I just appended the 'extrasfs=...' stuff to the options line, using a ; as separator:

Code: Select all

menuentry "Fatdog64 Linux with save dir and sfs2" {
    icon /EFI/boot/icons/os_fatdog.png
    volume PUPPIES
    initrd \FD901\initrd
    loader /FD901/vmlinuz
    options "savefile=ram:uuid:6e301609-8536-4989-871f-b4e1c7a47915:FatDog/fd64save waitdev=5;extrasfs=uuid:6e301609-8536-4989-871f-b4e1c7a47915:FatDog/project3.sfs waitdev=5"
}

The second one should work, except that you have spurious "waitdev=5;" before the extrasfs=. If you like the options like this, it should work:

Code: Select all

options "savefile=ram:uuid:6e301609-8536-4989-871f-b4e1c7a47915:FatDog/fd64save extrasfs=uuid:6e301609-8536-4989-871f-b4e1c7a47915:FatDog/project3.sfs waitdev=5"
Post Reply

Return to “FatDog”