]> git.ipfire.org Git - thirdparty/util-linux.git/blame - disk-utils/mkfs.cramfs.8
Manual pages: use the term "exit status"
[thirdparty/util-linux.git] / disk-utils / mkfs.cramfs.8
CommitLineData
3a60b1c2 1.TH MKFS.CRAMFS 8 "April 2013" "util-linux" "System Administration"
0ad2bacd
SK
2.SH NAME
3mkfs.cramfs \- make compressed ROM file system
4.SH SYNOPSIS
5.B mkfs.cramfs
6[options]
7.I directory file
8.SH DESCRIPTION
9Files on cramfs file systems are zlib-compressed one page at a time to
10allow random read access. The metadata is not compressed, but is
11expressed in a terse representation that is more space-efficient than
12conventional file systems.
13.PP
14The file system is intentionally read-only to simplify its design; random
15write access for compressed files is difficult to implement. cramfs
16ships with a utility (mkcramfs) to pack files into new cramfs images.
17.PP
10c70f05 18File sizes are limited to less than 16\ MB.
0ad2bacd 19.PP
10c70f05
BIG
20Maximum file system size is a little under 272\ MB. (The last file on the
21file system must begin before the 256\ MB block, but can extend past it.)
0ad2bacd
SK
22.SH ARGUMENTS
23The
24.I directory
25is simply the root of the directory tree that we want to generate a
26compressed filesystem out of.
27.PP
28The
29.I file
30will contain the cram file system, which later can be mounted.
31.SH OPTIONS
32.TP
33\fB\-v\fR
34Enable verbose messaging.
35.TP
36\fB\-E\fR
a87f49f6 37Treat all warnings as errors, which are reflected as command exit status.
0ad2bacd
SK
38.TP
39\fB\-b\fR \fIblocksize\fR
40Use defined block size, which has to be divisible by page size.
41.TP
42\fB\-e\fR \fIedition\fR
43Use defined file system edition number in superblock.
44.TP
45\fB\-N\fR \fIbig, little, host\fR
46Use defined endianness. Value defaults to
47.IR host .
48.TP
49\fB\-i\fR \fIfile\fR
50Insert a
51.I file
52to cramfs file system.
53.TP
54\fB\-n\fR \fIname\fR
55Set name of the cramfs file system.
56.TP
57\fB\-p\fR
58Pad by 512 bytes for boot code.
59.TP
60\fB\-s\fR
61This option is ignored. Originally the \-s turned on directory entry
62sorting.
63.TP
64\fB\-z\fR
9f3d0fce 65Make explicit holes.
0ad2bacd 66.TP
300d7025
RM
67\fB\-h\fR, \fB\-\-help\fR
68Display help text and exit.
0ad2bacd 69.TP
300d7025
RM
70\fB\-V\fR, \fB\-\-version\fR
71Display version information and exit.
5a829806 72.SH EXIT STATUS
0ad2bacd
SK
73.RS
74.PD 0
75.TP
76.B 0
77success
78.TP
79.B 8
80operation error, such as unable to allocate memory
81.PD
82.RE
5a829806 83.SH SEE ALSO
f053ff1e
MK
84.BR fsck.cramfs (8),
85.BR mount (8)
0ad2bacd
SK
86.SH AVAILABILITY
87The example command is part of the util-linux package and is available from
d673b74e 88.UR https://\:www.kernel.org\:/pub\:/linux\:/utils\:/util-linux/
0ad2bacd
SK
89Linux Kernel Archive
90.UE .