1 //po4a: entry man manual
4 :man manual: System Administration
5 :man source: util-linux {release-version}
11 mkfs.cramfs - make compressed ROM file system
15 *mkfs.cramfs* [options] _directory file_
19 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.
21 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*(8)) to pack files into new cramfs images.
23 File sizes are limited to less than 16 MB.
25 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.)
29 The _directory_ is simply the root of the directory tree that we want to generate a compressed filesystem out of.
31 The _file_ will contain the cram file system, which later can be mounted.
36 Enable verbose messaging.
39 Treat all warnings as errors, which are reflected as command exit status.
42 Use defined block size, which has to be divisible by page size.
45 Use defined file system edition number in superblock.
47 *-N* _big, little, host_::
48 Use defined endianness. Value defaults to _host_.
51 Insert a _file_ to cramfs file system.
54 Set name of the cramfs file system.
57 Pad by 512 bytes for boot code.
60 This option is ignored. Originally the *-s* turned on directory entry sorting.
65 *-l*\fR[=\fImode\fR]::
66 Use exclusive BSD lock for device or file it operates. The optional argument
67 \fImode\fP can be \fByes\fR, \fBno\fR (or 1 and 0) or \fBnonblock\fR. If the \fImode\fR
68 argument is omitted, it defaults to \fB"yes"\fR. This option overwrites
69 environment variable \fB$LOCK_BLOCK_DEVICE\fR. The default is not to use any
70 lock at all, but it's recommended to avoid collisions with udevd or other
74 include::man-common/help-version.adoc[]
81 operation error, such as unable to allocate memory
88 include::man-common/bugreports.adoc[]
90 include::man-common/footer.adoc[]
93 include::man-common/translation.adoc[]