source: chapter06/e2fsprogs.xml@ eb6d9eb

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 eb6d9eb was eb6d9eb, checked in by Archaic <archaic@…>, 19 years ago

Updated all chapter 6 build sizes (and chapter7 bootscripts).

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

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