Cloop
The compressed loop device is a module for the Linux kernel. It adds support for transparently decompressed, read-only block devices. It is not a compressed file system: cloop is mostly used as a convenient way to compress conventional file systems onto Live CDs.
Cloop was originally written for the Levanta Bootable Business Card by Rusty Russell, but is now maintained by Klaus Knopper, the author of Knoppix.
A compression ratio of about 2.5:1 is common for software. The Knoppix cloop image, for example, is 700 MB compressed and around 1.8 GB uncompressed.
Design
cloop images contain:- A shell script
- A header with the number of blocks and the uncompressed block size
- A seek index with compressed and uncompressed block sizes in pairs
- zlib-compressed data blocks, packed end-to-end
Apple uses a similar file format in the compressed variant of its DMG disk images.