source: chapter06/e2fsprogs.xml@ 97645eb

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 97645eb was 97645eb, checked in by Randy McMurchy <randy@…>, 16 years ago

Updated E2fsprogs to 1.41.1

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

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