util-linux/disk-utils/mkfs.cramfs.8.adoc

90 lines
2.1 KiB
Plaintext
Raw Normal View History

//po4a: entry man manual
2021-03-16 15:08:43 -05:00
= 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 file system
== SYNOPSIS
*mkfs.cramfs* [options] _directory file_
2021-03-16 15:08:43 -05:00
== DESCRIPTION
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.
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.
File sizes are limited to less than 16 MB.
2021-03-16 15:08:43 -05:00
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.)
2021-03-16 15:08:43 -05:00
== 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 file system, which later can be mounted.
== OPTIONS
*-v*::
2021-03-24 12:53:27 -05:00
Enable verbose messaging.
2021-03-16 15:08:43 -05:00
*-E*::
2021-03-24 12:53:27 -05:00
Treat all warnings as errors, which are reflected as command exit status.
2021-03-16 15:08:43 -05:00
*-b* _blocksize_::
2021-03-24 12:53:27 -05:00
Use defined block size, which has to be divisible by page size.
2021-03-16 15:08:43 -05:00
*-e* _edition_::
2021-03-24 12:53:27 -05:00
Use defined file system edition number in superblock.
2021-03-16 15:08:43 -05:00
*-N* _big, little, host_::
2021-03-24 12:53:27 -05:00
Use defined endianness. Value defaults to _host_.
2021-03-16 15:08:43 -05:00
*-i* _file_::
2021-03-24 12:53:27 -05:00
Insert a _file_ to cramfs file system.
2021-03-16 15:08:43 -05:00
*-n* _name_::
2021-03-24 12:53:27 -05:00
Set name of the cramfs file system.
2021-03-16 15:08:43 -05:00
*-p*::
2021-03-24 12:53:27 -05:00
Pad by 512 bytes for boot code.
2021-03-16 15:08:43 -05:00
*-s*::
2021-03-24 12:53:27 -05:00
This option is ignored. Originally the *-s* turned on directory entry sorting.
2021-03-16 15:08:43 -05:00
*-z*::
2021-03-24 12:53:27 -05:00
Make explicit holes.
2021-03-16 15:08:43 -05:00
*-h*, *--help*::
2021-03-24 12:53:27 -05:00
Display help text and exit.
2021-03-16 15:08:43 -05:00
*-V*, *--version*::
2021-03-24 12:53:27 -05:00
Display version information and exit.
2021-03-16 15:08:43 -05:00
== EXIT STATUS
*0*::
2021-03-24 12:53:27 -05:00
success
2021-03-16 15:08:43 -05:00
*8*::
2021-03-24 12:53:27 -05:00
operation error, such as unable to allocate memory
2021-03-16 15:08:43 -05:00
== SEE ALSO
*fsck.cramfs*(8),
*mount*(8)
include::man-common/bugreports.adoc[]
2021-03-16 15:08:43 -05:00
include::man-common/footer.adoc[]
2021-03-16 15:08:43 -05:00
ifdef::translation[]
include::man-common/translation.adoc[]
2021-03-16 15:08:43 -05:00
endif::[]