source: BOOK/final-system/common/e2fsprogs.xml @ 1da2a84

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 1da2a84 was 1da2a84, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Checked and Updated Download Locations.
Updated Tree to 1.5.2.1.
Updated Util-Linux-NG to 2.14.1.
Updated TCL to 8.5.4.
Updated E2fsprogs to 1.41.1.
Updated M4 to 1.4.11.
Updated Kbd to 1.14.
Updated Bzip2 to 1.0.5.
Updated Autoconf to 2.63.
Updated Findutils to 4.4.0.
Updated Man-Pages to 3.09.
Updated Man to 1.6f.
Updated Shadow to 4.1.2.1.
Updated IPRoute2 to 2.6.26.
Updated Libtool to 2.2.6a.
Updated Module-Init-Tools to 3.4.1.
Updated Texinfo to 4.12.
Updated Vim to 7.2.
Updated MPFR to 2.3.2.
Updated Udev to 128.
Updated Linux to 2.6.26.5.
Applied fixes to Expect to make it compatible with TCL 8.5.
Add -Duseshrplib to the perl configure command. This causes perl to build a shared libperl.
Formatting fixes on multiple pages.
Use a Common inittab across all architectures.
Updated Bootscripts to 1.2-pre1.

  • Property mode set to 100644
File size: 17.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4  <!ENTITY % general-entities SYSTEM "../../general.ent">
5  %general-entities;
6]>
7
8<sect1 id="ch-system-e2fsprogs" role="wrap">
9  <?dbhtml filename="e2fsprogs.html"?>
10
11  <title>E2fsprogs-&e2fsprogs-version;</title>
12
13  <indexterm zone="ch-system-e2fsprogs">
14    <primary sortas="a-E2fsprogs">E2fsprogs</primary>
15  </indexterm>
16
17  <sect2 role="package">
18    <title/>
19
20    <para>The E2fsprogs package contains the utilities for handling the
21    <systemitem class="filesystem">ext2</systemitem> file system. It also
22    supports the <systemitem class="filesystem">ext3</systemitem> journaling
23    file system.</para>
24
25  </sect2>
26
27  <sect2 role="installation">
28    <title>Installation of E2fsprogs</title>
29
30    <para os="s1">The following command adds <filename>libcom_err.so</filename>
31    to the list of libraries to link <filename>libblkid.so</filename>
32    to:</para>
33
34<screen os="s2"><userinput>cp -v misc/Makefile.in{,.orig}
35sed 's/_BLKID= .*$/&amp; $(LIBCOM_ERR)/' \
36    misc/Makefile.in.orig > misc/Makefile.in</userinput></screen>
37
38    <para os="a">The E2fsprogs documentation recommends that the package be
39    built in a subdirectory of the source tree:</para>
40
41<screen os="b"><userinput>mkdir -v build
42cd build</userinput></screen>
43
44    <para os="c">Prepare E2fsprogs for compilation:</para>
45
46<screen os="d"><userinput>../configure --prefix=/usr --with-root-prefix="" \
47    --enable-elf-shlibs --disable-evms \
48    --with-cc=gcc</userinput></screen>
49
50    <variablelist os="e">
51      <title>The meaning of the configure options:</title>
52
53      <varlistentry os="e1">
54        <term><parameter>--with-root-prefix=""</parameter></term>
55        <listitem>
56          <para>Certain programs (such as the <command>e2fsck</command>
57          program) are considered essential programs. When, for example,
58          <filename class="directory">/usr</filename> is not mounted,
59          these programs still need to be available. They belong in
60          directories like <filename class="directory">/lib</filename> and
61          <filename class="directory">/sbin</filename>. If this option is
62          not passed to E2fsprogs' configure, the programs are installed into
63          the <filename class="directory">/usr</filename> directory.</para>
64        </listitem>
65      </varlistentry>
66
67      <varlistentry os="e2">
68        <term><parameter>--enable-elf-shlibs</parameter></term>
69        <listitem>
70          <para>This creates the shared libraries which some programs
71          in this package use.</para>
72        </listitem>
73      </varlistentry>
74
75      <varlistentry os="e3">
76        <term><parameter>--disable-evms</parameter></term>
77        <listitem>
78          <para>This disables the building of the Enterprise Volume
79          Management System (EVMS) plugin. This plugin is not up-to-date with
80          the latest EVMS internal interfaces and EVMS is not installed as part
81          of a base CLFS system, so the plugin is not required. See the EVMS
82          website at <ulink url="http://evms.sourceforge.net/"/> for more
83          information regarding EVMS.</para>
84        </listitem>
85      </varlistentry>
86
87    </variablelist>
88
89    <para os="f">Compile the package:</para>
90
91<screen os="g"><userinput>make</userinput></screen>
92
93    <para os="h">To test the results, issue:
94    <userinput>make check</userinput>.</para>
95
96    <para os="i">Install the binaries, documentation and shared libraries:</para>
97
98<screen os="j"><userinput>make install</userinput></screen>
99
100    <para os="k">Install the static libraries and headers:</para>
101
102<screen os="l"><userinput>make install-libs</userinput></screen>
103
104  </sect2>
105
106  <sect2 id="contents-e2fsprogs" role="content">
107    <title>Contents of E2fsprogs</title>
108
109    <segmentedlist>
110      <segtitle>Installed programs</segtitle>
111      <segtitle>Installed libraries</segtitle>
112
113      <seglistitem>
114        <seg>badblocks, blkid, chattr, compile_et, debugfs, dumpe2fs,
115        e2fsck, e2image, e2label, filefrag, findfs, fsck, fsck.ext2, fsck.ext3,
116        logsave, lsattr, mk_cmds, mke2fs, mkfs.ext2, mkfs.ext3,
117        mklost+found, resize2fs, tune2fs, uuidd, and uuidgen.</seg>
118        <seg>libblkid.[a,so], libcom_err.[a,so], libe2p.[a,so],
119        libext2fs.[a,so], libss.[a,so], and libuuid.[a,so]</seg>
120      </seglistitem>
121    </segmentedlist>
122
123    <variablelist>
124      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
125      <?dbfo list-presentation="list"?>
126      <?dbhtml list-presentation="table"?>
127
128      <varlistentry id="badblocks">
129        <term><command>badblocks</command></term>
130        <listitem>
131          <para>Searches a device (usually a disk partition) for bad
132          blocks</para>
133          <indexterm zone="ch-system-e2fsprogs badblocks">
134            <primary sortas="b-badblocks">badblocks</primary>
135          </indexterm>
136        </listitem>
137      </varlistentry>
138
139      <varlistentry id="blkid">
140        <term><command>blkid</command></term>
141        <listitem>
142          <para>A command line utility to locate and print block device
143          attributes</para>
144          <indexterm zone="ch-system-e2fsprogs blkid">
145            <primary sortas="b-blkid">blkid</primary>
146          </indexterm>
147        </listitem>
148      </varlistentry>
149
150      <varlistentry id="chattr">
151        <term><command>chattr</command></term>
152        <listitem>
153          <para>Changes the attributes of files on an <systemitem
154          class="filesystem">ext2</systemitem> file system; it also
155          changes <systemitem class="filesystem">ext3</systemitem>
156          file systems, the journaling version of <systemitem
157          class="filesystem">ext2</systemitem> file systems</para>
158          <indexterm zone="ch-system-e2fsprogs chattr">
159            <primary sortas="b-chattr">chattr</primary>
160          </indexterm>
161        </listitem>
162      </varlistentry>
163
164      <varlistentry id="compile_et">
165        <term><command>compile_et</command></term>
166        <listitem>
167          <para>An error table compiler; it converts a table of error-code
168          names and messages into a C source file suitable for use with the
169          <filename class="libraryfile">com_err</filename> library</para>
170          <indexterm zone="ch-system-e2fsprogs compile_et">
171            <primary sortas="b-compile_et">compile_et</primary>
172          </indexterm>
173        </listitem>
174      </varlistentry>
175
176      <varlistentry id="debugfs">
177        <term><command>debugfs</command></term>
178        <listitem>
179          <para>A file system debugger; it can be used to examine and change
180          the state of an <systemitem class="filesystem">ext2</systemitem>
181          file system</para>
182          <indexterm zone="ch-system-e2fsprogs debugfs">
183            <primary sortas="b-debugfs">debugfs</primary>
184          </indexterm>
185        </listitem>
186      </varlistentry>
187
188      <varlistentry id="dumpe2fs">
189        <term><command>dumpe2fs</command></term>
190        <listitem>
191          <para>Prints the super block and blocks group information for the
192          file system present on a given device</para>
193          <indexterm zone="ch-system-e2fsprogs dumpe2fs">
194            <primary sortas="b-dumpe2fs">dumpe2fs</primary>
195          </indexterm>
196        </listitem>
197      </varlistentry>
198
199      <varlistentry id="e2fsck">
200        <term><command>e2fsck</command></term>
201        <listitem>
202          <para>Is used to check, and optionally repair <systemitem
203          class="filesystem">ext2</systemitem> file systems and <systemitem
204          class="filesystem">ext3</systemitem> file systems</para>
205          <indexterm zone="ch-system-e2fsprogs e2fsck">
206            <primary sortas="b-e2fsck">e2fsck</primary>
207          </indexterm>
208        </listitem>
209      </varlistentry>
210
211      <varlistentry id="e2image">
212        <term><command>e2image</command></term>
213        <listitem>
214          <para>Is used to save critical <systemitem
215          class="filesystem">ext2</systemitem> file system data to a file</para>
216          <indexterm zone="ch-system-e2fsprogs e2image">
217            <primary sortas="b-e2image">e2image</primary>
218          </indexterm>
219        </listitem>
220      </varlistentry>
221
222      <varlistentry id="e2label">
223        <term><command>e2label</command></term>
224        <listitem>
225          <para>Displays or changes the file system label on the <systemitem
226          class="filesystem">ext2</systemitem> file system present on a given
227          device</para>
228          <indexterm zone="ch-system-e2fsprogs e2label">
229            <primary sortas="b-e2label">e2label</primary>
230          </indexterm>
231        </listitem>
232      </varlistentry>
233
234      <varlistentry id="filefrag">
235        <term><command>filefrag</command></term>
236        <listitem>
237          <para>Reports on how badly fragmented a particular file might be</para>
238          <indexterm zone="ch-system-e2fsprogs filefrag">
239            <primary sortas="b-filefrag">filefrag</primary>
240          </indexterm>
241        </listitem>
242      </varlistentry>
243
244      <varlistentry id="findfs">
245        <term><command>findfs</command></term>
246        <listitem>
247          <para>Finds a file system by label or Universally Unique Identifier
248          (UUID)</para>
249          <indexterm zone="ch-system-e2fsprogs findfs">
250            <primary sortas="b-findfs">findfs</primary>
251          </indexterm>
252        </listitem>
253      </varlistentry>
254
255      <varlistentry id="fsck">
256        <term><command>fsck</command></term>
257        <listitem>
258          <para>Is used to check, and optionally repair, file systems</para>
259          <indexterm zone="ch-system-e2fsprogs fsck">
260            <primary sortas="b-fsck">fsck</primary>
261          </indexterm>
262        </listitem>
263      </varlistentry>
264
265      <varlistentry id="fsck.ext2">
266        <term><command>fsck.ext2</command></term>
267        <listitem>
268          <para>By default checks <systemitem class="filesystem">ext2</systemitem>
269          file systems</para>
270          <indexterm zone="ch-system-e2fsprogs fsck.ext2">
271            <primary sortas="b-fsck.ext2">fsck.ext2</primary>
272          </indexterm>
273        </listitem>
274      </varlistentry>
275
276      <varlistentry id="fsck.ext3">
277        <term><command>fsck.ext3</command></term>
278        <listitem>
279          <para>By default checks <systemitem class="filesystem">ext3</systemitem>
280          file systems</para>
281          <indexterm zone="ch-system-e2fsprogs fsck.ext3">
282            <primary sortas="b-fsck.ext3">fsck.ext3</primary>
283          </indexterm>
284        </listitem>
285      </varlistentry>
286
287      <varlistentry id="logsave">
288        <term><command>logsave</command></term>
289        <listitem>
290          <para>Saves the output of a command in a log file</para>
291          <indexterm zone="ch-system-e2fsprogs logsave">
292            <primary sortas="b-logsave">logsave</primary>
293          </indexterm>
294        </listitem>
295      </varlistentry>
296
297      <varlistentry id="lsattr">
298        <term><command>lsattr</command></term>
299        <listitem>
300          <para>Lists the attributes of files on a second extended file
301          system</para>
302          <indexterm zone="ch-system-e2fsprogs lsattr">
303            <primary sortas="b-lsattr">lsattr</primary>
304          </indexterm>
305        </listitem>
306      </varlistentry>
307
308      <varlistentry id="mk_cmds">
309        <term><command>mk_cmds</command></term>
310        <listitem>
311          <para>Converts a table of command names and help messages into a C
312          source file suitable for use with the <filename
313          class="libraryfile">libss</filename> subsystem library</para>
314          <indexterm zone="ch-system-e2fsprogs mk_cmds">
315            <primary sortas="b-mk_cmds">mk_cmds</primary>
316          </indexterm>
317        </listitem>
318      </varlistentry>
319
320      <varlistentry id="mke2fs">
321        <term><command>mke2fs</command></term>
322        <listitem>
323          <para>Creates an <systemitem class="filesystem">ext2</systemitem>
324          or <systemitem class="filesystem">ext3</systemitem> file system on
325          the given device</para>
326          <indexterm zone="ch-system-e2fsprogs mke2fs">
327            <primary sortas="b-mke2fs">mke2fs</primary>
328          </indexterm>
329        </listitem>
330      </varlistentry>
331
332      <varlistentry id="mkfs.ext2">
333        <term><command>mkfs.ext2</command></term>
334        <listitem>
335          <para>By default creates <systemitem class="filesystem">ext2</systemitem>
336          file systems</para>
337          <indexterm zone="ch-system-e2fsprogs mkfs.ext2">
338            <primary sortas="b-mkfs.ext2">mkfs.ext2</primary>
339          </indexterm>
340        </listitem>
341      </varlistentry>
342
343      <varlistentry id="mkfs.ext3">
344        <term><command>mkfs.ext3</command></term>
345        <listitem>
346          <para>By default creates <systemitem class="filesystem">ext3</systemitem>
347          file systems</para>
348          <indexterm zone="ch-system-e2fsprogs mkfs.ext3">
349            <primary sortas="b-mkfs.ext3">mkfs.ext3</primary>
350          </indexterm>
351        </listitem>
352      </varlistentry>
353
354      <varlistentry id="mklost-found">
355        <term><command>mklost+found</command></term>
356        <listitem>
357          <para>Used to create a <filename class="directory">lost+found</filename>
358          directory on an <systemitem class="filesystem">ext2</systemitem> file
359          system; it pre-allocates disk blocks to this directory to lighten the
360          task of <command>e2fsck</command></para>
361          <indexterm zone="ch-system-e2fsprogs mklost-found">
362            <primary sortas="b-mklost+found">mklost+found</primary>
363          </indexterm>
364        </listitem>
365      </varlistentry>
366
367      <varlistentry id="resize2fs">
368        <term><command>resize2fs</command></term>
369        <listitem>
370          <para>Can be used to enlarge or shrink an <systemitem
371          class="filesystem">ext2</systemitem> file system</para>
372          <indexterm zone="ch-system-e2fsprogs resize2fs">
373            <primary sortas="b-resize2fs">resize2fs</primary>
374          </indexterm>
375        </listitem>
376      </varlistentry>
377
378      <varlistentry id="tune2fs">
379        <term><command>tune2fs</command></term>
380        <listitem>
381          <para>Adjusts tunable file system parameters on an <systemitem
382          class="filesystem">ext2</systemitem> file system</para>
383          <indexterm zone="ch-system-e2fsprogs tune2fs">
384            <primary sortas="b-tune2fs">tune2fs</primary>
385          </indexterm>
386        </listitem>
387      </varlistentry>
388
389      <varlistentry id="uuidd">
390        <term><command>uuidd</command></term>
391        <listitem>
392          <para>The uuidd daemon is used by the UUID library to generate
393          universally unique identifiers (UUIDs), especially time-based UUID's
394          in a secure and guaranteed-unique fashion, even in the face of large
395          numbers of threads trying to grab UUID's running on different CPU's.
396          </para>
397          <indexterm zone="ch-system-e2fsprogs uuidd">
398            <primary sortas="b-uuidd">uuidd</primary>
399          </indexterm>
400        </listitem>
401      </varlistentry>
402
403      <varlistentry id="uuidgen">
404        <term><command>uuidgen</command></term>
405        <listitem>
406          <para>Creates new UUIDs. Each new UUID can reasonably be considered
407          unique among all UUIDs created, on the local system and on other
408          systems, in the past and in the future</para>
409          <indexterm zone="ch-system-e2fsprogs uuidgen">
410            <primary sortas="b-uuidgen">uuidgen</primary>
411          </indexterm>
412        </listitem>
413      </varlistentry>
414
415      <varlistentry id="libblkid">
416        <term><filename class="libraryfile">libblkid</filename></term>
417        <listitem>
418          <para>Contains routines for device identification and token
419          extraction</para>
420          <indexterm zone="ch-system-e2fsprogs libblkid">
421            <primary sortas="c-libblkid">libblkid</primary>
422          </indexterm>
423        </listitem>
424      </varlistentry>
425
426      <varlistentry id="libcom_err">
427        <term><filename class="libraryfile">libcom_err</filename></term>
428        <listitem>
429          <para>The common error display routine</para>
430          <indexterm zone="ch-system-e2fsprogs libcom_err">
431            <primary sortas="c-libcom_err">libcom_err</primary>
432          </indexterm>
433        </listitem>
434      </varlistentry>
435
436      <varlistentry id="libe2p">
437        <term><filename class="libraryfile">libe2p</filename></term>
438        <listitem>
439          <para>Used by <command>dumpe2fs</command>, <command>chattr</command>,
440          and <command>lsattr</command></para>
441          <indexterm zone="ch-system-e2fsprogs libe2p">
442            <primary sortas="c-libe2p">libe2p</primary>
443          </indexterm>
444        </listitem>
445      </varlistentry>
446
447      <varlistentry id="libext2fs">
448        <term><filename class="libraryfile">libext2fs</filename></term>
449        <listitem>
450          <para>Contains routines to enable user-level programs to manipulate an
451          <systemitem class="filesystem">ext2</systemitem> file system</para>
452          <indexterm zone="ch-system-e2fsprogs libext2fs">
453            <primary sortas="c-libext2fs">libext2fs</primary>
454          </indexterm>
455        </listitem>
456      </varlistentry>
457
458      <varlistentry id="libss">
459        <term><filename class="libraryfile">libss</filename></term>
460        <listitem>
461          <para>Used by <command>debugfs</command></para>
462          <indexterm zone="ch-system-e2fsprogs libss">
463            <primary sortas="c-libss">libss</primary>
464          </indexterm>
465        </listitem>
466      </varlistentry>
467
468      <varlistentry id="libuuid">
469        <term><filename class="libraryfile">libuuid</filename></term>
470        <listitem>
471          <para>Contains routines for generating unique identifiers for objects
472          that may be accessible beyond the local system</para>
473          <indexterm zone="ch-system-e2fsprogs libuuid">
474            <primary sortas="c-libuuid">libuuid</primary>
475          </indexterm>
476        </listitem>
477      </varlistentry>
478
479    </variablelist>
480
481  </sect2>
482
483</sect1>
Note: See TracBrowser for help on using the repository browser.