source: chapter06/e2fsprogs.xml@ f75362c

Last change on this file since f75362c was f5aab6e, checked in by Jim Gifford <jim@…>, 19 years ago

Fixed: e2fsprogs sed

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multi-arch/BOOK@4882 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 13.7 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
[c2133bc]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
[673b0d8]3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
[752f4e5]6<sect1 id="ch-system-e2fsprogs" role="wrap">
[673b0d8]7<title>E2fsprogs-&e2fsprogs-version;</title>
8<?dbhtml filename="e2fsprogs.html"?>
9
10<indexterm zone="ch-system-e2fsprogs"><primary sortas="a-E2fsprogs">E2fsprogs</primary></indexterm>
[6370fa6]11
[a001133]12<sect2 role="package"><title/>
[752f4e5]13<para>The E2fsprogs package contains the utilities for handling the
14<systemitem class="filesystem">ext2</systemitem> file system. It also supports
15the <systemitem class="filesystem">ext3</systemitem> journaling file system.</para>
[5888299]16
[a001133]17<segmentedlist>
18<segtitle>&buildtime;</segtitle>
19<segtitle>&diskspace;</segtitle>
[8250be1]20<seglistitem><seg>0.6 SBU</seg><seg>4.9 MB</seg></seglistitem>
[a001133]21</segmentedlist>
[673b0d8]22
[a001133]23<segmentedlist>
[a0e1913]24<segtitle>&dependencies;</segtitle>
[a001133]25<seglistitem><seg>Bash, Binutils, Coreutils,
[69993f4]26Diffutils, Gawk, GCC, Gettext, Glibc, Grep, Make, Sed, and Texinfo</seg></seglistitem>
[a001133]27</segmentedlist>
28</sect2>
[3554fa3a]29
[a001133]30<sect2 role="installation">
[73aedd1d]31<title>Installation of E2fsprogs</title>
32
[f5aab6e]33<para>Fix a compilation error in E2fsprogs' testsuite:</para>
34
35<screen><userinput>sed -i -e 's/-DTEST/$(ALL_CFLAGS) &amp;/' lib/e2p/Makefile.in</userinput></screen>
36
[69993f4]37<para>It is recommended that E2fsprogs be built in a subdirectory of the source tree:
[8250be1]38</para>
39
40<screen><userinput>mkdir build
41cd build</userinput></screen>
42
[73aedd1d]43<para>Prepare E2fsprogs for compilation:</para>
44
[8250be1]45<screen><userinput>../configure --prefix=/usr --with-root-prefix="" \
[9dfc02f]46 --enable-elf-shlibs --disable-evms</userinput></screen>
[73aedd1d]47
48<para>The meaning of the configure options:</para>
49
[df8334f]50<variablelist>
51<varlistentry>
[e63529b]52<term><parameter>--with-root-prefix=""</parameter></term>
[ef13657]53<listitem><para>Certain programs (such as the
54<command>e2fsck</command> program) are considered essential programs.
55When, for example, <filename class="directory">/usr</filename> is not
56mounted, these essential programs need to be available. They belong in
[73aedd1d]57directories like <filename class="directory">/lib</filename> and
[ef13657]58<filename class="directory">/sbin</filename>. If this option is not
[2256873]59passed to E2fsprogs' configure, the programs are installed into the
[ef13657]60<filename class="directory">/usr</filename> directory, which is not
61where they should be.</para></listitem>
[df8334f]62</varlistentry>
[73aedd1d]63
[df8334f]64<varlistentry>
[e63529b]65<term><parameter>--enable-elf-shlibs</parameter></term>
[ef13657]66<listitem><para>This creates the shared libraries which some programs
67in this package use.</para></listitem>
[df8334f]68</varlistentry>
[8250be1]69
70<varlistentry>
71<term><parameter>--disable-evms</parameter></term>
[ef13657]72<listitem><para>This disables the building of the Enterprise Volume
73Management System (EVMS) plugin. This plugin is not up-to-date with
74the latest EVMS internal interfaces and EVMS is not installed as part
75of a base LFS system, so the plugin is not required. See the EVMS
76website at <ulink url="http://evms.sourceforge.net/"/> for more
[69993f4]77information regarding EVMS.</para></listitem>
[8250be1]78</varlistentry>
[df8334f]79</variablelist>
[73aedd1d]80
81<para>Compile the package:</para>
82
83<screen><userinput>make</userinput></screen>
84
[9dfc02f]85<para>To test the results, issue:
86<userinput>make check</userinput>.</para>
[73aedd1d]87
88<para>Install most of the package:</para>
89
90<screen><userinput>make install</userinput></screen>
91
[69993f4]92<para>Install the shared libraries:</para>
[73aedd1d]93
94<screen><userinput>make install-libs</userinput></screen>
95
96</sect2>
97
[6370fa6]98
[5888299]99
[c6cb3aa]100<sect2 id="contents-e2fsprogs" role="content"><title>Contents of E2fsprogs</title>
[673b0d8]101
[c6cb3aa]102<segmentedlist>
103<segtitle>Installed programs</segtitle>
104<segtitle>Installed libraries</segtitle>
105<seglistitem><seg>badblocks, blkid, chattr,
[673b0d8]106compile_et, debugfs, dumpe2fs, e2fsck, e2image, e2label, findfs, fsck,
107fsck.ext2, fsck.ext3, logsave, lsattr, mk_cmds, mke2fs, mkfs.ext2, mkfs.ext3,
[69993f4]108mklost+found, resize2fs, tune2fs, and uuidgen.</seg>
109<seg>libblkid.[a,so], libcom_err.[a,so], libe2p.[a,so],
110libext2fs.[a,so], libss.[a,so], and libuuid.[a,so]</seg></seglistitem>
[c6cb3aa]111</segmentedlist>
[673b0d8]112
[2256873]113<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
[3ed279f]114<?dbfo list-presentation="list"?>
[c5f9180]115<?dbhtml list-presentation="table"?>
[673b0d8]116
[b8a819f]117<varlistentry id="badblocks">
118<term><command>badblocks</command></term>
[c6cb3aa]119<listitem>
[2256873]120<para>Searches a device (usually a disk partition) for bad blocks</para>
[3ed279f]121<indexterm zone="ch-system-e2fsprogs badblocks"><primary sortas="b-badblocks">badblocks</primary></indexterm>
[c6cb3aa]122</listitem>
123</varlistentry>
[673b0d8]124
[b8a819f]125<varlistentry id="blkid">
126<term><command>blkid</command></term>
[c6cb3aa]127<listitem>
[2256873]128<para>A command line utility to locate and print block device attributes</para>
[3ed279f]129<indexterm zone="ch-system-e2fsprogs blkid"><primary sortas="b-blkid">blkid</primary></indexterm>
[c6cb3aa]130</listitem>
131</varlistentry>
[673b0d8]132
[b8a819f]133<varlistentry id="chattr">
134<term><command>chattr</command></term>
[c6cb3aa]135<listitem>
[2256873]136<para>Changes the attributes of files on an <systemitem
137class="filesystem">ext2</systemitem> file system; it also changes <systemitem
[7566baf]138class="filesystem">ext3</systemitem> file systems, the journaling version of
[2256873]139<systemitem class="filesystem">ext2</systemitem> file systems</para>
[3ed279f]140<indexterm zone="ch-system-e2fsprogs chattr"><primary sortas="b-chattr">chattr</primary></indexterm>
[c6cb3aa]141</listitem>
142</varlistentry>
143
[b8a819f]144<varlistentry id="compile_et">
145<term><command>compile_et</command></term>
[c6cb3aa]146<listitem>
[2256873]147<para>An error table compiler; it converts a table of error-code names and
[7566baf]148messages into a C source file suitable for use with the <filename
[2256873]149class="libraryfile">com_err</filename> library</para>
[3ed279f]150<indexterm zone="ch-system-e2fsprogs compile_et"><primary sortas="b-compile_et">compile_et</primary></indexterm>
[c6cb3aa]151</listitem>
152</varlistentry>
[673b0d8]153
[b8a819f]154<varlistentry id="debugfs">
155<term><command>debugfs</command></term>
[c6cb3aa]156<listitem>
[2256873]157<para>A file system debugger; it can be used to examine and change the
158state of an <systemitem class="filesystem">ext2</systemitem> file system</para>
[3ed279f]159<indexterm zone="ch-system-e2fsprogs debugfs"><primary sortas="b-debugfs">debugfs</primary></indexterm>
[c6cb3aa]160</listitem>
161</varlistentry>
[673b0d8]162
[b8a819f]163<varlistentry id="dumpe2fs">
164<term><command>dumpe2fs</command></term>
[c6cb3aa]165<listitem>
[2256873]166<para>Prints the super block and blocks group information for the file
167system present on a given device</para>
[3ed279f]168<indexterm zone="ch-system-e2fsprogs dumpe2fs"><primary sortas="b-dumpe2fs">dumpe2fs</primary></indexterm>
[b48b8c5]169</listitem>
[c6cb3aa]170</varlistentry>
[673b0d8]171
[b8a819f]172<varlistentry id="e2fsck">
173<term><command>e2fsck</command></term>
[c6cb3aa]174<listitem>
[2256873]175<para>Is used to check, and optionally repair <systemitem
[7566baf]176class="filesystem">ext2</systemitem> file systems and <systemitem
[2256873]177class="filesystem">ext3</systemitem> file systems</para>
[3ed279f]178<indexterm zone="ch-system-e2fsprogs e2fsck"><primary sortas="b-e2fsck">e2fsck</primary></indexterm>
[c6cb3aa]179</listitem>
180</varlistentry>
[673b0d8]181
[b8a819f]182<varlistentry id="e2image">
183<term><command>e2image</command></term>
[c6cb3aa]184<listitem>
[2256873]185<para>Is used to save critical <systemitem class="filesystem">ext2</systemitem>
186file system data to a file</para>
[3ed279f]187<indexterm zone="ch-system-e2fsprogs e2image"><primary sortas="b-e2image">e2image</primary></indexterm>
[c6cb3aa]188</listitem>
189</varlistentry>
[673b0d8]190
[b8a819f]191<varlistentry id="e2label">
192<term><command>e2label</command></term>
[c6cb3aa]193<listitem>
[2256873]194<para>Displays or changes the file system label on the <systemitem
195class="filesystem">ext2</systemitem> file system present on a given device</para>
[3ed279f]196<indexterm zone="ch-system-e2fsprogs e2label"><primary sortas="b-e2label">e2label</primary></indexterm>
[c6cb3aa]197</listitem>
198</varlistentry>
[673b0d8]199
[b8a819f]200<varlistentry id="findfs">
201<term><command>findfs</command></term>
[c6cb3aa]202<listitem>
[2256873]203<para>Finds a file system by label or Universally Unique Identifier (UUID)</para>
[3ed279f]204<indexterm zone="ch-system-e2fsprogs findfs"><primary sortas="b-findfs">findfs</primary></indexterm>
[c6cb3aa]205</listitem>
206</varlistentry>
[673b0d8]207
[b8a819f]208<varlistentry id="fsck">
209<term><command>fsck</command></term>
[c6cb3aa]210<listitem>
[2256873]211<para>Is used to check, and optionally repair, file systems</para>
[3ed279f]212<indexterm zone="ch-system-e2fsprogs fsck"><primary sortas="b-fsck">fsck</primary></indexterm>
[c6cb3aa]213</listitem>
214</varlistentry>
215
[69993f4]216<varlistentry id="fsck.ext2">
217<term><command>fsck.ext2</command></term>
218<listitem>
[2256873]219<para>By default checks <systemitem class="filesystem">ext2</systemitem>
220file systems</para>
[69993f4]221<indexterm zone="ch-system-e2fsprogs fsck.ext2"><primary
222sortas="b-fsck.ext2">fsck.ext2</primary></indexterm>
223</listitem>
224</varlistentry>
225
226<varlistentry id="fsck.ext3">
227<term><command>fsck.ext3</command></term>
228<listitem>
[2256873]229<para>By default checks <systemitem class="filesystem">ext3</systemitem>
230file systems</para>
[69993f4]231<indexterm zone="ch-system-e2fsprogs fsck.ext3"><primary
232sortas="b-fsck.ext3">fsck.ext3</primary></indexterm>
233</listitem>
234</varlistentry>
235
[b8a819f]236<varlistentry id="logsave">
237<term><command>logsave</command></term>
[c6cb3aa]238<listitem>
[2256873]239<para>Saves the output of a command in a log file</para>
[3ed279f]240<indexterm zone="ch-system-e2fsprogs logsave"><primary sortas="b-logsave">logsave</primary></indexterm>
[c6cb3aa]241</listitem>
242</varlistentry>
[673b0d8]243
[b8a819f]244<varlistentry id="lsattr">
245<term><command>lsattr</command></term>
[c6cb3aa]246<listitem>
[2256873]247<para>Lists the attributes of files on a second extended file system</para>
[3ed279f]248<indexterm zone="ch-system-e2fsprogs lsattr"><primary sortas="b-lsattr">lsattr</primary></indexterm>
[c6cb3aa]249</listitem>
250</varlistentry>
[673b0d8]251
[b8a819f]252<varlistentry id="mk_cmds">
253<term><command>mk_cmds</command></term>
[c6cb3aa]254<listitem>
[2256873]255<para>Converts a table of command names and helps messages into a C
[ef13657]256source file suitable for use with the <filename
[2256873]257class="libraryfile">libss</filename> subsystem library</para>
[3ed279f]258<indexterm zone="ch-system-e2fsprogs mk_cmds"><primary sortas="b-mk_cmds">mk_cmds</primary></indexterm>
[c6cb3aa]259</listitem>
260</varlistentry>
[673b0d8]261
[b8a819f]262<varlistentry id="mke2fs">
263<term><command>mke2fs</command></term>
[c6cb3aa]264<listitem>
[2256873]265<para>Is used to create a second extended file system on the given
266device</para>
[3ed279f]267<indexterm zone="ch-system-e2fsprogs mke2fs"><primary sortas="b-mke2fs">mke2fs</primary></indexterm>
[c6cb3aa]268</listitem>
269</varlistentry>
[673b0d8]270
[69993f4]271<varlistentry id="mkfs.ext2">
272<term><command>mkfs.ext2</command></term>
273<listitem>
[2256873]274<para>By default creates <systemitem class="filesystem">ext2</systemitem>
275file systems</para>
[69993f4]276<indexterm zone="ch-system-e2fsprogs mkfs.ext2"><primary
277sortas="b-mkfs.ext2">mkfs.ext2</primary></indexterm>
278</listitem>
279</varlistentry>
280
281<varlistentry id="mkfs.ext3">
282<term><command>mkfs.ext3</command></term>
283<listitem>
[2256873]284<para>By default creates <systemitem class="filesystem">ext3</systemitem>
285file systems</para>
[69993f4]286<indexterm zone="ch-system-e2fsprogs mkfs.ext3"><primary
287sortas="b-mkfs.ext3">mkfs.ext3</primary></indexterm>
288</listitem>
289</varlistentry>
290
[b8a819f]291<varlistentry id="mklost-found">
292<term><command>mklost+found</command></term>
[c6cb3aa]293<listitem>
[2256873]294<para>Used to create a <filename class="directory">lost+found</filename>
295directory on an <systemitem class="filesystem">ext2</systemitem> file system;
296it pre-allocates disk blocks to this directory to lighten the task of
297<command>e2fsck</command></para>
[3ed279f]298<indexterm zone="ch-system-e2fsprogs mklost-found"><primary sortas="b-mklost+found">mklost+found</primary></indexterm>
[c6cb3aa]299</listitem>
300</varlistentry>
[673b0d8]301
[b8a819f]302<varlistentry id="resize2fs">
303<term><command>resize2fs</command></term>
[c6cb3aa]304<listitem>
[2256873]305<para>Can be used to enlarge or shrink an <systemitem
306class="filesystem">ext2</systemitem> file system</para>
[3ed279f]307<indexterm zone="ch-system-e2fsprogs resize2fs"><primary sortas="b-resize2fs">resize2fs</primary></indexterm>
[c6cb3aa]308</listitem>
309</varlistentry>
[673b0d8]310
[b8a819f]311<varlistentry id="tune2fs">
312<term><command>tune2fs</command></term>
[c6cb3aa]313<listitem>
[2256873]314<para>Adjusts tunable file system parameters on an <systemitem
315class="filesystem">ext2</systemitem> file system</para>
[3ed279f]316<indexterm zone="ch-system-e2fsprogs tune2fs"><primary sortas="b-tune2fs">tune2fs</primary></indexterm>
[c6cb3aa]317</listitem>
318</varlistentry>
[673b0d8]319
[b8a819f]320<varlistentry id="uuidgen">
321<term><command>uuidgen</command></term>
[c6cb3aa]322<listitem>
[2256873]323<para>Creates new UUIDs. Each new UUID can reasonably be considered unique
[673b0d8]324among all UUIDs created, on the local system and on other systems, in the
[2256873]325past and in the future</para>
[3ed279f]326<indexterm zone="ch-system-e2fsprogs uuidgen"><primary sortas="b-uuidgen">uuidgen</primary></indexterm>
[c6cb3aa]327</listitem>
328</varlistentry>
[673b0d8]329
[b8a819f]330<varlistentry id="libblkid">
[e63529b]331<term><filename class="libraryfile">libblkid</filename></term>
[c6cb3aa]332<listitem>
[2256873]333<para>Contains routines for device identification and token extraction</para>
[3ed279f]334<indexterm zone="ch-system-e2fsprogs libblkid"><primary sortas="c-libblkid">libblkid</primary></indexterm>
[c6cb3aa]335</listitem>
336</varlistentry>
[673b0d8]337
[b8a819f]338<varlistentry id="libcom_err">
[e63529b]339<term><filename class="libraryfile">libcom_err</filename></term>
[c6cb3aa]340<listitem>
[2256873]341<para>The common error display routine</para>
[3ed279f]342<indexterm zone="ch-system-e2fsprogs libcom_err"><primary sortas="c-libcom_err">libcom_err</primary></indexterm>
[c6cb3aa]343</listitem>
344</varlistentry>
[673b0d8]345
[b8a819f]346<varlistentry id="libe2p">
[e63529b]347<term><filename class="libraryfile">libe2p</filename></term>
[c6cb3aa]348<listitem>
[2256873]349<para>Used by <command>dumpe2fs</command>, <command>chattr</command>,
350and <command>lsattr</command></para>
[3ed279f]351<indexterm zone="ch-system-e2fsprogs libe2p"><primary sortas="c-libe2p">libe2p</primary></indexterm>
[b48b8c5]352</listitem>
[c6cb3aa]353</varlistentry>
[673b0d8]354
[b8a819f]355<varlistentry id="libext2fs">
[e63529b]356<term><filename class="libraryfile">libext2fs</filename></term>
[c6cb3aa]357<listitem>
[2256873]358<para>Contains routines to enable user-level programs to manipulate an
359<systemitem class="filesystem">ext2</systemitem> file system</para>
[3ed279f]360<indexterm zone="ch-system-e2fsprogs libext2fs"><primary sortas="c-libext2fs">libext2fs</primary></indexterm>
[c6cb3aa]361</listitem>
362</varlistentry>
[673b0d8]363
[b8a819f]364<varlistentry id="libss">
[e63529b]365<term><filename class="libraryfile">libss</filename></term>
[c6cb3aa]366<listitem>
[2256873]367<para>Used by <command>debugfs</command></para>
[3ed279f]368<indexterm zone="ch-system-e2fsprogs libss"><primary sortas="c-libss">libss</primary></indexterm>
[c6cb3aa]369</listitem>
370</varlistentry>
[673b0d8]371
[b8a819f]372<varlistentry id="libuuid">
[e63529b]373<term><filename class="libraryfile">libuuid</filename></term>
[c6cb3aa]374<listitem>
[2256873]375<para>Contains routines for generating unique identifiers for objects
376that may be accessible beyond the local system</para>
[3ed279f]377<indexterm zone="ch-system-e2fsprogs libuuid"><primary sortas="c-libuuid">libuuid</primary></indexterm>
[c6cb3aa]378</listitem>
379</varlistentry>
380</variablelist>
[673b0d8]381
382</sect2>
383
384</sect1>
[ef13657]385
Note: See TracBrowser for help on using the repository browser.