source: BOOK/final-system/common/e2fsprogs.xml@ 425ea7c

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 425ea7c was 7bfc8ec, checked in by Jim Gifford <clfs@…>, 15 years ago

Finished e2fsprogs changes for util-linux-ng

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