Hubbry Logo
search button
Sign in
Cramfs
Cramfs
Comunity Hub
History
arrow-down
starMore
arrow-down
bob

Bob

Have a question related to this hub?

bob

Alice

Got something to say related to this hub?
Share it here.

#general is a chat channel to discuss anything related to the hub.
Hubbry Logo
search button
Sign in
Cramfs
Community hub for the Wikipedia article
logoWikipedian hub
Welcome to the community hub built on top of the Cramfs Wikipedia article. Here, you can discuss, collect, and organize anything related to Cramfs. The purpose of the hub is to connect people, foster deep...
Add your contribution
Cramfs
Cramfs
Introduced2001 with Linux
Limits
Max volume size<272 MiB
Max file size16 MiB
Other
Supported
operating systems
Linux, BSD
Websitesourceforge.net/projects/cramfs/

The compressed ROM/RAM file system (or cramfs) is a free (GPL'ed) read-only Linux file system designed for simplicity and space-efficiency. It is mainly used in embedded and small-footprint systems.

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.

In 2013, Linux maintainers indicated that cramfs was made obsolete by squashfs,[1] but the file system got rehabilitated in 2017 for use in low-memory devices where using squashfs may not be viable.[2]

Design

[edit]

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.)

See also

[edit]

References

[edit]
[edit]
  • Official website
  • "Cramfs - cram a filesystem onto a small ROM". kernel.org. Retrieved July 21, 2017.