source: chapter06/e2fsprogs.xml@ e4ce4ea

6.0
Last change on this file since e4ce4ea was 69993f4, checked in by Gerard Beekmans <gerard@…>, 20 years ago

Second round of edits for final release

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