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