| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460 | <?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"  "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [  <!ENTITY % general-entities SYSTEM "../general.ent">  %general-entities;]><sect1 id="ch-system-e2fsprogs" role="wrap">  <?dbhtml filename="e2fsprogs.html"?>  <title>E2fsprogs-&e2fsprogs-version;</title>  <indexterm zone="ch-system-e2fsprogs">    <primary sortas="a-E2fsprogs">E2fsprogs</primary>  </indexterm>  <sect2 role="package">    <title/>    <para>The E2fsprogs package contains the utilities for handling the    <systemitem class="filesystem">ext2</systemitem> file system. It also    supports the <systemitem class="filesystem">ext3</systemitem> journaling    file system.</para>    <segmentedlist>      <segtitle>&buildtime;</segtitle>      <segtitle>&diskspace;</segtitle>      <seglistitem>        <seg>0.6 SBU</seg>        <seg>40.0 MB</seg>      </seglistitem>    </segmentedlist>  </sect2>  <sect2 role="installation">    <title>Installation of E2fsprogs</title>    <para>It is recommended that E2fsprogs be built in a subdirectory of    the source tree: </para><screen><userinput>mkdir -v buildcd build</userinput></screen>    <para>Prepare E2fsprogs for compilation:</para><screen><userinput>../configure --prefix=/usr --with-root-prefix="" \    --enable-elf-shlibs --disable-evms</userinput></screen>    <variablelist>      <title>The meaning of the configure options:</title>      <varlistentry>        <term><parameter>--with-root-prefix=""</parameter></term>        <listitem>          <para>Certain programs (such as the <command>e2fsck</command>          program) are considered essential programs.  When, for example,          <filename class="directory">/usr</filename> is not mounted, these          programs still need to be available. They belong in directories          like <filename class="directory">/lib</filename> and <filename          class="directory">/sbin</filename>. If this option is not passed          to E2fsprogs' configure, the programs are installed into the          <filename class="directory">/usr</filename> directory.</para>        </listitem>      </varlistentry>      <varlistentry>        <term><parameter>--enable-elf-shlibs</parameter></term>        <listitem>          <para>This creates the shared libraries which some programs          in this package use.</para>        </listitem>      </varlistentry>      <varlistentry>        <term><parameter>--disable-evms</parameter></term>        <listitem>          <para>This disables the building of the Enterprise Volume          Management System (EVMS) plugin. This plugin is not up-to-date with          the latest EVMS internal interfaces and EVMS is not installed as part          of a base LFS system, so the plugin is not required. See the EVMS          website at <ulink url="http://evms.sourceforge.net/"/> for more          information regarding EVMS.</para>        </listitem>      </varlistentry>    </variablelist>    <para>Compile the package:</para><screen><userinput>make</userinput></screen>    <para>To test the results, issue:    <userinput>make check</userinput>.</para>    <para>Install the binaries and documentation:</para><screen><userinput>make install</userinput></screen>    <para>Install the shared libraries:</para><screen><userinput>make install-libs</userinput></screen>  </sect2>  <sect2 id="contents-e2fsprogs" role="content">    <title>Contents of E2fsprogs</title>    <segmentedlist>      <segtitle>Installed programs</segtitle>      <segtitle>Installed libraries</segtitle>      <seglistitem>        <seg>badblocks, blkid, chattr, compile_et, debugfs, dumpe2fs, e2fsck,        e2image, e2label, findfs, fsck, fsck.ext2, fsck.ext3, logsave, lsattr,        mk_cmds, mke2fs, mkfs.ext2, mkfs.ext3, mklost+found, resize2fs,        tune2fs, and uuidgen.</seg>        <seg>libblkid.{a,so}, libcom_err.{a,so}, libe2p.{a,so},        libext2fs.{a,so}, libss.{a,so}, and libuuid.{a,so}</seg>      </seglistitem>    </segmentedlist>    <variablelist>      <bridgehead renderas="sect3">Short Descriptions</bridgehead>      <?dbfo list-presentation="list"?>      <?dbhtml list-presentation="table"?>      <varlistentry id="badblocks">        <term><command>badblocks</command></term>        <listitem>          <para>Searches a device (usually a disk partition) for bad          blocks</para>          <indexterm zone="ch-system-e2fsprogs badblocks">            <primary sortas="b-badblocks">badblocks</primary>          </indexterm>        </listitem>      </varlistentry>      <varlistentry id="blkid">        <term><command>blkid</command></term>        <listitem>          <para>A command line utility to locate and print block device          attributes</para>          <indexterm zone="ch-system-e2fsprogs blkid">            <primary sortas="b-blkid">blkid</primary>          </indexterm>        </listitem>      </varlistentry>      <varlistentry id="chattr">        <term><command>chattr</command></term>        <listitem>          <para>Changes the attributes of files on an <systemitem          class="filesystem">ext2</systemitem> file system; it also          changes <systemitem class="filesystem">ext3</systemitem>          file systems, the journaling version of <systemitem          class="filesystem">ext2</systemitem> file systems</para>          <indexterm zone="ch-system-e2fsprogs chattr">            <primary sortas="b-chattr">chattr</primary>          </indexterm>        </listitem>      </varlistentry>      <varlistentry id="compile_et">        <term><command>compile_et</command></term>        <listitem>          <para>An error table compiler; it converts a table of error-code          names and messages into a C source file suitable for use with the          <filename class="libraryfile">com_err</filename> library</para>          <indexterm zone="ch-system-e2fsprogs compile_et">            <primary sortas="b-compile_et">compile_et</primary>          </indexterm>        </listitem>      </varlistentry>      <varlistentry id="debugfs">        <term><command>debugfs</command></term>        <listitem>          <para>A file system debugger; it can be used to examine and change          the state of an <systemitem class="filesystem">ext2</systemitem>          file system</para>          <indexterm zone="ch-system-e2fsprogs debugfs">            <primary sortas="b-debugfs">debugfs</primary>          </indexterm>        </listitem>      </varlistentry>      <varlistentry id="dumpe2fs">        <term><command>dumpe2fs</command></term>        <listitem>          <para>Prints the super block and blocks group information for the          file system present on a given device</para>          <indexterm zone="ch-system-e2fsprogs dumpe2fs">            <primary sortas="b-dumpe2fs">dumpe2fs</primary>          </indexterm>        </listitem>      </varlistentry>      <varlistentry id="e2fsck">        <term><command>e2fsck</command></term>        <listitem>          <para>Is used to check, and optionally repair <systemitem          class="filesystem">ext2</systemitem> file systems and <systemitem          class="filesystem">ext3</systemitem> file systems</para>          <indexterm zone="ch-system-e2fsprogs e2fsck">            <primary sortas="b-e2fsck">e2fsck</primary>          </indexterm>        </listitem>      </varlistentry>      <varlistentry id="e2image">        <term><command>e2image</command></term>        <listitem>          <para>Is used to save critical <systemitem          class="filesystem">ext2</systemitem> file system data to a file</para>          <indexterm zone="ch-system-e2fsprogs e2image">            <primary sortas="b-e2image">e2image</primary>          </indexterm>        </listitem>      </varlistentry>      <varlistentry id="e2label">        <term><command>e2label</command></term>        <listitem>          <para>Displays or changes the file system label on the <systemitem          class="filesystem">ext2</systemitem> file system present on a given          device</para>          <indexterm zone="ch-system-e2fsprogs e2label">            <primary sortas="b-e2label">e2label</primary>          </indexterm>        </listitem>      </varlistentry>      <varlistentry id="findfs">        <term><command>findfs</command></term>        <listitem>          <para>Finds a file system by label or Universally Unique Identifier          (UUID)</para>          <indexterm zone="ch-system-e2fsprogs findfs">            <primary sortas="b-findfs">findfs</primary>          </indexterm>        </listitem>      </varlistentry>      <varlistentry id="fsck">        <term><command>fsck</command></term>        <listitem>          <para>Is used to check, and optionally repair, file systems</para>          <indexterm zone="ch-system-e2fsprogs fsck">            <primary sortas="b-fsck">fsck</primary>          </indexterm>        </listitem>      </varlistentry>      <varlistentry id="fsck.ext2">        <term><command>fsck.ext2</command></term>        <listitem>          <para>By default checks <systemitem class="filesystem">ext2</systemitem>          file systems</para>          <indexterm zone="ch-system-e2fsprogs fsck.ext2">            <primary sortas="b-fsck.ext2">fsck.ext2</primary>          </indexterm>        </listitem>      </varlistentry>      <varlistentry id="fsck.ext3">        <term><command>fsck.ext3</command></term>        <listitem>          <para>By default checks <systemitem class="filesystem">ext3</systemitem>          file systems</para>          <indexterm zone="ch-system-e2fsprogs fsck.ext3">            <primary sortas="b-fsck.ext3">fsck.ext3</primary>          </indexterm>        </listitem>      </varlistentry>      <varlistentry id="logsave">        <term><command>logsave</command></term>        <listitem>          <para>Saves the output of a command in a log file</para>          <indexterm zone="ch-system-e2fsprogs logsave">            <primary sortas="b-logsave">logsave</primary>          </indexterm>        </listitem>      </varlistentry>      <varlistentry id="lsattr">        <term><command>lsattr</command></term>        <listitem>          <para>Lists the attributes of files on a second extended file          system</para>          <indexterm zone="ch-system-e2fsprogs lsattr">            <primary sortas="b-lsattr">lsattr</primary>          </indexterm>        </listitem>      </varlistentry>      <varlistentry id="mk_cmds">        <term><command>mk_cmds</command></term>        <listitem>          <para>Converts a table of command names and help messages into a C          source file suitable for use with the <filename          class="libraryfile">libss</filename> subsystem library</para>          <indexterm zone="ch-system-e2fsprogs mk_cmds">            <primary sortas="b-mk_cmds">mk_cmds</primary>          </indexterm>        </listitem>      </varlistentry>      <varlistentry id="mke2fs">        <term><command>mke2fs</command></term>        <listitem>          <para>Creates an <systemitem class="filesystem">ext2</systemitem>          or <systemitem class="filesystem">ext3</systemitem> file system on          the given device</para>          <indexterm zone="ch-system-e2fsprogs mke2fs">            <primary sortas="b-mke2fs">mke2fs</primary>          </indexterm>        </listitem>      </varlistentry>      <varlistentry id="mkfs.ext2">        <term><command>mkfs.ext2</command></term>        <listitem>          <para>By default creates <systemitem class="filesystem">ext2</systemitem>          file systems</para>          <indexterm zone="ch-system-e2fsprogs mkfs.ext2">            <primary sortas="b-mkfs.ext2">mkfs.ext2</primary>          </indexterm>        </listitem>      </varlistentry>      <varlistentry id="mkfs.ext3">        <term><command>mkfs.ext3</command></term>        <listitem>          <para>By default creates <systemitem class="filesystem">ext3</systemitem>          file systems</para>          <indexterm zone="ch-system-e2fsprogs mkfs.ext3">            <primary sortas="b-mkfs.ext3">mkfs.ext3</primary>          </indexterm>        </listitem>      </varlistentry>      <varlistentry id="mklost-found">        <term><command>mklost+found</command></term>        <listitem>          <para>Used to create a <filename class="directory">lost+found</filename>          directory on an <systemitem class="filesystem">ext2</systemitem> file          system; it pre-allocates disk blocks to this directory to lighten the          task of <command>e2fsck</command></para>          <indexterm zone="ch-system-e2fsprogs mklost-found">            <primary sortas="b-mklost+found">mklost+found</primary>          </indexterm>        </listitem>      </varlistentry>      <varlistentry id="resize2fs">        <term><command>resize2fs</command></term>        <listitem>          <para>Can be used to enlarge or shrink an <systemitem          class="filesystem">ext2</systemitem> file system</para>          <indexterm zone="ch-system-e2fsprogs resize2fs">            <primary sortas="b-resize2fs">resize2fs</primary>          </indexterm>        </listitem>      </varlistentry>      <varlistentry id="tune2fs">        <term><command>tune2fs</command></term>        <listitem>          <para>Adjusts tunable file system parameters on an <systemitem          class="filesystem">ext2</systemitem> file system</para>          <indexterm zone="ch-system-e2fsprogs tune2fs">            <primary sortas="b-tune2fs">tune2fs</primary>          </indexterm>        </listitem>      </varlistentry>      <varlistentry id="uuidgen">        <term><command>uuidgen</command></term>        <listitem>          <para>Creates new UUIDs. Each new UUID can reasonably be considered          unique among all UUIDs created, on the local system and on other          systems, in the past and in the future</para>          <indexterm zone="ch-system-e2fsprogs uuidgen">            <primary sortas="b-uuidgen">uuidgen</primary>          </indexterm>        </listitem>      </varlistentry>      <varlistentry id="libblkid">        <term><filename class="libraryfile">libblkid</filename></term>        <listitem>          <para>Contains routines for device identification and token          extraction</para>          <indexterm zone="ch-system-e2fsprogs libblkid">            <primary sortas="c-libblkid">libblkid</primary>          </indexterm>        </listitem>      </varlistentry>      <varlistentry id="libcom_err">        <term><filename class="libraryfile">libcom_err</filename></term>        <listitem>          <para>The common error display routine</para>          <indexterm zone="ch-system-e2fsprogs libcom_err">            <primary sortas="c-libcom_err">libcom_err</primary>          </indexterm>        </listitem>      </varlistentry>      <varlistentry id="libe2p">        <term><filename class="libraryfile">libe2p</filename></term>        <listitem>          <para>Used by <command>dumpe2fs</command>, <command>chattr</command>,          and <command>lsattr</command></para>          <indexterm zone="ch-system-e2fsprogs libe2p">            <primary sortas="c-libe2p">libe2p</primary>          </indexterm>        </listitem>      </varlistentry>      <varlistentry id="libext2fs">        <term><filename class="libraryfile">libext2fs</filename></term>        <listitem>          <para>Contains routines to enable user-level programs to manipulate an          <systemitem class="filesystem">ext2</systemitem> file system</para>          <indexterm zone="ch-system-e2fsprogs libext2fs">            <primary sortas="c-libext2fs">libext2fs</primary>          </indexterm>        </listitem>      </varlistentry>      <varlistentry id="libss">        <term><filename class="libraryfile">libss</filename></term>        <listitem>          <para>Used by <command>debugfs</command></para>          <indexterm zone="ch-system-e2fsprogs libss">            <primary sortas="c-libss">libss</primary>          </indexterm>        </listitem>      </varlistentry>      <varlistentry id="libuuid">        <term><filename class="libraryfile">libuuid</filename></term>        <listitem>          <para>Contains routines for generating unique identifiers for objects          that may be accessible beyond the local system</para>          <indexterm zone="ch-system-e2fsprogs libuuid">            <primary sortas="c-libuuid">libuuid</primary>          </indexterm>        </listitem>      </varlistentry>    </variablelist>  </sect2></sect1>
 |