mksquashfs for OS X

Here is a patch for compiling the mksquashfs tool on OS X:

squashfs-tools2.2-r2-OSX.patch

The compiled binary is here in case you’re too lazy to compile it yourself :) :

mksquashfs2.2-r2-OSX.tar.gz

This is what I use to generate a SquashFS image for my patched Zaurus kernel:

# cd somedirectory_to_compress
# mksquashfs . /Volumes/Zaurus/compressedimage.squashfs -le -noappend

If you’re using the kernel included with Cacko ROM, you don’t have to patch anything as SquashFS support is already included.

Finally, here is how to mount the image on the Zaurus:

# mount -t squashfs -o loop /mnt/card/compressedimage.squashfs /mnt/mountedimage
m4s0n501

One Response to “mksquashfs for OS X”

  • dave Says:

    thanks for this. any chance you could post the unsquashfs as a osx binary as well?

    thanks

Leave a Reply

*