Squashfs-LZMA.org
using lzma compression algorithm
Optimize Your Filesystems with Squashfs + LZMA Compression
Welcome to Squashfs-LZMA.org — your reference point for powerful, space-saving filesystem compression using LZMA and XZ with Squashfs.
Squashfs is one of the most efficient compressed read-only filesystems available today, widely used in embedded systems, live distributions, and data storage. This project was created to combine it with LZMA, a high-ratio compression algorithm known for producing significantly smaller files than traditional gzip.
Thanks to kernel support introduced in Linux 2.6.38, XZ (based on LZMA2) compression is now natively supported in Squashfs. That means you no longer need to apply external patches — the functionality is built-in and ready to use. While the project itself is discontinued, this site remains live for reference, benchmarks, and access to historical Squashfs tools.
Why Choose LZMA for Squashfs?
LZMA can compress data far better than gzip — often reducing Squashfs image sizes by up to 25–30% more. Although compression takes longer, it only needs to be done once. Decompression speeds remain fast, typically reaching 10–20 MB/s on a 2 GHz CPU, making it suitable for performance-critical use cases.
Real-World Results
Compression benchmarks with Slax data show:
- Gzip (64KB block): 227MB (34% of original size)
- LZMA (64KB block): 191MB (28%)
- LZMA (1024KB block): 167MB (25%)
Larger block sizes with LZMA yield the most space-saving results — ideal for live environments or firmware.
Get Started
No patches required. Download Squashfs tools v4.x, enable XZ support in the Makefile, and compile:
mksquashfs
Whether you're building a live OS or compressing data for embedded devices, Squashfs with LZMA gives you the performance and size savings you need.
News
Why Squashfs LZMA?
Compression benchmarks
method | block size | Slax data size | percent |
---|---|---|---|
uncompressed | - | 668 MB | 100% |
mksquashfs+gzip | 64KB | 227 MB | 34% |
mksquashfs+gzip | 1024KB | 222 MB | 33% |
mksquashfs+lzma | 64KB | 191 MB | 28% |
mksquashfs+lzma | 128KB | 184 MB | 27% |
mksquashfs+lzma | 512KB | 172 MB | 26% |
mksquashfs+lzma | 1024KB | 167 MB | 25% |
Why the patches existed?
How to build squashfs with LZMA support now?
mksquashfs source1 dest.sqfs -comp xz -b 262144
squashfs4.3 Download
squashfs4.2 Download
squashfs4.1 Download
squashfs4.0 Download
squashfs3.4 Download
squashfs3.0 Download
squashfs2.2 Download
squashfs1.3 Download