| //po4a: entry man manual | |
| = mkfs.cramfs(8) | |
| :doctype: manpage | |
| :man manual: System Administration | |
| :man source: util-linux {release-version} | |
| :page-layout: base | |
| :command: mkfs.cramfs | |
| == NAME | |
| mkfs.cramfs - make compressed ROM filesystem | |
| == SYNOPSIS | |
| *mkfs.cramfs* [options] _directory file_ | |
| == DESCRIPTION | |
| Files on cramfs filesystems 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 filesystems. | |
| The filesystem is intentionally read-only to simplify its design; random write access for compressed files is difficult to implement. cramfs ships with a utility (*mkcramfs*(8)) to pack files into new cramfs images. | |
| File sizes are limited to less than 16 MB. | |
| Maximum filesystem size is a little under 272 MB. (The last file on the filesystem must begin before the 256 MB block, but can extend past it.) | |
| == ARGUMENTS | |
| The _directory_ is simply the root of the directory tree that we want to generate a compressed filesystem out of. | |
| The _file_ will contain the cram filesystem, which later can be mounted. | |
| == OPTIONS | |
| *-v*:: | |
| Enable verbose messaging. | |
| *-E*:: | |
| 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 filesystem edition number in superblock. | |
| *-N* *big*|*little*|*host*:: | |
| Use the specified endianness. The default is *host*. | |
| *-i* _file_:: | |
| Insert a _file_ to cramfs filesystem. | |
| *-n* _name_:: | |
| Set name of the cramfs filesystem. | |
| *-p*:: | |
| Pad by 512 bytes for boot code. | |
| *-s*:: | |
| This option is ignored. Originally the *-s* turned on directory entry sorting. | |
| *-z*:: | |
| Make explicit holes. | |
| *-l*[**=**_mode_]:: | |
| Use an exclusive BSD lock for the device or file that is operated upon. | |
| The optional argument _mode_ can be *yes* (*1*), *no* (*0*), or *nonblock*. | |
| If the _mode_ argument is omitted, it defaults to *yes*. | |
| This option overrides the environment variable *$LOCK_BLOCK_DEVICE*. | |
| The default is to not use any lock at all, but using a lock is recommended | |
| to avoid collisions with *systemd-udevd*(8) or other tools. | |
| include::man-common/help-version.adoc[] | |
| == ENVIRONMENT | |
| *LOCK_BLOCK_DEVICE*=<mode>:: | |
| Use exclusive BSD lock. The mode is "1" or "0". See *-l* for more details. | |
| == EXIT STATUS | |
| *0*:: | |
| success | |
| *8*:: | |
| operation error, such as unable to allocate memory | |
| == SEE ALSO | |
| *fsck.cramfs*(8), | |
| *mount*(8) | |
| include::man-common/bugreports.adoc[] | |
| include::man-common/footer.adoc[] | |
| ifdef::translation[] | |
| include::man-common/translation.adoc[] | |
| endif::[] |