Hi all,
I didn't really see a squashfs tutorial thread on the forum, so I thought I'll do one.
Most of the info is available from mksquashfs --help but I also gleaned from
http://www.artemio.net/projects/linuxdoc/s...ml#mksqoverviewFor what squashfs is about and why you might want to use it, see the next post.
1. Install mksquashfs if it's not installed already.
2. Create a mksquashfs image
eg, you want to create an image based on a directory 'myfiles'
$ mksquashfs myfiles/ myfiles.squashfs
Creating little endian 2.1 filesystem on ati.squashfs, block size 65536.
Little endian filesystem, data block size 65536, compressed data, compressed metadata, compressed fragments
Filesystem size 12785.03 Kbytes (12.49 Mbytes) 27.52% of uncompressed filesystem size (46448.82 Kbytes)
Inode table size 17172 bytes (16.77 Kbytes) 33.86% of uncompressed inode table size (50709 bytes)
Directory table size 13324 bytes (13.01 Kbytes) 35.20% of uncompressed directory table size (37853 bytes)
Number of duplicate files found 4
Number of inodes 2118
Number of files 1889
Number of fragments 400
Number of symbolic links 0
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 229
Number of uids 1 root (0)
Number of gids 0
If yours went through, you should get an image file
myfiles.squashfs.
3. Mount the image
# mkdir /mnt/mydir
# mount myfiles.sqsh /mnt/mydir -t squashfs -o loop
That's it! Now when you look into /mnt/mydir, you should see the original directory structure with files in it.
For more on loop devices, you can refer to meanie's site or search google.
TIP: Meanie's pdaXqtrom for cacko creates additional loop devices.