source: chapter06/e2fsprogs.xml@ d93b3b87

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.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 d93b3b87 was d93b3b87, checked in by Matthew Burgess <matthew@…>, 16 years ago

Add fix for upstream bug in E2fsprogs' testsuite. Thanks to Greg Schafer for the report and the fix.

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

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