Well, not so sophisticated but useful nevertheless. Just to add - if you have a savefile or savefolder, the script will include that data in the created sfs file (less browser cache and trash items, etc. unless you want to keep it). After running the script, you can rename your existing savefile/folder so that it doesn't load at next boot. If you are happy with the result you can delete the savefile/folder and never use one again. The script is an EXAMPLE and you need to adapt it according to your setup and needs.

How to accomplish including Savefile or Savefolder ..
As far as i understood your Script does not work/create adrv.sfs when Save/File/Folder is loaded at bootup .?

Swap?? Hmmm, what??? I thought the whole point of using puppies (in fact, all related pup OSes too) was that a user never had to worry about either setting up a "swap" and/or using one? I nderstand why in bigger Linux OSes what swap does, and dutifully set it up in all the big Linux OSes I run. But who, and I guess more importantly WHY, has anyone in pup & pup-related land ever set up and/or used 'swap" with a pup? Even with 512mb of RAM, puppies won't use "swap" when running a pup OS designed for 512mb of less. Equally, you cannot run pups on 512mb ram or less that are designed for bigger amounts (i.e. the 64-bit pups, fatdog, tahr, etc, etc). I have never in the years since I started using pup back in ~2006-2007 ever set up a swap partition? Apologies if this all is ignorant ramblings and I should have been setting up "swap" partitions for all pups this whole time.

In this case i have to contradict your statement ........i have a whole lot of swapping going on on my old Thoshiba 3000 .......1 core ....1 gig Ram ...

I am using Zram which mostly helps avoiding Swaps to a Swap Partition.....but sometimes Ram gets out of Limits and additional Swap Partition will be used .Not very often.

Yup. I have 1GB Ram and sometimes Firefox freezes and I have to kill it then restart it if I don't have my 2GB swap partition.

Did you ever tried Zram ? ......useful if you have only 1 Gig or less Ram .
If not Google for it ....or if you are on Tahrpup .....just install with PPM.....
zram-config ...save.
After reboot it is activ .Almost no configuration .
Don`t know if there is a thread here on the Forum .....if not it would maybe useful.....for Machines with less Ram.

Even with 512mb of RAM, puppies won't use "swap" when running a pup OS designed for 512mb of less.

Well, all my Puppy installations to hard disk are frugal, and I always set up a swap partition. My 412 Retro machine has 96 MB RAM and 384 MB of swap. My Wary 5141 machine has 192 MB RAM and 1 GB of swap. On both of these machines, I do see the swap partition being used from time to time. Even my Precise machine with 1 GB RAM uses its swap partition now and then.

Swap?? Hmmm, what??? I thought the whole point of using puppies (in fact, all related pup OSes too) was that a user never had to worry about either setting up a "swap" and/or using one?

I guess it depends on how big your pup is, and how small your ram is - but remembering at all times that we don't just have the pup sitting idle in memory - we DO stuff with it.

eg: browser cache has to increase, calculating space has to be allocated for spreadsheets, word processing etc etc.

Then there's ripping of music and videos, and especially processing of videos - these can easily outstrip our available free ram.

What if your pup was 200MB, your savefile 512MB and your ram was 512MB. Already you have a problem. And what if you then load a decent sized Libreoffice sfs, maybe also Librecad, and then opened Chrome and did some browsing?

Uh-oh, tits up.

The worst situation is where the puppy keeps on running (ie doesn't crash) runs low on free ram and you keep on manipulating data. What gets written back to your savefile?

If you combine two issues - 1) Low ram due to no swap space and 2) long write times to usb stick - you get corruptions that are hard to explain.

I reckon that running without swap space should be limited to sessions where all data will be dumped at end of session, and no write attempts are made to usb or hard disk.

Remastering can use heaps of ram too - so i think swap space is compulsory for that type of operation also.

Why are some people so afraid to setup swap on their computers?
It is there to assist ram IF needed.
All it does is take up some space on whatever storage device you have swap on.

Most of the newer Puppies have swap usage setup to start when ram gets down to 40% free.

Why worry when that happens, just let it happen.

Do you really know what each program is doing with ram at all times?
No! _________________I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected

It is a bit like when you go into a store you pick up a basket to temporarily hold things. You may well put things back on the shelves before going to the checkout, paying, and tranferring to your own carrier._________________"Just think of it as leaving early to avoid the rush" - T Pratchett

Of course you can always set up a separate usb stick which has been formatted with only a swap partition - no data or boot partitions at all. That way if you run out of free ram your system can still run by using the swap space on that separate usb stick - and you can still unplug the other usb stick that contains your boot files and data.

But i think the original question remains - how to force savefile/savefolder to load into ram initially (and completely) during boot?

savefile is the first to be installed..
Savefile=your files storage (menu.lst).
So you need a savefile. Else how to know what to load at boot ? some german users told us to remasterize your ISO before shutdown.. Easy, clever idea.. _________________Passenger Pelo ! don't ask him to repair the aircraft. Don't use him as a demining dog .... pleeease.

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot attach files in this forumYou can download files in this forum