|This article needs additional citations for verification. (August 2016) (Learn how and when to remove this template message)|
|Supported operating systems||Linux|
Unlike a compressed image of a conventional file system, a cramfs image can be used as it is, i.e. without first decompressing it. For this reason, some Linux distributions use cramfs for initrd images (Debian 3.1 in particular) and installation images (SUSE Linux in particular), where there are constraints on memory and image size.
Files on cramfs file systems are zlib-compressed one page at a time to allow random read access. The metadata is not compressed, but is expressed in a terse representation that is more space-efficient than conventional file systems.
The file system is intentionally read-only to simplify its design; random write access for compressed files is difficult to implement. cramfs ships with a utility (
mkcramfs) to pack files into new cramfs images.
File sizes are limited to less than 16MB.
Maximum file system size is a little under 272MB. (The last file on the file system must begin before the 256MB block, but can extend past it.)
- List of file systems
- Comparison of file systems
- SquashFS, a read-only compressed file system
- Util-linux contains the cramfs utilities