Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 25 Nov 2017, 02:13
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Keep your savefile slim and healthy
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 11 of 11 [159 Posts]   Goto page: Previous 1, 2, 3, ..., 9, 10, 11
Author Message
OverDrive

Joined: 02 Jan 2006
Posts: 171
Location: Cleveland, OHIO,USA

PostPosted: Thu 12 May 2016, 22:32    Post subject: I found this little Gem  

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:
Quote:
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! Very Happy

Hope this helps others.

OverDrive

_________________
Instant Puppy Fan!!!
Back to top
View user's profile Send private message 
kuman

Joined: 02 Apr 2016
Posts: 116

PostPosted: Tue 21 Jun 2016, 19:45    Post subject:  Saving the Puppy file in Lucid version 5.2.8
Subject description: n/a
 

There's a way to avoid saving it after every session w/o losing the new data from it?
Back to top
View user's profile Send private message 
mikeslr


Joined: 16 Jun 2008
Posts: 2020
Location: 500 seconds from Sol

PostPosted: Wed 20 Jul 2016, 13:43    Post subject: Lupu 5.2.8 + PupSaveConfig  

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/viewtopic.php?p=457081#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/viewtopic.php?p=662326#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
Back to top
View user's profile Send private message 
Sailor Enceladus

Joined: 22 Feb 2016
Posts: 1291

PostPosted: Wed 20 Jul 2016, 14:06    Post subject: Re: Saving the Puppy file in Lucid version 5.2.8
Subject description: n/a
 

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.
Back to top
View user's profile Send private message 
friendofjane


Joined: 29 Nov 2012
Posts: 15
Location: europe

PostPosted: Wed 22 Mar 2017, 11:37    Post subject:  

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
Back to top
View user's profile Send private message 
corvus


Joined: 12 Jun 2015
Posts: 126
Location: In the peninsula shaped like a boot.

PostPosted: Wed 22 Mar 2017, 12:32    Post subject:  

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.

_________________
Hoc unum scio, me nihil scire. Socrate
Back to top
View user's profile Send private message 
friendofjane


Joined: 29 Nov 2012
Posts: 15
Location: europe

PostPosted: Wed 22 Mar 2017, 15:37    Post subject:  

Thank you for your answser.

Quote:
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:
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?

Quote:
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
Back to top
View user's profile Send private message 
corvus


Joined: 12 Jun 2015
Posts: 126
Location: In the peninsula shaped like a boot.

PostPosted: Wed 22 Mar 2017, 18:33    Post subject:  

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:

Quote:
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.

_________________
Hoc unum scio, me nihil scire. Socrate
Back to top
View user's profile Send private message 
friendofjane


Joined: 29 Nov 2012
Posts: 15
Location: europe

PostPosted: Wed 22 Mar 2017, 21:18    Post subject:  

Ok. Thank you, I think I understand better now.
_________________
Distro: Ubuntu Tahr 64 6.0.5 on usb stick
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 11 of 11 [159 Posts]   Goto page: Previous 1, 2, 3, ..., 9, 10, 11
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

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


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0529s ][ Queries: 12 (0.0090s) ][ GZIP on ]