source: chapter06/e2fsprogs.xml@ 6f461cb

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 12.2 12.2-rc1 6.0 6.1 6.1.1 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/loongarch-12.2 xry111/mips64el xry111/multilib xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 6f461cb was c6cb3aa, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

HEAD: Retagged the Contents of ... sections.

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

  • Property mode set to 100644
File size: 10.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<sect1 id="ch-system-e2fsprogs" xreflabel="E2fsprogs" role="wrap">
7<title>E2fsprogs-&e2fsprogs-version;</title>
8<?dbhtml filename="e2fsprogs.html"?>
9
10<indexterm zone="ch-system-e2fsprogs"><primary sortas="a-E2fsprogs">E2fsprogs</primary></indexterm>
11
12<sect2 role="package"><title/>
13<para>The E2fsprogs package contains the utilities for handling the ext2
14file system. It also supports the ext3 journaling file system.</para>
15
16<segmentedlist>
17<segtitle>&buildtime;</segtitle>
18<segtitle>&diskspace;</segtitle>
19<seglistitem><seg>0.6 SBU</seg><seg>48.4 MB</seg></seglistitem>
20</segmentedlist>
21
22<segmentedlist>
23<segtitle>E2fsprogs installation depends on</segtitle>
24<seglistitem><seg>Bash, Binutils, Coreutils,
25Diffutils, Gawk, GCC, Gettext, Glibc, Grep, Make, Sed, Texinfo</seg></seglistitem>
26</segmentedlist>
27</sect2>
28
29<sect2 role="installation">
30<title>Installation of E2fsprogs</title>
31
32<para>Prepare E2fsprogs for compilation:</para>
33
34<screen><userinput>./configure --prefix=/usr --with-root-prefix="" \
35 --enable-elf-shlibs --disable-evms</userinput></screen>
36
37<para>The meaning of the configure options:</para>
38
39<itemizedlist>
40<listitem><para><userinput>--with-root-prefix=""</userinput>: Certain
41programs (such as the e2fsck program) are considered essential programs.
42When, for example, <filename class="directory">/usr</filename> isn't
43mounted, these essential programs have to be available. They belong in
44directories like <filename class="directory">/lib</filename> and
45<filename class="directory">/sbin</filename>. If this option isn't passed
46to E2fsprogs's configure, the programs are placed in the
47<filename class="directory">/usr</filename> directory, which is not what we
48want.</para></listitem>
49
50<listitem><para><userinput>--enable-elf-shlibs</userinput>: This creates
51the shared libraries which some programs in this package use.</para></listitem>
52</itemizedlist>
53
54<para>Compile the package:</para>
55
56<screen><userinput>make</userinput></screen>
57
58<para>To test the results, issue:
59<userinput>make check</userinput>.</para>
60
61<para>Install most of the package:</para>
62
63<screen><userinput>make install</userinput></screen>
64
65<para>Also install also the shared libraries:</para>
66
67<screen><userinput>make install-libs</userinput></screen>
68
69</sect2>
70
71
72
73<sect2 id="contents-e2fsprogs" role="content"><title>Contents of E2fsprogs</title>
74
75<segmentedlist>
76<segtitle>Installed programs</segtitle>
77<segtitle>Installed libraries</segtitle>
78<seglistitem><seg>badblocks, blkid, chattr,
79compile_et, debugfs, dumpe2fs, e2fsck, e2image, e2label, findfs, fsck,
80fsck.ext2, fsck.ext3, logsave, lsattr, mk_cmds, mke2fs, mkfs.ext2, mkfs.ext3,
81mklost+found, resize2fs, tune2fs and uuidgen.</seg>
82<seg>libblkid.[a,so], libcom_err.[a,so], libe2p.[a,so], libext2fs.[a,so], libss.[a,so] and
83libuuid.[a,so]</seg></seglistitem>
84</segmentedlist>
85
86<variablelist><title>Short descriptions</title>
87
88<varlistentry>
89<term id="badblocks"><command>badblocks</command></term>
90<listitem>
91<indexterm zone="ch-system-e2fsprogs badblocks"><primary sortas="b-badblocks">badblocks</primary></indexterm>
92<para>searches a device (usually a disk partition) for bad blocks.</para>
93</listitem>
94</varlistentry>
95
96<varlistentry>
97<term id="blkid"><command>blkid</command></term>
98<listitem>
99<indexterm zone="ch-system-e2fsprogs blkid"><primary sortas="b-blkid">blkid</primary></indexterm>
100<para>is a command line utility to locate and print block device attributes.</para>
101</listitem>
102</varlistentry>
103
104<varlistentry>
105<term id="chattr"><command>chattr</command></term>
106<listitem>
107<indexterm zone="ch-system-e2fsprogs chattr"><primary sortas="b-chattr">chattr</primary></indexterm>
108<para>changes the attributes of files on a second extended (ext2) file system, and
109also ext3 file systems, the journaling version of ext2 file systems.</para>
110</listitem>
111</varlistentry>
112
113<varlistentry>
114<term id="compile_et"><command>compile_et</command></term>
115<listitem>
116<indexterm zone="ch-system-e2fsprogs compile_et"><primary sortas="b-compile_et">compile_et</primary></indexterm>
117<para>is an error table compiler. It
118converts a table of error-code names and messages into a C source file
119suitable for use with the com_err library.</para>
120</listitem>
121</varlistentry>
122
123<varlistentry>
124<term id="debugfs"><command>debugfs</command></term>
125<listitem>
126<indexterm zone="ch-system-e2fsprogs debugfs"><primary sortas="b-debugfs">debugfs</primary></indexterm>
127<para>is a file system debugger. It can be
128used to examine and change the state of an ext2 file system.</para>
129</listitem>
130</varlistentry>
131
132<varlistentry>
133<term id="dumpe2fs"><command>dumpe2fs</command></term>
134<listitem>
135<indexterm zone="ch-system-e2fsprogs dumpe2fs"><primary sortas="b-dumpe2fs">dumpe2fs</primary></indexterm>
136<para>prints the super block and blocks group
137information for the file system present on a given device.</para>
138</listitem>
139</varlistentry>
140
141<varlistentry>
142<term id="e2fsck"><command>e2fsck</command></term>
143<listitem>
144<indexterm zone="ch-system-e2fsprogs e2fsck"><primary sortas="b-e2fsck">e2fsck</primary></indexterm>
145<para>is used to check, and optionally repair,
146second extended (ext2) file systems, and also ext3 file systems.</para>
147</listitem>
148</varlistentry>
149
150<varlistentry>
151<term id="e2image"><command>e2image</command></term>
152<listitem>
153<indexterm zone="ch-system-e2fsprogs e2image"><primary sortas="b-e2image">e2image</primary></indexterm>
154<para>is used to save critical ext2 file system data to a file.</para>
155</listitem>
156</varlistentry>
157
158<varlistentry>
159<term id="e2label"><command>e2label</command></term>
160<listitem>
161<indexterm zone="ch-system-e2fsprogs e2label"><primary sortas="b-e2label">e2label</primary></indexterm>
162<para>will display or change the file system
163label on the ext2 file system present on a given device.</para>
164</listitem>
165</varlistentry>
166
167<varlistentry>
168<term id="findfs"><command>findfs</command></term>
169<listitem>
170<indexterm zone="ch-system-e2fsprogs findfs"><primary sortas="b-findfs">findfs</primary></indexterm>
171<para>finds a file system by label or UUID (Universally Unique Identifier).</para>
172</listitem>
173</varlistentry>
174
175<varlistentry>
176<term id="fsck"><command>fsck</command></term>
177<listitem>
178<indexterm zone="ch-system-e2fsprogs fsck"><primary sortas="b-fsck">fsck</primary></indexterm>
179<para>is used to check, and optionally repair, file systems. By default it checks the
180file systems listed in <filename>/etc/fstab</filename></para>
181</listitem>
182</varlistentry>
183
184<varlistentry>
185<term id="logsave"><command>logsave</command></term>
186<listitem>
187<indexterm zone="ch-system-e2fsprogs logsave"><primary sortas="b-logsave">logsave</primary></indexterm>
188<para>saves the output of a command in a log file.</para>
189</listitem>
190</varlistentry>
191
192<varlistentry>
193<term id="lsattr"><command>lsattr</command></term>
194<listitem>
195<indexterm zone="ch-system-e2fsprogs lsattr"><primary sortas="b-lsattr">lsattr</primary></indexterm>
196<para>lists the attributes of files on a second extended file system.</para>
197</listitem>
198</varlistentry>
199
200<varlistentry>
201<term id="mk_cmds"><command>mk_cmds</command></term>
202<listitem>
203<indexterm zone="ch-system-e2fsprogs mk_cmds"><primary sortas="b-mk_cmds">mk_cmds</primary></indexterm>
204<para>converts a table of command names
205and help messages into a C source file suitable for use with the
206<filename>libss</filename> subsystem library.</para>
207</listitem>
208</varlistentry>
209
210<varlistentry>
211<term id="mke2fs"><command>mke2fs</command></term>
212<listitem>
213<indexterm zone="ch-system-e2fsprogs mke2fs"><primary sortas="b-mke2fs">mke2fs</primary></indexterm>
214<para>is used to create a second extended file system on the given device.</para>
215</listitem>
216</varlistentry>
217
218<varlistentry>
219<term id="mklost-found"><command>mklost+found</command></term>
220<listitem>
221<indexterm zone="ch-system-e2fsprogs mklost-found"><primary sortas="b-mklost+found">mklost+found</primary></indexterm>
222<para>is used to create a
223<filename>lost+found</filename> directory on a second extended file system.
224It pre-allocates disk blocks to this directory to lighten the task of e2fsck.</para>
225</listitem>
226</varlistentry>
227
228<varlistentry>
229<term id="resize2fs"><command>resize2fs</command></term>
230<listitem>
231<indexterm zone="ch-system-e2fsprogs resize2fs"><primary sortas="b-resize2fs">resize2fs</primary></indexterm>
232<para>can be used to enlarge or shrink an ext2 file system.</para>
233</listitem>
234</varlistentry>
235
236<varlistentry>
237<term id="tune2fs"><command>tune2fs</command></term>
238<listitem>
239<indexterm zone="ch-system-e2fsprogs tune2fs"><primary sortas="b-tune2fs">tune2fs</primary></indexterm>
240<para>is used adjust tunable file system
241parameters on a second extended file system.</para>
242</listitem>
243</varlistentry>
244
245<varlistentry>
246<term id="uuidgen"><command>uuidgen</command></term>
247<listitem>
248<indexterm zone="ch-system-e2fsprogs uuidgen"><primary sortas="b-uuidgen">uuidgen</primary></indexterm>
249<para>creates new UUID. Each new UUID can reasonably be considered unique
250among all UUIDs created, on the local system and on other systems, in the
251past and in the future.</para>
252</listitem>
253</varlistentry>
254
255<varlistentry>
256<term id="libblkid"><command>libblkid</command></term>
257<listitem>
258<indexterm zone="ch-system-e2fsprogs libblkid"><primary sortas="c-libblkid">libblkid</primary></indexterm>
259<para>contains routines for device identification and token extraction.</para>
260</listitem>
261</varlistentry>
262
263<varlistentry>
264<term id="libcom_err"><command>libcom_err</command></term>
265<listitem>
266<indexterm zone="ch-system-e2fsprogs libcom_err"><primary sortas="c-libcom_err">libcom_err</primary></indexterm>
267<para>is the common error display routine.</para>
268</listitem>
269</varlistentry>
270
271<varlistentry>
272<term id="libe2p"><command>libe2p</command></term>
273<listitem>
274<indexterm zone="ch-system-e2fsprogs libe2p"><primary sortas="c-libe2p">libe2p</primary></indexterm>
275<para>is used by dumpe2fs, chattr, and lsattr.</para>
276</listitem>
277</varlistentry>
278
279<varlistentry>
280<term id="libext2fs"><command>libext2fs</command></term>
281<listitem>
282<indexterm zone="ch-system-e2fsprogs libext2fs"><primary sortas="c-libext2fs">libext2fs</primary></indexterm>
283<para>contains routines to enable user-level
284programs to manipulate an ext2 file system.</para>
285</listitem>
286</varlistentry>
287
288<varlistentry>
289<term id="libss"><command>libss</command></term>
290<listitem>
291<indexterm zone="ch-system-e2fsprogs libss"><primary sortas="c-libss">libss</primary></indexterm>
292<para>is used by debugfs.</para>
293</listitem>
294</varlistentry>
295
296<varlistentry>
297<term id="libuuid"><command>libuuid</command></term>
298<listitem>
299<indexterm zone="ch-system-e2fsprogs libuuid"><primary sortas="c-libuuid">libuuid</primary></indexterm>
300<para>contains routines for generating unique
301identifiers for objects that may be accessible beyond the local system.</para>
302</listitem>
303</varlistentry>
304</variablelist>
305
306</sect2>
307
308</sect1>
Note: See TracBrowser for help on using the repository browser.