source: chapter06/e2fsprogs.xml@ 5998892

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

Add -v to commands that accept it

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

  • Property mode set to 100644
File size: 13.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 <!ENTITY % patches-entities SYSTEM "../patches.ent">
5 %general-entities;
6 %patches-entities;
7]>
8<sect1 id="ch-system-e2fsprogs" role="wrap">
9<title>E2fsprogs-&e2fsprogs-version;</title>
10<?dbhtml filename="e2fsprogs.html"?>
11
12<indexterm zone="ch-system-e2fsprogs"><primary sortas="a-E2fsprogs">E2fsprogs</primary></indexterm>
13
14<sect2 role="package"><title/>
15<para>The E2fsprogs package contains the utilities for handling the
16<systemitem class="filesystem">ext2</systemitem> file system. It also supports
17the <systemitem class="filesystem">ext3</systemitem> journaling file system.</para>
18
19<segmentedlist>
20<segtitle>&buildtime;</segtitle>
21<segtitle>&diskspace;</segtitle>
22<seglistitem><seg>0.6 SBU</seg><seg>40.0 MB</seg></seglistitem>
23</segmentedlist>
24
25<segmentedlist>
26<segtitle>&dependencies;</segtitle>
27<seglistitem><seg>Bash, Binutils, Coreutils,
28Diffutils, Gawk, GCC, Gettext, Glibc, Grep, Make, Sed, and Texinfo</seg></seglistitem>
29</segmentedlist>
30</sect2>
31
32<sect2 role="installation">
33<title>Installation of E2fsprogs</title>
34
35<para>It is recommended that E2fsprogs be built in a subdirectory of the source tree:
36</para>
37
38<screen><userinput>mkdir -v build
39cd build</userinput></screen>
40
41<para>Prepare E2fsprogs for compilation:</para>
42
43<screen><userinput>../configure --prefix=/usr --with-root-prefix="" \
44 --enable-elf-shlibs --disable-evms</userinput></screen>
45
46<para>The meaning of the configure options:</para>
47
48<variablelist>
49<varlistentry>
50<term><parameter>--with-root-prefix=""</parameter></term>
51<listitem><para>Certain programs (such as the <command>e2fsck</command> program)
52are considered essential programs. When, for example, <filename
53class="directory">/usr</filename> is not mounted, these programs still need
54to be available. They belong in directories like <filename
55class="directory">/lib</filename> and <filename
56class="directory">/sbin</filename>. If this option is not passed to E2fsprogs'
57configure, the programs are installed into the <filename
58class="directory">/usr</filename> directory.</para></listitem>
59
60</varlistentry>
61
62<varlistentry>
63<term><parameter>--enable-elf-shlibs</parameter></term>
64<listitem><para>This creates the shared libraries which some programs
65in this package use.</para></listitem>
66</varlistentry>
67
68<varlistentry>
69<term><parameter>--disable-evms</parameter></term>
70<listitem><para>This disables the building of the Enterprise Volume
71Management System (EVMS) plugin. This plugin is not up-to-date with
72the latest EVMS internal interfaces and EVMS is not installed as part
73of a base LFS system, so the plugin is not required. See the EVMS
74website at <ulink url="http://evms.sourceforge.net/"/> for more
75information regarding EVMS.</para></listitem>
76</varlistentry>
77</variablelist>
78
79<para>Compile the package:</para>
80
81<screen><userinput>make</userinput></screen>
82
83<para>To test the results, issue:
84<userinput>make check</userinput>.</para>
85
86<para>Install the binaries and documentation:</para>
87
88<screen><userinput>make install</userinput></screen>
89
90<para>Install the shared libraries:</para>
91
92<screen><userinput>make install-libs</userinput></screen>
93
94</sect2>
95
96
97
98<sect2 id="contents-e2fsprogs" role="content"><title>Contents of E2fsprogs</title>
99
100<segmentedlist>
101<segtitle>Installed programs</segtitle>
102<segtitle>Installed libraries</segtitle>
103<seglistitem><seg>badblocks, blkid, chattr,
104compile_et, debugfs, dumpe2fs, e2fsck, e2image, e2label, findfs, fsck,
105fsck.ext2, fsck.ext3, logsave, lsattr, mk_cmds, mke2fs, mkfs.ext2, mkfs.ext3,
106mklost+found, resize2fs, tune2fs, and uuidgen.</seg>
107<seg>libblkid.[a,so], libcom_err.[a,so], libe2p.[a,so],
108libext2fs.[a,so], libss.[a,so], and libuuid.[a,so]</seg></seglistitem>
109</segmentedlist>
110
111<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
112<?dbfo list-presentation="list"?>
113<?dbhtml list-presentation="table"?>
114
115<varlistentry id="badblocks">
116<term><command>badblocks</command></term>
117<listitem>
118<para>Searches a device (usually a disk partition) for bad blocks</para>
119<indexterm zone="ch-system-e2fsprogs badblocks"><primary sortas="b-badblocks">badblocks</primary></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 attributes</para>
127<indexterm zone="ch-system-e2fsprogs blkid"><primary sortas="b-blkid">blkid</primary></indexterm>
128</listitem>
129</varlistentry>
130
131<varlistentry id="chattr">
132<term><command>chattr</command></term>
133<listitem>
134<para>Changes the attributes of files on an <systemitem
135class="filesystem">ext2</systemitem> file system; it also changes <systemitem
136class="filesystem">ext3</systemitem> file systems, the journaling version of
137<systemitem class="filesystem">ext2</systemitem> file systems</para>
138<indexterm zone="ch-system-e2fsprogs chattr"><primary sortas="b-chattr">chattr</primary></indexterm>
139</listitem>
140</varlistentry>
141
142<varlistentry id="compile_et">
143<term><command>compile_et</command></term>
144<listitem>
145<para>An error table compiler; it converts a table of error-code names and
146messages into a C source file suitable for use with the <filename
147class="libraryfile">com_err</filename> library</para>
148<indexterm zone="ch-system-e2fsprogs compile_et"><primary sortas="b-compile_et">compile_et</primary></indexterm>
149</listitem>
150</varlistentry>
151
152<varlistentry id="debugfs">
153<term><command>debugfs</command></term>
154<listitem>
155<para>A file system debugger; it can be used to examine and change the
156state of an <systemitem class="filesystem">ext2</systemitem> file system</para>
157<indexterm zone="ch-system-e2fsprogs debugfs"><primary sortas="b-debugfs">debugfs</primary></indexterm>
158</listitem>
159</varlistentry>
160
161<varlistentry id="dumpe2fs">
162<term><command>dumpe2fs</command></term>
163<listitem>
164<para>Prints the super block and blocks group information for the file
165system present on a given device</para>
166<indexterm zone="ch-system-e2fsprogs dumpe2fs"><primary sortas="b-dumpe2fs">dumpe2fs</primary></indexterm>
167</listitem>
168</varlistentry>
169
170<varlistentry id="e2fsck">
171<term><command>e2fsck</command></term>
172<listitem>
173<para>Is used to check, and optionally repair <systemitem
174class="filesystem">ext2</systemitem> file systems and <systemitem
175class="filesystem">ext3</systemitem> file systems</para>
176<indexterm zone="ch-system-e2fsprogs e2fsck"><primary sortas="b-e2fsck">e2fsck</primary></indexterm>
177</listitem>
178</varlistentry>
179
180<varlistentry id="e2image">
181<term><command>e2image</command></term>
182<listitem>
183<para>Is used to save critical <systemitem class="filesystem">ext2</systemitem>
184file system data to a file</para>
185<indexterm zone="ch-system-e2fsprogs e2image"><primary sortas="b-e2image">e2image</primary></indexterm>
186</listitem>
187</varlistentry>
188
189<varlistentry id="e2label">
190<term><command>e2label</command></term>
191<listitem>
192<para>Displays or changes the file system label on the <systemitem
193class="filesystem">ext2</systemitem> file system present on a given device</para>
194<indexterm zone="ch-system-e2fsprogs e2label"><primary sortas="b-e2label">e2label</primary></indexterm>
195</listitem>
196</varlistentry>
197
198<varlistentry id="findfs">
199<term><command>findfs</command></term>
200<listitem>
201<para>Finds a file system by label or Universally Unique Identifier (UUID)</para>
202<indexterm zone="ch-system-e2fsprogs findfs"><primary sortas="b-findfs">findfs</primary></indexterm>
203</listitem>
204</varlistentry>
205
206<varlistentry id="fsck">
207<term><command>fsck</command></term>
208<listitem>
209<para>Is used to check, and optionally repair, file systems</para>
210<indexterm zone="ch-system-e2fsprogs fsck"><primary sortas="b-fsck">fsck</primary></indexterm>
211</listitem>
212</varlistentry>
213
214<varlistentry id="fsck.ext2">
215<term><command>fsck.ext2</command></term>
216<listitem>
217<para>By default checks <systemitem class="filesystem">ext2</systemitem>
218file systems</para>
219<indexterm zone="ch-system-e2fsprogs fsck.ext2"><primary
220sortas="b-fsck.ext2">fsck.ext2</primary></indexterm>
221</listitem>
222</varlistentry>
223
224<varlistentry id="fsck.ext3">
225<term><command>fsck.ext3</command></term>
226<listitem>
227<para>By default checks <systemitem class="filesystem">ext3</systemitem>
228file systems</para>
229<indexterm zone="ch-system-e2fsprogs fsck.ext3"><primary
230sortas="b-fsck.ext3">fsck.ext3</primary></indexterm>
231</listitem>
232</varlistentry>
233
234<varlistentry id="logsave">
235<term><command>logsave</command></term>
236<listitem>
237<para>Saves the output of a command in a log file</para>
238<indexterm zone="ch-system-e2fsprogs logsave"><primary sortas="b-logsave">logsave</primary></indexterm>
239</listitem>
240</varlistentry>
241
242<varlistentry id="lsattr">
243<term><command>lsattr</command></term>
244<listitem>
245<para>Lists the attributes of files on a second extended file system</para>
246<indexterm zone="ch-system-e2fsprogs lsattr"><primary sortas="b-lsattr">lsattr</primary></indexterm>
247</listitem>
248</varlistentry>
249
250<varlistentry id="mk_cmds">
251<term><command>mk_cmds</command></term>
252<listitem>
253<para>Converts a table of command names and help messages into a C
254source file suitable for use with the <filename
255class="libraryfile">libss</filename> subsystem library</para>
256<indexterm zone="ch-system-e2fsprogs mk_cmds"><primary sortas="b-mk_cmds">mk_cmds</primary></indexterm>
257</listitem>
258</varlistentry>
259
260<varlistentry id="mke2fs">
261<term><command>mke2fs</command></term>
262<listitem>
263<para>Creates an ext2 or ext3 file system on the given device</para>
264<indexterm zone="ch-system-e2fsprogs mke2fs"><primary sortas="b-mke2fs">mke2fs</primary></indexterm>
265</listitem>
266</varlistentry>
267
268<varlistentry id="mkfs.ext2">
269<term><command>mkfs.ext2</command></term>
270<listitem>
271<para>By default creates <systemitem class="filesystem">ext2</systemitem>
272file systems</para>
273<indexterm zone="ch-system-e2fsprogs mkfs.ext2"><primary
274sortas="b-mkfs.ext2">mkfs.ext2</primary></indexterm>
275</listitem>
276</varlistentry>
277
278<varlistentry id="mkfs.ext3">
279<term><command>mkfs.ext3</command></term>
280<listitem>
281<para>By default creates <systemitem class="filesystem">ext3</systemitem>
282file systems</para>
283<indexterm zone="ch-system-e2fsprogs mkfs.ext3"><primary
284sortas="b-mkfs.ext3">mkfs.ext3</primary></indexterm>
285</listitem>
286</varlistentry>
287
288<varlistentry id="mklost-found">
289<term><command>mklost+found</command></term>
290<listitem>
291<para>Used to create a <filename class="directory">lost+found</filename>
292directory on an <systemitem class="filesystem">ext2</systemitem> file system;
293it pre-allocates disk blocks to this directory to lighten the task of
294<command>e2fsck</command></para>
295<indexterm zone="ch-system-e2fsprogs mklost-found"><primary sortas="b-mklost+found">mklost+found</primary></indexterm>
296</listitem>
297</varlistentry>
298
299<varlistentry id="resize2fs">
300<term><command>resize2fs</command></term>
301<listitem>
302<para>Can be used to enlarge or shrink an <systemitem
303class="filesystem">ext2</systemitem> file system</para>
304<indexterm zone="ch-system-e2fsprogs resize2fs"><primary sortas="b-resize2fs">resize2fs</primary></indexterm>
305</listitem>
306</varlistentry>
307
308<varlistentry id="tune2fs">
309<term><command>tune2fs</command></term>
310<listitem>
311<para>Adjusts tunable file system parameters on an <systemitem
312class="filesystem">ext2</systemitem> file system</para>
313<indexterm zone="ch-system-e2fsprogs tune2fs"><primary sortas="b-tune2fs">tune2fs</primary></indexterm>
314</listitem>
315</varlistentry>
316
317<varlistentry id="uuidgen">
318<term><command>uuidgen</command></term>
319<listitem>
320<para>Creates new UUIDs. Each new UUID can reasonably be considered unique
321among all UUIDs created, on the local system and on other systems, in the
322past and in the future</para>
323<indexterm zone="ch-system-e2fsprogs uuidgen"><primary sortas="b-uuidgen">uuidgen</primary></indexterm>
324</listitem>
325</varlistentry>
326
327<varlistentry id="libblkid">
328<term><filename class="libraryfile">libblkid</filename></term>
329<listitem>
330<para>Contains routines for device identification and token extraction</para>
331<indexterm zone="ch-system-e2fsprogs libblkid"><primary sortas="c-libblkid">libblkid</primary></indexterm>
332</listitem>
333</varlistentry>
334
335<varlistentry id="libcom_err">
336<term><filename class="libraryfile">libcom_err</filename></term>
337<listitem>
338<para>The common error display routine</para>
339<indexterm zone="ch-system-e2fsprogs libcom_err"><primary sortas="c-libcom_err">libcom_err</primary></indexterm>
340</listitem>
341</varlistentry>
342
343<varlistentry id="libe2p">
344<term><filename class="libraryfile">libe2p</filename></term>
345<listitem>
346<para>Used by <command>dumpe2fs</command>, <command>chattr</command>,
347and <command>lsattr</command></para>
348<indexterm zone="ch-system-e2fsprogs libe2p"><primary sortas="c-libe2p">libe2p</primary></indexterm>
349</listitem>
350</varlistentry>
351
352<varlistentry id="libext2fs">
353<term><filename class="libraryfile">libext2fs</filename></term>
354<listitem>
355<para>Contains routines to enable user-level programs to manipulate an
356<systemitem class="filesystem">ext2</systemitem> file system</para>
357<indexterm zone="ch-system-e2fsprogs libext2fs"><primary sortas="c-libext2fs">libext2fs</primary></indexterm>
358</listitem>
359</varlistentry>
360
361<varlistentry id="libss">
362<term><filename class="libraryfile">libss</filename></term>
363<listitem>
364<para>Used by <command>debugfs</command></para>
365<indexterm zone="ch-system-e2fsprogs libss"><primary sortas="c-libss">libss</primary></indexterm>
366</listitem>
367</varlistentry>
368
369<varlistentry id="libuuid">
370<term><filename class="libraryfile">libuuid</filename></term>
371<listitem>
372<para>Contains routines for generating unique identifiers for objects
373that may be accessible beyond the local system</para>
374<indexterm zone="ch-system-e2fsprogs libuuid"><primary sortas="c-libuuid">libuuid</primary></indexterm>
375</listitem>
376</varlistentry>
377</variablelist>
378
379</sect2>
380
381</sect1>
382
Note: See TracBrowser for help on using the repository browser.