source: chapter06/e2fsprogs.xml@ 54e422c1

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.3 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 54e422c1 was 54e422c1, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Indenting chapter 6, part 4

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

  • Property mode set to 100644
File size: 16.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/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 <title>E2fsprogs-&e2fsprogs-version;</title>
12
13 <indexterm zone="ch-system-e2fsprogs">
14 <primary sortas="a-E2fsprogs">E2fsprogs</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The E2fsprogs package contains the utilities for handling the
21 <systemitem class="filesystem">ext2</systemitem> file system. It also
22 supports the <systemitem class="filesystem">ext3</systemitem> journaling
23 file system.</para>
24
25 <segmentedlist>
26 <segtitle>&buildtime;</segtitle>
27 <segtitle>&diskspace;</segtitle>
28
29 <seglistitem>
30 <seg>0.6 SBU</seg>
31 <seg>40.0 MB</seg>
32 </seglistitem>
33 </segmentedlist>
34
35 <segmentedlist>
36 <segtitle>&dependencies;</segtitle>
37
38 <seglistitem>
39 <seg>Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Gettext, Glibc,
40 Grep, Make, Sed, and Texinfo</seg>
41 </seglistitem>
42 </segmentedlist>
43
44 </sect2>
45
46 <sect2 role="installation">
47 <title>Installation of E2fsprogs</title>
48
49 <para>It is recommended that E2fsprogs be built in a subdirectory of
50 the source tree: </para>
51
52<screen><userinput>mkdir -v build
53cd build</userinput></screen>
54
55 <para>Prepare E2fsprogs for compilation:</para>
56
57<screen><userinput>../configure --prefix=/usr --with-root-prefix="" \
58 --enable-elf-shlibs --disable-evms</userinput></screen>
59
60 <variablelist>
61 <title>The meaning of the configure options:</title>
62
63 <varlistentry>
64 <term><parameter>--with-root-prefix=""</parameter></term>
65 <listitem>
66 <para>Certain programs (such as the <command>e2fsck</command>
67 program) are considered essential programs. When, for example,
68 <filename class="directory">/usr</filename> is not mounted, these
69 programs still need to be available. They belong in directories
70 like <filename class="directory">/lib</filename> and <filename
71 class="directory">/sbin</filename>. If this option is not passed
72 to E2fsprogs' configure, the programs are installed into the
73 <filename class="directory">/usr</filename> directory.</para>
74 </listitem>
75 </varlistentry>
76
77 <varlistentry>
78 <term><parameter>--enable-elf-shlibs</parameter></term>
79 <listitem>
80 <para>This creates the shared libraries which some programs
81 in this package use.</para>
82 </listitem>
83 </varlistentry>
84
85 <varlistentry>
86 <term><parameter>--disable-evms</parameter></term>
87 <listitem>
88 <para>This disables the building of the Enterprise Volume
89 Management System (EVMS) plugin. This plugin is not up-to-date with
90 the latest EVMS internal interfaces and EVMS is not installed as part
91 of a base LFS system, so the plugin is not required. See the EVMS
92 website at <ulink url="http://evms.sourceforge.net/"/> for more
93 information regarding EVMS.</para>
94 </listitem>
95 </varlistentry>
96
97 </variablelist>
98
99 <para>Compile the package:</para>
100
101<screen><userinput>make</userinput></screen>
102
103 <para>To test the results, issue:
104 <userinput>make check</userinput>.</para>
105
106 <para>Install the binaries and documentation:</para>
107
108<screen><userinput>make install</userinput></screen>
109
110 <para>Install the shared libraries:</para>
111
112<screen><userinput>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, 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="findfs">
245 <term><command>findfs</command></term>
246 <listitem>
247 <para>Finds a file system by label or Universally Unique Identifier
248 (UUID)</para>
249 <indexterm zone="ch-system-e2fsprogs findfs">
250 <primary sortas="b-findfs">findfs</primary>
251 </indexterm>
252 </listitem>
253 </varlistentry>
254
255 <varlistentry id="fsck">
256 <term><command>fsck</command></term>
257 <listitem>
258 <para>Is used to check, and optionally repair, file systems</para>
259 <indexterm zone="ch-system-e2fsprogs fsck">
260 <primary sortas="b-fsck">fsck</primary>
261 </indexterm>
262 </listitem>
263 </varlistentry>
264
265 <varlistentry id="fsck.ext2">
266 <term><command>fsck.ext2</command></term>
267 <listitem>
268 <para>By default checks <systemitem class="filesystem">ext2</systemitem>
269 file systems</para>
270 <indexterm zone="ch-system-e2fsprogs fsck.ext2">
271 <primary sortas="b-fsck.ext2">fsck.ext2</primary>
272 </indexterm>
273 </listitem>
274 </varlistentry>
275
276 <varlistentry id="fsck.ext3">
277 <term><command>fsck.ext3</command></term>
278 <listitem>
279 <para>By default checks <systemitem class="filesystem">ext3</systemitem>
280 file systems</para>
281 <indexterm zone="ch-system-e2fsprogs fsck.ext3">
282 <primary sortas="b-fsck.ext3">fsck.ext3</primary>
283 </indexterm>
284 </listitem>
285 </varlistentry>
286
287 <varlistentry id="logsave">
288 <term><command>logsave</command></term>
289 <listitem>
290 <para>Saves the output of a command in a log file</para>
291 <indexterm zone="ch-system-e2fsprogs logsave">
292 <primary sortas="b-logsave">logsave</primary>
293 </indexterm>
294 </listitem>
295 </varlistentry>
296
297 <varlistentry id="lsattr">
298 <term><command>lsattr</command></term>
299 <listitem>
300 <para>Lists the attributes of files on a second extended file
301 system</para>
302 <indexterm zone="ch-system-e2fsprogs lsattr">
303 <primary sortas="b-lsattr">lsattr</primary>
304 </indexterm>
305 </listitem>
306 </varlistentry>
307
308 <varlistentry id="mk_cmds">
309 <term><command>mk_cmds</command></term>
310 <listitem>
311 <para>Converts a table of command names and help messages into a C
312 source file suitable for use with the <filename
313 class="libraryfile">libss</filename> subsystem library</para>
314 <indexterm zone="ch-system-e2fsprogs mk_cmds">
315 <primary sortas="b-mk_cmds">mk_cmds</primary>
316 </indexterm>
317 </listitem>
318 </varlistentry>
319
320 <varlistentry id="mke2fs">
321 <term><command>mke2fs</command></term>
322 <listitem>
323 <para>Creates an <systemitem class="filesystem">ext2</systemitem>
324 or <systemitem class="filesystem">ext3</systemitem> file system on
325 the given device</para>
326 <indexterm zone="ch-system-e2fsprogs mke2fs">
327 <primary sortas="b-mke2fs">mke2fs</primary>
328 </indexterm>
329 </listitem>
330 </varlistentry>
331
332 <varlistentry id="mkfs.ext2">
333 <term><command>mkfs.ext2</command></term>
334 <listitem>
335 <para>By default creates <systemitem class="filesystem">ext2</systemitem>
336 file systems</para>
337 <indexterm zone="ch-system-e2fsprogs mkfs.ext2">
338 <primary sortas="b-mkfs.ext2">mkfs.ext2</primary>
339 </indexterm>
340 </listitem>
341 </varlistentry>
342
343 <varlistentry id="mkfs.ext3">
344 <term><command>mkfs.ext3</command></term>
345 <listitem>
346 <para>By default creates <systemitem class="filesystem">ext3</systemitem>
347 file systems</para>
348 <indexterm zone="ch-system-e2fsprogs mkfs.ext3">
349 <primary sortas="b-mkfs.ext3">mkfs.ext3</primary>
350 </indexterm>
351 </listitem>
352 </varlistentry>
353
354 <varlistentry id="mklost-found">
355 <term><command>mklost+found</command></term>
356 <listitem>
357 <para>Used to create a <filename class="directory">lost+found</filename>
358 directory on an <systemitem class="filesystem">ext2</systemitem> file
359 system; it pre-allocates disk blocks to this directory to lighten the
360 task of <command>e2fsck</command></para>
361 <indexterm zone="ch-system-e2fsprogs mklost-found">
362 <primary sortas="b-mklost+found">mklost+found</primary>
363 </indexterm>
364 </listitem>
365 </varlistentry>
366
367 <varlistentry id="resize2fs">
368 <term><command>resize2fs</command></term>
369 <listitem>
370 <para>Can be used to enlarge or shrink an <systemitem
371 class="filesystem">ext2</systemitem> file system</para>
372 <indexterm zone="ch-system-e2fsprogs resize2fs">
373 <primary sortas="b-resize2fs">resize2fs</primary>
374 </indexterm>
375 </listitem>
376 </varlistentry>
377
378 <varlistentry id="tune2fs">
379 <term><command>tune2fs</command></term>
380 <listitem>
381 <para>Adjusts tunable file system parameters on an <systemitem
382 class="filesystem">ext2</systemitem> file system</para>
383 <indexterm zone="ch-system-e2fsprogs tune2fs">
384 <primary sortas="b-tune2fs">tune2fs</primary>
385 </indexterm>
386 </listitem>
387 </varlistentry>
388
389 <varlistentry id="uuidgen">
390 <term><command>uuidgen</command></term>
391 <listitem>
392 <para>Creates new UUIDs. Each new UUID can reasonably be considered
393 unique among all UUIDs created, on the local system and on other
394 systems, in the past and in the future</para>
395 <indexterm zone="ch-system-e2fsprogs uuidgen">
396 <primary sortas="b-uuidgen">uuidgen</primary>
397 </indexterm>
398 </listitem>
399 </varlistentry>
400
401 <varlistentry id="libblkid">
402 <term><filename class="libraryfile">libblkid</filename></term>
403 <listitem>
404 <para>Contains routines for device identification and token
405 extraction</para>
406 <indexterm zone="ch-system-e2fsprogs libblkid">
407 <primary sortas="c-libblkid">libblkid</primary>
408 </indexterm>
409 </listitem>
410 </varlistentry>
411
412 <varlistentry id="libcom_err">
413 <term><filename class="libraryfile">libcom_err</filename></term>
414 <listitem>
415 <para>The common error display routine</para>
416 <indexterm zone="ch-system-e2fsprogs libcom_err">
417 <primary sortas="c-libcom_err">libcom_err</primary>
418 </indexterm>
419 </listitem>
420 </varlistentry>
421
422 <varlistentry id="libe2p">
423 <term><filename class="libraryfile">libe2p</filename></term>
424 <listitem>
425 <para>Used by <command>dumpe2fs</command>, <command>chattr</command>,
426 and <command>lsattr</command></para>
427 <indexterm zone="ch-system-e2fsprogs libe2p">
428 <primary sortas="c-libe2p">libe2p</primary>
429 </indexterm>
430 </listitem>
431 </varlistentry>
432
433 <varlistentry id="libext2fs">
434 <term><filename class="libraryfile">libext2fs</filename></term>
435 <listitem>
436 <para>Contains routines to enable user-level programs to manipulate an
437 <systemitem class="filesystem">ext2</systemitem> file system</para>
438 <indexterm zone="ch-system-e2fsprogs libext2fs">
439 <primary sortas="c-libext2fs">libext2fs</primary>
440 </indexterm>
441 </listitem>
442 </varlistentry>
443
444 <varlistentry id="libss">
445 <term><filename class="libraryfile">libss</filename></term>
446 <listitem>
447 <para>Used by <command>debugfs</command></para>
448 <indexterm zone="ch-system-e2fsprogs libss">
449 <primary sortas="c-libss">libss</primary>
450 </indexterm>
451 </listitem>
452 </varlistentry>
453
454 <varlistentry id="libuuid">
455 <term><filename class="libraryfile">libuuid</filename></term>
456 <listitem>
457 <para>Contains routines for generating unique identifiers for objects
458 that may be accessible beyond the local system</para>
459 <indexterm zone="ch-system-e2fsprogs libuuid">
460 <primary sortas="c-libuuid">libuuid</primary>
461 </indexterm>
462 </listitem>
463 </varlistentry>
464
465 </variablelist>
466
467 </sect2>
468
469</sect1>
Note: See TracBrowser for help on using the repository browser.