142 lines
3.5 KiB
HTML
142 lines
3.5 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of MKFS.CRAMFS</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>MKFS.CRAMFS</H1>
|
|
Section: System Administration (8)<BR>Updated: April 2013<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
mkfs.cramfs - make compressed ROM file system
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>mkfs.cramfs</B>
|
|
|
|
[options]
|
|
<I>directory file</I>
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
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.
|
|
<P>
|
|
|
|
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) to pack files into new cramfs images.
|
|
<P>
|
|
|
|
File sizes are limited to less than 16 MB.
|
|
<P>
|
|
|
|
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.)
|
|
<A NAME="lbAE"> </A>
|
|
<H2>ARGUMENTS</H2>
|
|
|
|
The
|
|
<I>directory</I>
|
|
|
|
is simply the root of the directory tree that we want to generate a
|
|
compressed filesystem out of.
|
|
<P>
|
|
|
|
The
|
|
<I>file</I>
|
|
|
|
will contain the cram file system, which later can be mounted.
|
|
<A NAME="lbAF"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-v</B><DD>
|
|
Enable verbose messaging.
|
|
<DT id="2"><B>-E</B><DD>
|
|
Treat all warnings as errors, which are reflected as command return value.
|
|
<DT id="3"><B>-b</B> <I>blocksize</I><DD>
|
|
Use defined block size, which has to be divisible by page size.
|
|
<DT id="4"><B>-e</B> <I>edition</I><DD>
|
|
Use defined file system edition number in superblock.
|
|
<DT id="5"><B>-N</B> <I>big, little, host</I><DD>
|
|
Use defined endianness. Value defaults to
|
|
<I>host</I>.
|
|
|
|
<DT id="6"><B>-i</B> <I>file</I><DD>
|
|
Insert a
|
|
<I>file</I>
|
|
|
|
to cramfs file system.
|
|
<DT id="7"><B>-n</B> <I>name</I><DD>
|
|
Set name of the cramfs file system.
|
|
<DT id="8"><B>-p</B><DD>
|
|
Pad by 512 bytes for boot code.
|
|
<DT id="9"><B>-s</B><DD>
|
|
This option is ignored. Originally the -s turned on directory entry
|
|
sorting.
|
|
<DT id="10"><B>-z</B><DD>
|
|
Make explicit holes.
|
|
<DT id="11"><B>-h</B>, <B>--help</B><DD>
|
|
Display help text and exit.
|
|
<DT id="12"><B>-V</B>, <B>--version</B><DD>
|
|
Display version information and exit.
|
|
</DL>
|
|
<A NAME="lbAG"> </A>
|
|
<H2>EXIT STATUS</H2>
|
|
|
|
<DL COMPACT><DT id="13"><DD>
|
|
|
|
<DL COMPACT>
|
|
<DT id="14"><B>0</B>
|
|
|
|
<DD>
|
|
success
|
|
<DT id="15"><B>8</B>
|
|
|
|
<DD>
|
|
operation error, such as unable to allocate memory
|
|
|
|
</DL>
|
|
</DL>
|
|
|
|
<A NAME="lbAH"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+fsck.cramfs">fsck.cramfs</A></B>(8),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+mount">mount</A></B>(8)
|
|
|
|
<A NAME="lbAI"> </A>
|
|
<H2>AVAILABILITY</H2>
|
|
|
|
The example command is part of the util-linux package and is available from
|
|
|
|
Linux Kernel Archive
|
|
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="16"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="17"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="18"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="19"><A HREF="#lbAE">ARGUMENTS</A><DD>
|
|
<DT id="20"><A HREF="#lbAF">OPTIONS</A><DD>
|
|
<DT id="21"><A HREF="#lbAG">EXIT STATUS</A><DD>
|
|
<DT id="22"><A HREF="#lbAH">SEE ALSO</A><DD>
|
|
<DT id="23"><A HREF="#lbAI">AVAILABILITY</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:06:13 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|