source: chapter06/e2fsprogs.xml@ bdd7f27

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

Added chmod instructions to e2fsprogs and tcl
to ensure all libraries are writable by root for stripping.

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

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