Keep your savefile slim and healthy

How to do things, solutions, recipes, tutorials
Message
Author
OverDrive
Posts: 178
Joined: Mon 02 Jan 2006, 05:07
Location: Cleveland, OHIO,USA

I found this little Gem

#151 Post by OverDrive »

I searched a few times several years ago about the size of icon-themes.cache.

Mine was like 22 meg and taking up a lot of my savefile.

Never found anything back then but I decided to search again as it starting to really be the biggest file in my slim savefile.

Sure enough I hit paydirt when Geoffry posted this in a reply last year.

Here is the link: http://www.murga-linux.com/puppy/viewtopic.php?t=97944

Here is the paydirt snippet:
I now remember why I added
Code:
gtk-update-icon-cache -f -i /usr/share/icons/hicolor


petget updates the icon cache where the SFS loader didn't in early versions, this has been fixed so adding this will be of no benefit.

While on the subject of icon cache, I used the "-i" option,
Quote:
-i, --index-only Don't include image data in the cache

this keeps the size of the hicolor/icon-theme.cache from becoming bloated

icon-theme.cache with gtk-update-icon-cache -f /usr/share/icons/hicolor 37.6 MB (37,607,348 Bytes)

icon-theme.cache with gtk-update-icon-cache -f -i /usr/share/icons/hicolor 97.7 kB (97,708 Bytes)

I thank vovchik for pointing this out to me.
WHAM !! Shrunk a 22meg file down to 8k! :D

Hope this helps others.

OverDrive
Instant Puppy Fan!!!

kuman

Saving the Puppy file in Lucid version 5.2.8

#152 Post by kuman »

There's a way to avoid saving it after every session w/o losing the new data from it?

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

Lupu 5.2.8 + PupSaveConfig

#153 Post by mikeslr »

Hi kuman

Your post is a little confusing. I think what you want to do is the following:

(1) move the my-documents folder out of /root and symlink it back. I suggest you move it to the same partition on which Lupu is located as that partition is automatically mounted on bootup. Puppy and the applications running under it will still "see" my-documents folder as being in /root and offer to save-to or open-from that folder without your having to browse to it. The data created by applications, however, will not be in your SaveFile. The data will have been written by your applications to the drive/partition on which /my-documents is now physically located.

(2) Install Shinobar's PupSaveConfig, http://www.murga-linux.com/puppy/viewto ... 081#457081. It functions slightly different than the similarly named one by Barry K, which was used in Lupu.

(3) Apply the first two instructions on this post: http://www.murga-linux.com/puppy/viewto ... 326#662326. Remember to Save on Shutdown/reboot. Try it a couple of times to see if its working. To test, put a file in /root -- any file, text or jpg-- shut down, don't Save and see if it's there when you boot up. If it didn't shutdown without Saving, apply jpep's third step. I have a dim recollection of having to use it in Lupu. I prefer not writing to Etc if I can avoid it. The test will show if its necessary,

Once you can shutdown without Saving, you'll only want to Save when you've (1) changed some setting; (2) installed a new application or (3) want an SFS to load at boot, or no longer want it to.

mikesLr

Sailor Enceladus
Posts: 1543
Joined: Mon 22 Feb 2016, 19:43

Re: Saving the Puppy file in Lucid version 5.2.8

#154 Post by Sailor Enceladus »

kuman wrote:There's a way to avoid saving it after every session w/o losing the new data from it?
If you like the manual approach, I think /initrd/pup_rw is the folder what you want, but I don't have lucid.

User avatar
friendofjane
Posts: 15
Joined: Thu 29 Nov 2012, 23:54
Location: europe

#155 Post by friendofjane »

Hi,

I hope it is ok that I put my question here.

If it's not the right place, I apologize and please tell me where the question has to be.

My question is how to save the save folder so I can restore my stystem ist in the case of a problem?

For years I used Puppy Precise 5.7.1 on a usb stick and I handled a save file. More than once the copy of the save file saved my system when I had experimented something what destroyed the OS. I booted on the copy of the save file and I got my system back.

Can I do the same thing with the save folder?

As you can see, I have Ubuntu Tahr64 6.0.5 on usb stick and I like the save folder. The OS now boots more quickly and I don't have to bother any more about the size of the save file.

But on my first install, I did something wrong with the save folder (I don't remember now what), then the system was gone (it didn't boot any more). Perhaps I copied the save folder into another folder, but I'm not shure.

So is it possible to have a copy of the save folder which allows to restore a clean state of the system in the case of a problem, and if its possible, how I can do that?

