]> git.ipfire.org Git - thirdparty/util-linux.git/blob - disk-utils/mkfs.cramfs.8.adoc
fdisk: remove usage of VLA
[thirdparty/util-linux.git] / disk-utils / mkfs.cramfs.8.adoc
1 //po4a: entry man manual
2 = mkfs.cramfs(8)
3 :doctype: manpage
4 :man manual: System Administration
5 :man source: util-linux {release-version}
6 :page-layout: base
7 :command: mkfs.cramfs
8
9 == NAME
10
11 mkfs.cramfs - make compressed ROM file system
12
13 == SYNOPSIS
14
15 *mkfs.cramfs* [options] _directory file_
16
17 == DESCRIPTION
18
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.
20
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.
22
23 File sizes are limited to less than 16 MB.
24
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.)
26
27 == ARGUMENTS
28
29 The _directory_ is simply the root of the directory tree that we want to generate a compressed filesystem out of.
30
31 The _file_ will contain the cram file system, which later can be mounted.
32
33 == OPTIONS
34
35 *-v*::
36 Enable verbose messaging.
37
38 *-E*::
39 Treat all warnings as errors, which are reflected as command exit status.
40
41 *-b* _blocksize_::
42 Use defined block size, which has to be divisible by page size.
43
44 *-e* _edition_::
45 Use defined file system edition number in superblock.
46
47 *-N* _big, little, host_::
48 Use defined endianness. Value defaults to _host_.
49
50 *-i* _file_::
51 Insert a _file_ to cramfs file system.
52
53 *-n* _name_::
54 Set name of the cramfs file system.
55
56 *-p*::
57 Pad by 512 bytes for boot code.
58
59 *-s*::
60 This option is ignored. Originally the *-s* turned on directory entry sorting.
61
62 *-z*::
63 Make explicit holes.
64
65 *-l*[=_mode_]::
66 Use exclusive BSD lock for device or file it operates. The optional argument
67 _mode_ can be _yes_, _no_ (or 1 and 0) or _nonblock_. If the _mode_
68 argument is omitted, it defaults to _"yes"_. This option overwrites
69 environment variable *$LOCK_BLOCK_DEVICE*. The default is not to use any
70 lock at all, but it's recommended to avoid collisions with udevd or other
71 tools.
72
73 include::man-common/help-version.adoc[]
74
75 == EXIT STATUS
76
77 *0*::
78 success
79 *8*::
80 operation error, such as unable to allocate memory
81
82 == SEE ALSO
83
84 *fsck.cramfs*(8),
85 *mount*(8)
86
87 include::man-common/bugreports.adoc[]
88
89 include::man-common/footer.adoc[]
90
91 ifdef::translation[]
92 include::man-common/translation.adoc[]
93 endif::[]