source: chapter06/e2fsprogs.xml@ c226182

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since c226182 was c226182, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Ported updates from 6.2 branch.
Small tags fixes.

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

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