source: chapter06/e2fsprogs.xml@ 752f4e5

6.0
Last change on this file since 752f4e5 was 752f4e5, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

Tags corrections, Chapter 6.

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

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