Revision [19530]
This is an old revision of SquashfsPuppy1 made by darkcity on 2011-11-16 08:25:54.
Squashfs
compressed read-only file systemshttp://squashfs.sourceforge.net/
Explanation of the Squash file system: PDF
Puppy can make use of programs that have been packaged in the SFS format which consist of a single file with the file extension .sfs
Using SFS software packages within Puppy
Package installation:- place the SFS file at /mnt/home, then
- either (A) follow the instructions at (requires re-booting): Menu > System > BootManager
- or (B) follow the instructions at (does not require re-booting): Menu > Setup > SFS-Load
- soon another option will be available
- accessed through either the Menu or the command-line interface (and not by clicking on the SFS package file)
Lists of SFS software packages
http://www.lhpup.org/sfs/http://182.164.211.204/puppy/wary/opt/
Compatibility chart
How to make a SFS file of a software package
Copy or move all the directories and files that make up the software package into one single directory. Then issue the mksquashfs command:# mksquashfs SYNTAX:mksquashfs source1 source2 ... dest [options] [-e list of exclude dirs/files]
e.g.:
mksquashfs <path_to_directory> <path_to_directory>.sfs -noappend
Verify the installed version of mksquashfs with:
mksquashfs -version
http://www.linux-mag.com/id/7357
http://tldp.org/HOWTO/SquashFS-HOWTO
EditSFS Pup
Advantages of Squash file compression
http://www.murga-linux.com/puppy/viewtopic.php?p=43866&highlight=mksquashfs#43866
http://www.murga-linux.com/puppy/viewtopic.php?p=439180#439180
http://www.murga-linux.com/puppy/viewtopic.php?t=35390
http://tinycorelinux.com/forum/index.php?topic=4590.0
http://knol.google.com/k/squashfs#
http://martin.elwin.com/blog/2008/05/backups-with-squashfs-and-luks/
http://puppylinux.org/wikka/LucidPuppySFS
"SFS-TCZ_Linker may be a good idea if you absolutely must run liveCD only (no rebooting, no session saving.) But running a standard frugal with pupsave, the Linker will add symlinks to the pupsave layer only--and later remove them, even if similarly named files or links were later added via PPM, Gslapt or other means. This is likely to adversely affect reliability and stability. With a full install any files removed would be gone forever, making it even riskier. So at least for now, if you are saving your session at shutdown I still recommend a frugal install and BootManager for adding SFS files."
http://www.murga-linux.com/puppy/viewtopic.php?p=448985#448985
Adding too many layers to AUFS reduces performance and slows down saving.
01micko writes "I made a tool (see my signature) that makes it super easy for anyone to make a pet or sfs out of debs, if you want you can try it and maybe suggest where I can make improvements. debs2pkg or alien2puppy, the former is what it says and the latter supports Slack tgz and txz formats."
http://www.murga-linux.com/puppy/viewtopic.php?p=442183#442183
http://users.tpg.com.au/01micko/01mickos_tools.html#debs2pkg
Appendix (old entries for Puppy 1)
pre-1.0.7 users can use it by renaming it to usr_more.sfs1.0.7 users can do the following
edit your rc.local to add the following lines
Code:
echo "Making more loop devices..."
mknod /dev/loop5 b: 7 5
mknod /dev/loop6 b: 7 6
mknod /dev/loop7 b: 7 7
if [ ! "`ls /mnt/home/usr_packagex.sfs 2> /dev/null`" = "" ];then
mkdir /.usr_packagex
echo "Mounting /mnt/home/usr_packagex.sfs file on /.usr_packagex..."
losetup-FULL /dev/loop5 /mnt/home/usr_packagex.sfs
mount -r -t squashfs -o noatime /dev/loop5 /.usr_packagex
unionctl /usr --add --after /root/.usr --mode ro /.usr_packagex
fi
if you are multiple .sfs files the increase then use the next /dev/loop that is empty i.e. the next usr*.sfs will go in /dev/loop6. If you run out of loops make new ones using mknod command as show above.