source: chapter06/e2fsprogs.xml@ 936b292

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 7.4 7.5 7.6 7.7 7.8 7.9 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 936b292 was 936b292, checked in by Bruce Dubbs <bdubbs@…>, 11 years ago

Update automake, kernel, e2fsprogs, and man-db

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

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