mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-19 13:37:39 +00:00
e63529b364
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3781 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
315 lines
11 KiB
XML
315 lines
11 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
%general-entities;
|
|
]>
|
|
<sect1 id="ch-system-e2fsprogs" xreflabel="E2fsprogs" role="wrap">
|
|
<title>E2fsprogs-&e2fsprogs-version;</title>
|
|
<?dbhtml filename="e2fsprogs.html"?>
|
|
|
|
<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 ext2
|
|
file system. It also supports the ext3 journaling file system.</para>
|
|
|
|
<segmentedlist>
|
|
<segtitle>&buildtime;</segtitle>
|
|
<segtitle>&diskspace;</segtitle>
|
|
<seglistitem><seg>0.6 SBU</seg><seg>48.4 MB</seg></seglistitem>
|
|
</segmentedlist>
|
|
|
|
<segmentedlist>
|
|
<segtitle>E2fsprogs installation depends on</segtitle>
|
|
<seglistitem><seg>Bash, Binutils, Coreutils,
|
|
Diffutils, Gawk, GCC, Gettext, Glibc, Grep, Make, Sed, Texinfo</seg></seglistitem>
|
|
</segmentedlist>
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of E2fsprogs</title>
|
|
|
|
<para>Prepare E2fsprogs for compilation:</para>
|
|
|
|
<screen><userinput>./configure --prefix=/usr --with-root-prefix="" \
|
|
--enable-elf-shlibs --disable-evms</userinput></screen>
|
|
|
|
<para>The meaning of the configure options:</para>
|
|
|
|
<variablelist>
|
|
<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> isn't
|
|
mounted, these essential programs have to be available. They belong in
|
|
directories like <filename class="directory">/lib</filename> and
|
|
<filename class="directory">/sbin</filename>. If this option isn't passed
|
|
to E2fsprogs's configure, the programs are placed in the
|
|
<filename class="directory">/usr</filename> directory, which is not what we
|
|
want.</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>
|
|
</variablelist>
|
|
|
|
<para>Compile the package:</para>
|
|
|
|
<screen><userinput>make</userinput></screen>
|
|
|
|
<para>To test the results, issue:
|
|
<userinput>make check</userinput>.</para>
|
|
|
|
<para>Install most of the package:</para>
|
|
|
|
<screen><userinput>make install</userinput></screen>
|
|
|
|
<para>Also 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><title>Short descriptions</title>
|
|
|
|
<varlistentry id="badblocks">
|
|
<term><command>badblocks</command></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-e2fsprogs badblocks"><primary sortas="b-badblocks">badblocks</primary></indexterm>
|
|
<para>searches a device (usually a disk partition) for bad blocks.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="blkid">
|
|
<term><command>blkid</command></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-e2fsprogs blkid"><primary sortas="b-blkid">blkid</primary></indexterm>
|
|
<para>is a command line utility to locate and print block device attributes.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="chattr">
|
|
<term><command>chattr</command></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-e2fsprogs chattr"><primary sortas="b-chattr">chattr</primary></indexterm>
|
|
<para>changes the attributes of files on a second extended (ext2) file system, and
|
|
also ext3 file systems, the journaling version of ext2 file systems.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="compile_et">
|
|
<term><command>compile_et</command></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-e2fsprogs compile_et"><primary sortas="b-compile_et">compile_et</primary></indexterm>
|
|
<para>is 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>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="debugfs">
|
|
<term><command>debugfs</command></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-e2fsprogs debugfs"><primary sortas="b-debugfs">debugfs</primary></indexterm>
|
|
<para>is a file system debugger. It can be
|
|
used to examine and change the state of an ext2 file system.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="dumpe2fs">
|
|
<term><command>dumpe2fs</command></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-e2fsprogs dumpe2fs"><primary sortas="b-dumpe2fs">dumpe2fs</primary></indexterm>
|
|
<para>prints the super block and blocks group
|
|
information for the file system present on a given device.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="e2fsck">
|
|
<term><command>e2fsck</command></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-e2fsprogs e2fsck"><primary sortas="b-e2fsck">e2fsck</primary></indexterm>
|
|
<para>is used to check, and optionally repair,
|
|
second extended (ext2) file systems, and also ext3 file systems.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="e2image">
|
|
<term><command>e2image</command></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-e2fsprogs e2image"><primary sortas="b-e2image">e2image</primary></indexterm>
|
|
<para>is used to save critical ext2 file system data to a file.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="e2label">
|
|
<term><command>e2label</command></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-e2fsprogs e2label"><primary sortas="b-e2label">e2label</primary></indexterm>
|
|
<para>will display or change the file system
|
|
label on the ext2 file system present on a given device.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="findfs">
|
|
<term><command>findfs</command></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-e2fsprogs findfs"><primary sortas="b-findfs">findfs</primary></indexterm>
|
|
<para>finds a file system by label or UUID (Universally Unique Identifier).</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="fsck">
|
|
<term><command>fsck</command></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-e2fsprogs fsck"><primary sortas="b-fsck">fsck</primary></indexterm>
|
|
<para>is used to check, and optionally repair, file systems. By default it checks the
|
|
file systems listed in <filename>/etc/fstab</filename></para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="logsave">
|
|
<term><command>logsave</command></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-e2fsprogs logsave"><primary sortas="b-logsave">logsave</primary></indexterm>
|
|
<para>saves the output of a command in a log file.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="lsattr">
|
|
<term><command>lsattr</command></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-e2fsprogs lsattr"><primary sortas="b-lsattr">lsattr</primary></indexterm>
|
|
<para>lists the attributes of files on a second extended file system.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="mk_cmds">
|
|
<term><command>mk_cmds</command></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-e2fsprogs mk_cmds"><primary sortas="b-mk_cmds">mk_cmds</primary></indexterm>
|
|
<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>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="mke2fs">
|
|
<term><command>mke2fs</command></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-e2fsprogs mke2fs"><primary sortas="b-mke2fs">mke2fs</primary></indexterm>
|
|
<para>is used to create a second extended file system on the given device.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="mklost-found">
|
|
<term><command>mklost+found</command></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-e2fsprogs mklost-found"><primary sortas="b-mklost+found">mklost+found</primary></indexterm>
|
|
<para>is used to create a
|
|
<filename class="directory">lost+found</filename> directory on a second extended file system.
|
|
It pre-allocates disk blocks to this directory to lighten the task of e2fsck.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="resize2fs">
|
|
<term><command>resize2fs</command></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-e2fsprogs resize2fs"><primary sortas="b-resize2fs">resize2fs</primary></indexterm>
|
|
<para>can be used to enlarge or shrink an ext2 file system.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="tune2fs">
|
|
<term><command>tune2fs</command></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-e2fsprogs tune2fs"><primary sortas="b-tune2fs">tune2fs</primary></indexterm>
|
|
<para>is used adjust tunable file system
|
|
parameters on a second extended file system.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="uuidgen">
|
|
<term><command>uuidgen</command></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-e2fsprogs uuidgen"><primary sortas="b-uuidgen">uuidgen</primary></indexterm>
|
|
<para>creates new UUID. 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>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="libblkid">
|
|
<term><filename class="libraryfile">libblkid</filename></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-e2fsprogs libblkid"><primary sortas="c-libblkid">libblkid</primary></indexterm>
|
|
<para>contains routines for device identification and token extraction.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="libcom_err">
|
|
<term><filename class="libraryfile">libcom_err</filename></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-e2fsprogs libcom_err"><primary sortas="c-libcom_err">libcom_err</primary></indexterm>
|
|
<para>is the common error display routine.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="libe2p">
|
|
<term><filename class="libraryfile">libe2p</filename></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-e2fsprogs libe2p"><primary sortas="c-libe2p">libe2p</primary></indexterm>
|
|
<para>is used by dumpe2fs, chattr, and lsattr.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="libext2fs">
|
|
<term><filename class="libraryfile">libext2fs</filename></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-e2fsprogs libext2fs"><primary sortas="c-libext2fs">libext2fs</primary></indexterm>
|
|
<para>contains routines to enable user-level
|
|
programs to manipulate an ext2 file system.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="libss">
|
|
<term><filename class="libraryfile">libss</filename></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-e2fsprogs libss"><primary sortas="c-libss">libss</primary></indexterm>
|
|
<para>is used by <command>debugfs</command>.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="libuuid">
|
|
<term><filename class="libraryfile">libuuid</filename></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-e2fsprogs libuuid"><primary sortas="c-libuuid">libuuid</primary></indexterm>
|
|
<para>contains routines for generating unique
|
|
identifiers for objects that may be accessible beyond the local system.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|