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 16 MB.
Maximum file system size is a little under 272 MB. (The last file on the file system must begin before the 256 MB block, but can extend past it.)
The file will contain the cram file system, which later can be mounted.
- Enable verbose messaging.
- Treat all warnings as errors, which are reflected as command exit status.
- -b blocksize
- Use defined block size, which has to be divisible by page size.
- -e edition
- Use defined file system edition number in superblock.
- -N big, little, host
- Use defined endianness. Value defaults to host.
- -i file
- Insert a file to cramfs file system.
- -n name
- Set name of the cramfs file system.
- Pad by 512 bytes for boot code.
- This option is ignored. Originally the -s turned on directory entry sorting.
- Make explicit holes.
- -h, --help
- Display help text and exit.
- -V, --version
- Display version information and exit.
- operation error, such as unable to allocate memory