Can I organize in a way that I have the choice to boot on one of multiple save folders?

Thank you.
Distro: Ubuntu Tahr 64 6.0.5 on usb stick

User avatar
corvus
Posts: 153
Joined: Fri 12 Jun 2015, 18:00
Location: In the peninsula shaped like a boot.

#156 Post by corvus »

Personally once I have my puppy personalized and saved in a savefolder I start puppy with pfix=ram once started right click on the savefolder and choose Packit, I use the tar.xz compression.
Once you created the compressed folder save it elsewhere and if your savefolder becomes corrupt simply boot with pfix=ram delete your actual savefolder and restore it decompressing the previously created file in its place.
friendofjane wrote: Can I organize in a way that I have the choice to boot on one of multiple save folders?
As I know, you can give a suffix to your savefolder, for example: "tahr64save-mario", creating multiple savefolder with various suffixes, during boot you will be asked which one to choose.
I hope I explained myself well.
[b]We are waves of the same sea, leaves of the same tree, flowers of the same garden.[/b]

User avatar
friendofjane
Posts: 15
Joined: Thu 29 Nov 2012, 23:54
Location: europe

#157 Post by friendofjane »

Thank you for your answser.
Personally once I have my puppy personalized and saved in a savefolder I start puppy with pfix=ram once started right click on the savefolder and choose Packit, I use the tar.xz compression.
Ok. How do you start with pfix=ram?
In my home folder I found a file, extlinux.conf with the following lines:

Code: Select all

default puppy
display boot.msg
prompt 1
timeout 50

F1 boot.msg
F2 help.msg
F3 help2.msg

label puppy
kernel vmlinuz
append initrd=initrd.gz pmedia=usbflash pfix=copy
Do I have to edit this file and replace pfix=copy with pfix=ram?

Could I also pack and compress the save folder with my personalized puppy, without booting with pfix=ram?
As I know, you can give a suffix to your savefolder, for example: "tahr64save-mario", creating multiple savefolder with various suffixes, during boot you will be asked which one to choose.
So I should create an empty folder tahr64-save-mario2 for example, choose this folder at boot and personalize the system with this folder? Did I understand right?
Distro: Ubuntu Tahr 64 6.0.5 on usb stick

User avatar
corvus
Posts: 153
Joined: Fri 12 Jun 2015, 18:00
Location: In the peninsula shaped like a boot.

#158 Post by corvus »

friendofjane wrote:Do I have to edit this file and replace pfix=copy with pfix=ram?
Yes, if you want, by adding the following lines:
label puppy without savefolder
kernel vmlinuz
append initrd=initrd.gz pmedia=usbflash pfix=ram
I do it during the bootsplash when asked to change the boot string by pressing the TAB key, changing pfix=copy in pfix=ram.
friendofjane wrote:Could I also pack and compress the save folder with my personalized puppy, without booting with pfix=ram?
It's not a good idea, I did it but when I used the backup to restore my savefolder a message was displayed like puppy was not shutdown correctly.
friendofjane wrote:So I should create an empty folder tahr64-save-mario2 for example, choose this folder at boot and personalize the system with this folder? Did I understand right?
I do not know if this method can work, when I need to create a new savefolder I do starting with pfix=ram and during the first shutdown procedure when asked "Would you like to customise the name of the tahr64save?" I enter a suffix.
[b]We are waves of the same sea, leaves of the same tree, flowers of the same garden.[/b]

User avatar
friendofjane
Posts: 15
Joined: Thu 29 Nov 2012, 23:54
Location: europe

#159 Post by friendofjane »

Ok. Thank you, I think I understand better now.
Distro: Ubuntu Tahr 64 6.0.5 on usb stick

User avatar
elephante_of_randomness
Posts: 5
Joined: Wed 25 Mar 2020, 02:18
Location: GTA, ONTARIO, CANADA

10 print hello world. new install, old machine.

#160 Post by elephante_of_randomness »

was very frustrated with a series of not particularly functional bodhi install processes. this cheap old machine i purchased to replace a dead cheap old machine, which was running bunsen crunchbang joyfully for as long as it did. then nothing.

so far so good. every install is a process. but since i started with an ubuntu distro on an eepc a bunch of years ago, i've been only too pleased to put in the necessary work. been installing and tweaking.

hello world, as they say.
_______________________________________________
"Only a fish could sleep in this tent," Jamie grumbled.
~ from [u]Curse of the Viking Grave[/u], Farley Mowat

Post Reply