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 Thu 09 Jul 2020, 02:19
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Shrink your Pup save file or Rescue data out of it
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message

Joined: 18 Nov 2006
Posts: 28
Location: Toronto, Ontario

PostPosted: Wed 20 Dec 2006, 22:17    Post subject:  Shrink your Pup save file or Rescue data out of it  

Although Puppy has a utility to easily resize the pup_save file; there is no easy way to shrink it.

This may be useful; for example, if you have a very large pup_save file that has a lot of empty space and you wish to either "compact it" or transfer it to a usb flash drive that is smaller.

First thing, the pup_save.3fs file is a overall container where your files are stored inside. Linux allows you to mount this file like a drive and play around with the files inside.

Thus, if you make a new pup_save file, open up/mount your old pup_save; you can copy the data over to the new save file.

So, the million dollar question for a newbie like myself - is how?


Step 1

Create a new pup_save file. ANY file that is named "pup_saveXXX.3fs" is fine where XXX can be anything.

There are 2 ways to do this easily. The first is to boot puppy with the boot option "pfix=ram". This will boot you into a first start/ram disk version of puppy. Then, when you exit/quit - it will prompt you to create a pup_save file. Just specify the size you want to create.

The more elegant way to do it is to actually use linux commands. The following commands were suggested by pizzasgood

dd if=/dev/zero of=file.2fs bs=1M count=20

will make a 20MB file named file.2fs. Then you can turn it into an ext2 filesystem:

mke2fs file.2fs

This is discussed in the following thread.

Ok, now you have an original pup_save.3fs file and a new pup_saveXXX.3fs file. Now to mount the files and copy the data over.

Step 2 Mount the files

The files can be mounted using linux commands. As suggested by pizzasgood.

That can be mounted with the mount command, which can be added to /etc/rc.d/rc.local:
mount file.2fs /mnt/data -o loop
That would mount it at /mnt/data (the '-o loop' bit is because it's a filesystem image, not a device).

HOWEVER, sunburnt has written an elegant little utility that will mount the 3fs file using point and click. You can download the xfilemount program here


THUS, just mount the old pup_save and the new one.

IF you used the pfix=ram/puppy linux method to create the new pup_save; I suggest that you delete all the data inside the new pup_save; otherwise, the GUI will prompt you whether you wish to ovewrite directories or files when you copy the old data over.

VERY IMPORTANT - make sure you know which is the source data and which is the new/destination drive. If you mix it up; you will frag all your important data.

Step 3

Just copy the data over to the new; mounted pup_save

Step 4

Unmount your files and next time you boot; just select the right file to load.

Hope this helps,

Back to top
View user's profile Send private message 

Joined: 25 Nov 2005
Posts: 2183
Location: Lincolnshire, England

PostPosted: Sat 30 Dec 2006, 01:26    Post subject: Excellent Tutorial  

A suburb resource to a problem thats been vexxing me for some time! Thanks for sharing.
Puppy Linux's Mission

Sorry, my server is down atm!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 

Joined: 04 Jan 2009
Posts: 15030
Location: Gatineau (Qc), Canada

PostPosted: Mon 10 Dec 2018, 11:38    Post subject:  

Hello all.

This post only to recirculate useful info that some Puppyists may need.
Although this is an old thread, the way to do this has not changed.


"You want it darker? We kill the flame." (L. Cohen)
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
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.0321s ][ Queries: 11 (0.0069s) ][ GZIP on ]