Merging Adrv & Save File? [Solved]

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
Jasper
Posts: 1686
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 716 times
Been thanked: 384 times

Merging Adrv & Save File? [Solved]

Post by Jasper »

Hi there

I wanted to know if it would be possible to merge these together to create a new Adrv and replace my existing original one?

Would there be a benefit in doing this?

**Edit just re-read rockedge's Read Me First post "When Puppy boots up, the compressed Puppy Linux files are copied into computer memory. Puppy can then run its entire operating system, AND applications, completely from this image in memory. "

My initial thought was to save some memory, but that does not appear so.

Last edited by Jasper on Mon Oct 31, 2022 7:25 am, edited 1 time in total.
ozsouth
Posts: 1422
Joined: Sun Jul 12, 2020 2:38 am
Location: S.E. Australia
Has thanked: 220 times
Been thanked: 624 times

Re: Merging Adrv & Save File?

Post by ozsouth »

@Jasper - you can merge savefile data into an adrv (or ydrv). I made an sfs editor to assist that - see: https://oldforum.puppylinux.com/viewtop ... e#p1028687.
Generally sfs load order into ram is puppy, zdrv, fdrv, adrv, ydrv, so combining contents will help to a degree (don't mess with zdrv & only add firmware to fdrv). The issue you have is if you make changes, then want to undo them. adrv & ydrv, being loaded later, will overwrite earlier drv contents, and savefile overwrites later, but if you remove an overwrite, the original reappears.

User avatar
Jasper
Posts: 1686
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 716 times
Been thanked: 384 times

Re: Merging Adrv & Save File?

Post by Jasper »

@ozsouth

Thank you again. It's just exactly what I wanted :thumbup2:

I foolishly added a static FFMpeg binary and it used up a lot of my Save file. Forcing me to increase the size again.

I use my OS for browsing and multimedia playback mostly. So, I don't plan on adding additional software.

Your kernel 6x has made a marked difference for me :thumbup:

williams2
Posts: 1036
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 297 times

Re: Merging Adrv & Save File? [Solved]

Post by williams2 »

My initial thought was to save some memory, but that does not appear so

If you want to save the 500MB or so that the sfs files take in ram,
you can use the pfix=nocopy kernel option.

it's not really a kernel option the kernel passes it to Puppy's init(rd)

User avatar
Jasper
Posts: 1686
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 716 times
Been thanked: 384 times

Re: Merging Adrv & Save File? [Solved]

Post by Jasper »

@williams2

Thanks for the tip!! :thumbup:
I have added it to my boot file.

Post Reply

Return to “Users”