source: chapter06/e2fsprogs.xml@ f7aeb47

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.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 f7aeb47 was f7aeb47, checked in by Bruce Dubbs <bdubbs@…>, 14 years ago

Update to e2fsprogs-1.41.10.
Make more robust output in version check for glibc.

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

  • Property mode set to 100644
File size: 19.7 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 <sect1info condition="script">
12 <productname>e2fsprogs</productname>
13 <productnumber>&e2fsprogs-version;</productnumber>
14 <address>&e2fsprogs-url;</address>
15 </sect1info>
16
17 <title>E2fsprogs-&e2fsprogs-version;</title>
18
19 <indexterm zone="ch-system-e2fsprogs">
20 <primary sortas="a-E2fsprogs">E2fsprogs</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The E2fsprogs package contains the utilities for handling the
27 <systemitem class="filesystem">ext2</systemitem> file system. It also
28 supports the <systemitem class="filesystem">ext3</systemitem> and
29 <systemitem class="filesystem">ext4</systemitem> journaling
30 file systems.</para>
31
32 <segmentedlist>
33 <segtitle>&buildtime;</segtitle>
34 <segtitle>&diskspace;</segtitle>
35
36 <seglistitem>
37 <seg>&e2fsprogs-ch6-sbu;</seg>
38 <seg>&e2fsprogs-ch6-du;</seg>
39 </seglistitem>
40 </segmentedlist>
41
42 </sect2>
43
44 <sect2 role="installation">
45 <title>Installation of E2fsprogs</title>
46
47 <para>The E2fsprogs documentation recommends that the package be built in
48 a subdirectory of the source tree: </para>
49
50<screen><userinput remap="pre">mkdir -v build
51cd build</userinput></screen>
52
53 <para>Prepare E2fsprogs for compilation:</para>
54
55<screen><userinput remap="configure">../configure --prefix=/usr --with-root-prefix="" \
56 --enable-elf-shlibs --disable-libblkid --disable-libuuid \
57 --disable-uuidd --disable-fsck</userinput></screen>
58
59 <variablelist>
60 <title>The meaning of the configure options:</title>
61
62 <varlistentry>
63 <term><parameter>--with-root-prefix=""</parameter></term>
64 <listitem>
65 <para>Certain programs (such as the <command>e2fsck</command>
66 program) are considered essential programs. When, for example,
67 <filename class="directory">/usr</filename> is not mounted, these
68 programs still need to be available. They belong in directories
69 like <filename class="directory">/lib</filename> and <filename
70 class="directory">/sbin</filename>. If this option is not passed
71 to E2fsprogs' configure, the programs are installed into the
72 <filename class="directory">/usr</filename> directory.</para>
73 </listitem>
74 </varlistentry>
75
76 <varlistentry>
77 <term><parameter>--enable-elf-shlibs</parameter></term>
78 <listitem>
79 <para>This creates the shared libraries which some programs
80 in this package use.</para>
81 </listitem>
82 </varlistentry>
83
84 <varlistentry>
85 <term><parameter>--disable-*</parameter></term>
86 <listitem>
87 <para>This prevents E2fsprogs from building and installing the
88 <systemitem class="library">libuuid</systemitem> and
89 <systemitem class="library">libblkid</systemitem> libraries, the
90 <systemitem class="daemon">uuidd</systemitem> daemon, and the
91 <command>fsck</command> wrapper, as Util-Linux-NG installed all of
92 them earlier.</para>
93 </listitem>
94 </varlistentry>
95
96 </variablelist>
97
98 <para>Compile the package:</para>
99
100<screen><userinput remap="make">make</userinput></screen>
101
102 <para>To test the results, issue:</para>
103
104<screen><userinput remap="test">make check</userinput></screen>
105
106 <para>One of the E2fsprogs tests will attempt to allocate 256 MB
107 of memory. If you do not have significantly more RAM than this, it
108 is recommended to enable sufficient swap space for the test. See
109 <xref linkend="space-creatingfilesystem"/> and
110 <xref linkend="space-mounting"/> for details on creating and enabling
111 swap space.</para>
112
113 <para>Install the binaries, documentation, and shared libraries:</para>
114
115<screen><userinput remap="install">make install</userinput></screen>
116
117 <para>Install the static libraries and headers:</para>
118
119<screen><userinput remap="install">make install-libs</userinput></screen>
120
121 <para>Make the installed static libraries writable so debugging symbols can
122 be removed later:</para>
123
124<screen><userinput remap="install">chmod -v u+w /usr/lib/{libcom_err,libe2p,libext2fs,libss}.a</userinput></screen>
125
126 <para>This package installs a gzipped
127 <filename class="extension">.info</filename> file but doesn't update the
128 system-wide <filename>dir</filename> file. Unzip this file and then update
129 the system <filename>dir</filename> file using the following
130 commands.</para>
131
132<screen><userinput remap="install">gunzip -v /usr/share/info/libext2fs.info.gz
133install-info --dir-file=/usr/share/info/dir \
134 /usr/share/info/libext2fs.info</userinput></screen>
135
136 <para>If desired, create and install some additional documentation by
137 issuing the following commands:</para>
138
139<screen><userinput remap="install">makeinfo -o doc/com_err.info ../lib/et/com_err.texinfo
140install -v -m644 doc/com_err.info /usr/share/info
141install-info --dir-file=/usr/share/info/dir \
142 /usr/share/info/com_err.info</userinput></screen>
143 </sect2>
144
145 <sect2 id="contents-e2fsprogs" role="content">
146 <title>Contents of E2fsprogs</title>
147
148 <segmentedlist>
149 <segtitle>Installed programs</segtitle>
150 <segtitle>Installed libraries</segtitle>
151
152 <seglistitem>
153 <seg>badblocks, chattr, compile_et, debugfs, dumpe2fs, e2freefrag,
154 e2fsck, e2image, e2initrd_helper, e2label, e2undo, filefrag, fsck.ext2,
155 fsck.ext3, fsck.ext4, fsck.ext4dev, logsave, lsattr, mk_cmds, mke2fs,
156 mkfs.ext2, mkfs.ext3, mkfs.ext4, mkfs.ext4dev, mklost+found,
157 resize2fs, and tune2fs</seg>
158 <seg>libcom_err.{a,so}, libe2p.{a,so}, libext2fs.{a,so} and
159 libss.{a,so}</seg>
160 </seglistitem>
161 </segmentedlist>
162
163 <variablelist>
164 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
165 <?dbfo list-presentation="list"?>
166 <?dbhtml list-presentation="table"?>
167
168 <varlistentry id="badblocks">
169 <term><command>badblocks</command></term>
170 <listitem>
171 <para>Searches a device (usually a disk partition) for bad
172 blocks</para>
173 <indexterm zone="ch-system-e2fsprogs badblocks">
174 <primary sortas="b-badblocks">badblocks</primary>
175 </indexterm>
176 </listitem>
177 </varlistentry>
178
179 <varlistentry id="chattr">
180 <term><command>chattr</command></term>
181 <listitem>
182 <para>Changes the attributes of files on an <systemitem
183 class="filesystem">ext2</systemitem> file system; it also
184 changes <systemitem class="filesystem">ext3</systemitem>
185 file systems, the journaling version of <systemitem
186 class="filesystem">ext2</systemitem> file systems</para>
187 <indexterm zone="ch-system-e2fsprogs chattr">
188 <primary sortas="b-chattr">chattr</primary>
189 </indexterm>
190 </listitem>
191 </varlistentry>
192
193 <varlistentry id="compile_et">
194 <term><command>compile_et</command></term>
195 <listitem>
196 <para>An error table compiler; it converts a table of error-code
197 names and messages into a C source file suitable for use with the
198 <filename class="libraryfile">com_err</filename> library</para>
199 <indexterm zone="ch-system-e2fsprogs compile_et">
200 <primary sortas="b-compile_et">compile_et</primary>
201 </indexterm>
202 </listitem>
203 </varlistentry>
204
205 <varlistentry id="debugfs">
206 <term><command>debugfs</command></term>
207 <listitem>
208 <para>A file system debugger; it can be used to examine and change
209 the state of an <systemitem class="filesystem">ext2</systemitem>
210 file system</para>
211 <indexterm zone="ch-system-e2fsprogs debugfs">
212 <primary sortas="b-debugfs">debugfs</primary>
213 </indexterm>
214 </listitem>
215 </varlistentry>
216
217 <varlistentry id="dumpe2fs">
218 <term><command>dumpe2fs</command></term>
219 <listitem>
220 <para>Prints the super block and blocks group information for the
221 file system present on a given device</para>
222 <indexterm zone="ch-system-e2fsprogs dumpe2fs">
223 <primary sortas="b-dumpe2fs">dumpe2fs</primary>
224 </indexterm>
225 </listitem>
226 </varlistentry>
227
228 <varlistentry id="e2freefrag">
229 <term><command>e2freefrag</command></term>
230 <listitem>
231 <para> Reports free space fragmentation information</para>
232 <indexterm zone="ch-system-e2fsprogs e2freefrag">
233 <primary sortas="b-e2freefrag">e2freefrag</primary>
234 </indexterm>
235 </listitem>
236 </varlistentry>
237
238 <varlistentry id="e2fsck">
239 <term><command>e2fsck</command></term>
240 <listitem>
241 <para>Is used to check, and optionally repair <systemitem
242 class="filesystem">ext2</systemitem> file systems and <systemitem
243 class="filesystem">ext3</systemitem> file systems</para>
244 <indexterm zone="ch-system-e2fsprogs e2fsck">
245 <primary sortas="b-e2fsck">e2fsck</primary>
246 </indexterm>
247 </listitem>
248 </varlistentry>
249
250 <varlistentry id="e2image">
251 <term><command>e2image</command></term>
252 <listitem>
253 <para>Is used to save critical <systemitem
254 class="filesystem">ext2</systemitem> file system data to a file</para>
255 <indexterm zone="ch-system-e2fsprogs e2image">
256 <primary sortas="b-e2image">e2image</primary>
257 </indexterm>
258 </listitem>
259 </varlistentry>
260
261 <varlistentry id="e2initrd_helper">
262 <term><command>e2initrd_helper</command></term>
263 <listitem>
264 <para>Prints the FS type of a given filesystem, given either a
265 device name or label</para>
266 <indexterm zone="ch-system-e2fsprogs e2initrd_helper">
267 <primary sortas="b-e2initrd_helper">e2initrd_helper</primary>
268 </indexterm>
269 </listitem>
270 </varlistentry>
271
272 <varlistentry id="e2label">
273 <term><command>e2label</command></term>
274 <listitem>
275 <para>Displays or changes the file system label on the <systemitem
276 class="filesystem">ext2</systemitem> file system present on a given
277 device</para>
278 <indexterm zone="ch-system-e2fsprogs e2label">
279 <primary sortas="b-e2label">e2label</primary>
280 </indexterm>
281 </listitem>
282 </varlistentry>
283
284 <varlistentry id="e2undo">
285 <term><command>e2undo</command></term>
286 <listitem>
287 <para>Replays the undo log undo_log for an ext2/ext3/ext4 filesystem
288 found on a device. This can be used to undo a failed operation by an
289 e2fsprogs program.</para>
290 <indexterm zone="ch-system-e2fsprogs e2undo">
291 <primary sortas="b-e2undo">e2undo</primary>
292 </indexterm>
293 </listitem>
294 </varlistentry>
295
296 <varlistentry id="filefrag">
297 <term><command>filefrag</command></term>
298 <listitem>
299 <para>Reports on how badly fragmented a particular file might be</para>
300 <indexterm zone="ch-system-e2fsprogs filefrag">
301 <primary sortas="b-filefrag">filefrag</primary>
302 </indexterm>
303 </listitem>
304 </varlistentry>
305
306 <varlistentry id="fsck.ext2">
307 <term><command>fsck.ext2</command></term>
308 <listitem>
309 <para>By default checks <systemitem class="filesystem">ext2</systemitem>
310 file systems. This is a hard link to <command>e2fsck</command>.</para>
311 <indexterm zone="ch-system-e2fsprogs fsck.ext2">
312 <primary sortas="b-fsck.ext2">fsck.ext2</primary>
313 </indexterm>
314 </listitem>
315 </varlistentry>
316
317 <varlistentry id="fsck.ext3">
318 <term><command>fsck.ext3</command></term>
319 <listitem>
320 <para>By default checks <systemitem class="filesystem">ext3</systemitem>
321 file systems. This is a hard link to <command>e2fsck</command>.</para>
322 <indexterm zone="ch-system-e2fsprogs fsck.ext3">
323 <primary sortas="b-fsck.ext3">fsck.ext3</primary>
324 </indexterm>
325 </listitem>
326 </varlistentry>
327
328 <varlistentry id="fsck.ext4">
329 <term><command>fsck.ext4</command></term>
330 <listitem>
331 <para>By default checks <systemitem class="filesystem">ext4</systemitem>
332 file systems. This is a hard link to <command>e2fsck</command>.</para>
333 <indexterm zone="ch-system-e2fsprogs fsck.ext4">
334 <primary sortas="b-fsck.ext4">fsck.ext4</primary>
335 </indexterm>
336 </listitem>
337 </varlistentry>
338
339 <varlistentry id="fsck.ext4dev">
340 <term><command>fsck.ext4dev</command></term>
341 <listitem>
342 <para>By default checks <systemitem class="filesystem">ext4</systemitem>
343 development file systems. This is a hard link to
344 <command>e2fsck</command>.</para>
345 <indexterm zone="ch-system-e2fsprogs fsck.ext4dev">
346 <primary sortas="b-fsck.ext4dev">fsck.ext4dev</primary>
347 </indexterm>
348 </listitem>
349 </varlistentry>
350
351 <varlistentry id="logsave">
352 <term><command>logsave</command></term>
353 <listitem>
354 <para>Saves the output of a command in a log file</para>
355 <indexterm zone="ch-system-e2fsprogs logsave">
356 <primary sortas="b-logsave">logsave</primary>
357 </indexterm>
358 </listitem>
359 </varlistentry>
360
361 <varlistentry id="lsattr">
362 <term><command>lsattr</command></term>
363 <listitem>
364 <para>Lists the attributes of files on a second extended file
365 system</para>
366 <indexterm zone="ch-system-e2fsprogs lsattr">
367 <primary sortas="b-lsattr">lsattr</primary>
368 </indexterm>
369 </listitem>
370 </varlistentry>
371
372 <varlistentry id="mk_cmds">
373 <term><command>mk_cmds</command></term>
374 <listitem>
375 <para>Converts a table of command names and help messages into a C
376 source file suitable for use with the <filename
377 class="libraryfile">libss</filename> subsystem library</para>
378 <indexterm zone="ch-system-e2fsprogs mk_cmds">
379 <primary sortas="b-mk_cmds">mk_cmds</primary>
380 </indexterm>
381 </listitem>
382 </varlistentry>
383
384 <varlistentry id="mke2fs">
385 <term><command>mke2fs</command></term>
386 <listitem>
387 <para>Creates an <systemitem class="filesystem">ext2</systemitem>
388 or <systemitem class="filesystem">ext3</systemitem> file system on
389 the given device</para>
390 <indexterm zone="ch-system-e2fsprogs mke2fs">
391 <primary sortas="b-mke2fs">mke2fs</primary>
392 </indexterm>
393 </listitem>
394 </varlistentry>
395
396 <varlistentry id="mkfs.ext2">
397 <term><command>mkfs.ext2</command></term>
398 <listitem>
399 <para>By default creates <systemitem class="filesystem">ext2</systemitem>
400 file systems. This is a hard link to <command>mke2fs</command>.</para>
401 <indexterm zone="ch-system-e2fsprogs mkfs.ext2">
402 <primary sortas="b-mkfs.ext2">mkfs.ext2</primary>
403 </indexterm>
404 </listitem>
405 </varlistentry>
406
407 <varlistentry id="mkfs.ext3">
408 <term><command>mkfs.ext3</command></term>
409 <listitem>
410 <para>By default creates <systemitem class="filesystem">ext3</systemitem>
411 file systems. This is a hard link to <command>mke2fs</command>.</para>
412 <indexterm zone="ch-system-e2fsprogs mkfs.ext3">
413 <primary sortas="b-mkfs.ext3">mkfs.ext3</primary>
414 </indexterm>
415 </listitem>
416 </varlistentry>
417
418 <varlistentry id="mkfs.ext4">
419 <term><command>mkfs.ext4</command></term>
420 <listitem>
421 <para>By default creates <systemitem class="filesystem">ext4</systemitem>
422 file systems. This is a hard link to <command>mke2fs</command>.</para>
423 <indexterm zone="ch-system-e2fsprogs mkfs.ext4">
424 <primary sortas="b-mkfs.ext4">mkfs.ext4</primary>
425 </indexterm>
426 </listitem>
427 </varlistentry>
428
429 <varlistentry id="mkfs.ext4dev">
430 <term><command>mkfs.ext4dev</command></term>
431 <listitem>
432 <para>By default creates <systemitem class="filesystem">ext4</systemitem>
433 development file systems. This is a hard link to <command>mke2fs</command>.</para>
434 <indexterm zone="ch-system-e2fsprogs mkfs.ext4dev">
435 <primary sortas="b-mkfs.ext4dev">mkfs.ext4dev</primary>
436 </indexterm>
437 </listitem>
438 </varlistentry>
439
440 <varlistentry id="mklost-found">
441 <term><command>mklost+found</command></term>
442 <listitem>
443 <para>Used to create a <filename class="directory">lost+found</filename>
444 directory on an <systemitem class="filesystem">ext2</systemitem> file
445 system; it pre-allocates disk blocks to this directory to lighten the
446 task of <command>e2fsck</command></para>
447 <indexterm zone="ch-system-e2fsprogs mklost-found">
448 <primary sortas="b-mklost+found">mklost+found</primary>
449 </indexterm>
450 </listitem>
451 </varlistentry>
452
453 <varlistentry id="resize2fs">
454 <term><command>resize2fs</command></term>
455 <listitem>
456 <para>Can be used to enlarge or shrink an <systemitem
457 class="filesystem">ext2</systemitem> file system</para>
458 <indexterm zone="ch-system-e2fsprogs resize2fs">
459 <primary sortas="b-resize2fs">resize2fs</primary>
460 </indexterm>
461 </listitem>
462 </varlistentry>
463
464 <varlistentry id="tune2fs">
465 <term><command>tune2fs</command></term>
466 <listitem>
467 <para>Adjusts tunable file system parameters on an <systemitem
468 class="filesystem">ext2</systemitem> file system</para>
469 <indexterm zone="ch-system-e2fsprogs tune2fs">
470 <primary sortas="b-tune2fs">tune2fs</primary>
471 </indexterm>
472 </listitem>
473 </varlistentry>
474
475 <varlistentry id="libcom_err">
476 <term><filename class="libraryfile">libcom_err</filename></term>
477 <listitem>
478 <para>The common error display routine</para>
479 <indexterm zone="ch-system-e2fsprogs libcom_err">
480 <primary sortas="c-libcom_err">libcom_err</primary>
481 </indexterm>
482 </listitem>
483 </varlistentry>
484
485 <varlistentry id="libe2p">
486 <term><filename class="libraryfile">libe2p</filename></term>
487 <listitem>
488 <para>Used by <command>dumpe2fs</command>, <command>chattr</command>,
489 and <command>lsattr</command></para>
490 <indexterm zone="ch-system-e2fsprogs libe2p">
491 <primary sortas="c-libe2p">libe2p</primary>
492 </indexterm>
493 </listitem>
494 </varlistentry>
495
496 <varlistentry id="libext2fs">
497 <term><filename class="libraryfile">libext2fs</filename></term>
498 <listitem>
499 <para>Contains routines to enable user-level programs to manipulate an
500 <systemitem class="filesystem">ext2</systemitem> file system</para>
501 <indexterm zone="ch-system-e2fsprogs libext2fs">
502 <primary sortas="c-libext2fs">libext2fs</primary>
503 </indexterm>
504 </listitem>
505 </varlistentry>
506
507 <varlistentry id="libss">
508 <term><filename class="libraryfile">libss</filename></term>
509 <listitem>
510 <para>Used by <command>debugfs</command></para>
511 <indexterm zone="ch-system-e2fsprogs libss">
512 <primary sortas="c-libss">libss</primary>
513 </indexterm>
514 </listitem>
515 </varlistentry>
516
517 </variablelist>
518
519 </sect2>
520
521</sect1>
Note: See TracBrowser for help on using the repository browser.