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
|
---|
14 | file 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>4.9 MB</seg></seglistitem>
|
---|
20 | </segmentedlist>
|
---|
21 |
|
---|
22 | <segmentedlist>
|
---|
23 | <segtitle>E2fsprogs installation depends on</segtitle>
|
---|
24 | <seglistitem><seg>Bash, Binutils, Coreutils,
|
---|
25 | Diffutils, 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>It is recommended to build E2fsprogs in a subdirectory of the source tree:
|
---|
33 | </para>
|
---|
34 |
|
---|
35 | <screen><userinput>mkdir build
|
---|
36 | cd build</userinput></screen>
|
---|
37 |
|
---|
38 | <para>Prepare E2fsprogs for compilation:</para>
|
---|
39 |
|
---|
40 | <screen><userinput>../configure --prefix=/usr --with-root-prefix="" \
|
---|
41 | --enable-elf-shlibs --disable-evms</userinput></screen>
|
---|
42 |
|
---|
43 | <para>The meaning of the configure options:</para>
|
---|
44 |
|
---|
45 | <variablelist>
|
---|
46 | <varlistentry>
|
---|
47 | <term><parameter>--with-root-prefix=""</parameter></term>
|
---|
48 | <listitem><para>Certain programs (such as the <command>e2fsck</command>
|
---|
49 | program) are considered essential programs.
|
---|
50 | When, for example, <filename class="directory">/usr</filename> isn't
|
---|
51 | mounted, these essential programs have to be available. They belong in
|
---|
52 | directories like <filename class="directory">/lib</filename> and
|
---|
53 | <filename class="directory">/sbin</filename>. If this option isn't passed
|
---|
54 | to E2fsprogs's configure, the programs are placed in the
|
---|
55 | <filename class="directory">/usr</filename> directory, which is not what we
|
---|
56 | want.</para></listitem>
|
---|
57 | </varlistentry>
|
---|
58 |
|
---|
59 | <varlistentry>
|
---|
60 | <term><parameter>--enable-elf-shlibs</parameter></term>
|
---|
61 | <listitem><para>This creates
|
---|
62 | the shared libraries which some programs in this package use.</para></listitem>
|
---|
63 | </varlistentry>
|
---|
64 |
|
---|
65 | <varlistentry>
|
---|
66 | <term><parameter>--disable-evms</parameter></term>
|
---|
67 | <listitem><para>This disables the building of the Enterprise Volume Management
|
---|
68 | System (EVMS) plugin. This plugin is not up-to-date with the latest EVMS
|
---|
69 | internal interfaces and EVMS is not installed as part of a base LFS system, so
|
---|
70 | the plugin is not required. See the
|
---|
71 | <ulink url="http://evms.sourceforge.net/">EVMS homepage</ulink> for more
|
---|
72 | information regarding EVMS itself.</para></listitem>
|
---|
73 | </varlistentry>
|
---|
74 | </variablelist>
|
---|
75 |
|
---|
76 | <para>Compile the package:</para>
|
---|
77 |
|
---|
78 | <screen><userinput>make</userinput></screen>
|
---|
79 |
|
---|
80 | <para>To test the results, issue:
|
---|
81 | <userinput>make check</userinput>.</para>
|
---|
82 |
|
---|
83 | <para>Install most of the package:</para>
|
---|
84 |
|
---|
85 | <screen><userinput>make install</userinput></screen>
|
---|
86 |
|
---|
87 | <para>Also install the shared libraries:</para>
|
---|
88 |
|
---|
89 | <screen><userinput>make install-libs</userinput></screen>
|
---|
90 |
|
---|
91 | </sect2>
|
---|
92 |
|
---|
93 |
|
---|
94 |
|
---|
95 | <sect2 id="contents-e2fsprogs" role="content"><title>Contents of E2fsprogs</title>
|
---|
96 |
|
---|
97 | <segmentedlist>
|
---|
98 | <segtitle>Installed programs</segtitle>
|
---|
99 | <segtitle>Installed libraries</segtitle>
|
---|
100 | <seglistitem><seg>badblocks, blkid, chattr,
|
---|
101 | compile_et, debugfs, dumpe2fs, e2fsck, e2image, e2label, findfs, fsck,
|
---|
102 | fsck.ext2, fsck.ext3, logsave, lsattr, mk_cmds, mke2fs, mkfs.ext2, mkfs.ext3,
|
---|
103 | mklost+found, resize2fs, tune2fs and uuidgen.</seg>
|
---|
104 | <seg>libblkid.[a,so], libcom_err.[a,so], libe2p.[a,so], libext2fs.[a,so], libss.[a,so] and
|
---|
105 | libuuid.[a,so]</seg></seglistitem>
|
---|
106 | </segmentedlist>
|
---|
107 |
|
---|
108 | <variablelist><title>Short descriptions</title>
|
---|
109 |
|
---|
110 | <varlistentry id="badblocks">
|
---|
111 | <term><command>badblocks</command></term>
|
---|
112 | <listitem>
|
---|
113 | <indexterm zone="ch-system-e2fsprogs badblocks"><primary sortas="b-badblocks">badblocks</primary></indexterm>
|
---|
114 | <para>searches a device (usually a disk partition) for bad blocks.</para>
|
---|
115 | </listitem>
|
---|
116 | </varlistentry>
|
---|
117 |
|
---|
118 | <varlistentry id="blkid">
|
---|
119 | <term><command>blkid</command></term>
|
---|
120 | <listitem>
|
---|
121 | <indexterm zone="ch-system-e2fsprogs blkid"><primary sortas="b-blkid">blkid</primary></indexterm>
|
---|
122 | <para>is a command line utility to locate and print block device attributes.</para>
|
---|
123 | </listitem>
|
---|
124 | </varlistentry>
|
---|
125 |
|
---|
126 | <varlistentry id="chattr">
|
---|
127 | <term><command>chattr</command></term>
|
---|
128 | <listitem>
|
---|
129 | <indexterm zone="ch-system-e2fsprogs chattr"><primary sortas="b-chattr">chattr</primary></indexterm>
|
---|
130 | <para>changes the attributes of files on a second extended (ext2) file system, and
|
---|
131 | also ext3 file systems, the journaling version of ext2 file systems.</para>
|
---|
132 | </listitem>
|
---|
133 | </varlistentry>
|
---|
134 |
|
---|
135 | <varlistentry id="compile_et">
|
---|
136 | <term><command>compile_et</command></term>
|
---|
137 | <listitem>
|
---|
138 | <indexterm zone="ch-system-e2fsprogs compile_et"><primary sortas="b-compile_et">compile_et</primary></indexterm>
|
---|
139 | <para>is an error table compiler. It
|
---|
140 | converts a table of error-code names and messages into a C source file
|
---|
141 | suitable for use with the <filename class="libraryfile">com_err</filename> library.</para>
|
---|
142 | </listitem>
|
---|
143 | </varlistentry>
|
---|
144 |
|
---|
145 | <varlistentry id="debugfs">
|
---|
146 | <term><command>debugfs</command></term>
|
---|
147 | <listitem>
|
---|
148 | <indexterm zone="ch-system-e2fsprogs debugfs"><primary sortas="b-debugfs">debugfs</primary></indexterm>
|
---|
149 | <para>is a file system debugger. It can be
|
---|
150 | used to examine and change the state of an ext2 file system.</para>
|
---|
151 | </listitem>
|
---|
152 | </varlistentry>
|
---|
153 |
|
---|
154 | <varlistentry id="dumpe2fs">
|
---|
155 | <term><command>dumpe2fs</command></term>
|
---|
156 | <listitem>
|
---|
157 | <indexterm zone="ch-system-e2fsprogs dumpe2fs"><primary sortas="b-dumpe2fs">dumpe2fs</primary></indexterm>
|
---|
158 | <para>prints the super block and blocks group
|
---|
159 | information for the file system present on a given device.</para>
|
---|
160 | </listitem>
|
---|
161 | </varlistentry>
|
---|
162 |
|
---|
163 | <varlistentry id="e2fsck">
|
---|
164 | <term><command>e2fsck</command></term>
|
---|
165 | <listitem>
|
---|
166 | <indexterm zone="ch-system-e2fsprogs e2fsck"><primary sortas="b-e2fsck">e2fsck</primary></indexterm>
|
---|
167 | <para>is used to check, and optionally repair,
|
---|
168 | second extended (ext2) file systems, and also ext3 file systems.</para>
|
---|
169 | </listitem>
|
---|
170 | </varlistentry>
|
---|
171 |
|
---|
172 | <varlistentry id="e2image">
|
---|
173 | <term><command>e2image</command></term>
|
---|
174 | <listitem>
|
---|
175 | <indexterm zone="ch-system-e2fsprogs e2image"><primary sortas="b-e2image">e2image</primary></indexterm>
|
---|
176 | <para>is used to save critical ext2 file system data to a file.</para>
|
---|
177 | </listitem>
|
---|
178 | </varlistentry>
|
---|
179 |
|
---|
180 | <varlistentry id="e2label">
|
---|
181 | <term><command>e2label</command></term>
|
---|
182 | <listitem>
|
---|
183 | <indexterm zone="ch-system-e2fsprogs e2label"><primary sortas="b-e2label">e2label</primary></indexterm>
|
---|
184 | <para>will display or change the file system
|
---|
185 | label on the ext2 file system present on a given device.</para>
|
---|
186 | </listitem>
|
---|
187 | </varlistentry>
|
---|
188 |
|
---|
189 | <varlistentry id="findfs">
|
---|
190 | <term><command>findfs</command></term>
|
---|
191 | <listitem>
|
---|
192 | <indexterm zone="ch-system-e2fsprogs findfs"><primary sortas="b-findfs">findfs</primary></indexterm>
|
---|
193 | <para>finds a file system by label or UUID (Universally Unique Identifier).</para>
|
---|
194 | </listitem>
|
---|
195 | </varlistentry>
|
---|
196 |
|
---|
197 | <varlistentry id="fsck">
|
---|
198 | <term><command>fsck</command></term>
|
---|
199 | <listitem>
|
---|
200 | <indexterm zone="ch-system-e2fsprogs fsck"><primary sortas="b-fsck">fsck</primary></indexterm>
|
---|
201 | <para>is used to check, and optionally repair, file systems. By default it checks the
|
---|
202 | file systems listed in <filename>/etc/fstab</filename></para>
|
---|
203 | </listitem>
|
---|
204 | </varlistentry>
|
---|
205 |
|
---|
206 | <varlistentry id="logsave">
|
---|
207 | <term><command>logsave</command></term>
|
---|
208 | <listitem>
|
---|
209 | <indexterm zone="ch-system-e2fsprogs logsave"><primary sortas="b-logsave">logsave</primary></indexterm>
|
---|
210 | <para>saves the output of a command in a log file.</para>
|
---|
211 | </listitem>
|
---|
212 | </varlistentry>
|
---|
213 |
|
---|
214 | <varlistentry id="lsattr">
|
---|
215 | <term><command>lsattr</command></term>
|
---|
216 | <listitem>
|
---|
217 | <indexterm zone="ch-system-e2fsprogs lsattr"><primary sortas="b-lsattr">lsattr</primary></indexterm>
|
---|
218 | <para>lists the attributes of files on a second extended file system.</para>
|
---|
219 | </listitem>
|
---|
220 | </varlistentry>
|
---|
221 |
|
---|
222 | <varlistentry id="mk_cmds">
|
---|
223 | <term><command>mk_cmds</command></term>
|
---|
224 | <listitem>
|
---|
225 | <indexterm zone="ch-system-e2fsprogs mk_cmds"><primary sortas="b-mk_cmds">mk_cmds</primary></indexterm>
|
---|
226 | <para>converts a table of command names
|
---|
227 | and help messages into a C source file suitable for use with the
|
---|
228 | <filename class="libraryfile">libss</filename> subsystem library.</para>
|
---|
229 | </listitem>
|
---|
230 | </varlistentry>
|
---|
231 |
|
---|
232 | <varlistentry id="mke2fs">
|
---|
233 | <term><command>mke2fs</command></term>
|
---|
234 | <listitem>
|
---|
235 | <indexterm zone="ch-system-e2fsprogs mke2fs"><primary sortas="b-mke2fs">mke2fs</primary></indexterm>
|
---|
236 | <para>is used to create a second extended file system on the given device.</para>
|
---|
237 | </listitem>
|
---|
238 | </varlistentry>
|
---|
239 |
|
---|
240 | <varlistentry id="mklost-found">
|
---|
241 | <term><command>mklost+found</command></term>
|
---|
242 | <listitem>
|
---|
243 | <indexterm zone="ch-system-e2fsprogs mklost-found"><primary sortas="b-mklost+found">mklost+found</primary></indexterm>
|
---|
244 | <para>is used to create a
|
---|
245 | <filename class="directory">lost+found</filename> directory on a second extended file system.
|
---|
246 | It pre-allocates disk blocks to this directory to lighten the task of e2fsck.</para>
|
---|
247 | </listitem>
|
---|
248 | </varlistentry>
|
---|
249 |
|
---|
250 | <varlistentry id="resize2fs">
|
---|
251 | <term><command>resize2fs</command></term>
|
---|
252 | <listitem>
|
---|
253 | <indexterm zone="ch-system-e2fsprogs resize2fs"><primary sortas="b-resize2fs">resize2fs</primary></indexterm>
|
---|
254 | <para>can be used to enlarge or shrink an ext2 file system.</para>
|
---|
255 | </listitem>
|
---|
256 | </varlistentry>
|
---|
257 |
|
---|
258 | <varlistentry id="tune2fs">
|
---|
259 | <term><command>tune2fs</command></term>
|
---|
260 | <listitem>
|
---|
261 | <indexterm zone="ch-system-e2fsprogs tune2fs"><primary sortas="b-tune2fs">tune2fs</primary></indexterm>
|
---|
262 | <para>is used adjust tunable file system
|
---|
263 | parameters on a second extended file system.</para>
|
---|
264 | </listitem>
|
---|
265 | </varlistentry>
|
---|
266 |
|
---|
267 | <varlistentry id="uuidgen">
|
---|
268 | <term><command>uuidgen</command></term>
|
---|
269 | <listitem>
|
---|
270 | <indexterm zone="ch-system-e2fsprogs uuidgen"><primary sortas="b-uuidgen">uuidgen</primary></indexterm>
|
---|
271 | <para>creates new UUID. Each new UUID can reasonably be considered unique
|
---|
272 | among all UUIDs created, on the local system and on other systems, in the
|
---|
273 | past and in the future.</para>
|
---|
274 | </listitem>
|
---|
275 | </varlistentry>
|
---|
276 |
|
---|
277 | <varlistentry id="libblkid">
|
---|
278 | <term><filename class="libraryfile">libblkid</filename></term>
|
---|
279 | <listitem>
|
---|
280 | <indexterm zone="ch-system-e2fsprogs libblkid"><primary sortas="c-libblkid">libblkid</primary></indexterm>
|
---|
281 | <para>contains routines for device identification and token extraction.</para>
|
---|
282 | </listitem>
|
---|
283 | </varlistentry>
|
---|
284 |
|
---|
285 | <varlistentry id="libcom_err">
|
---|
286 | <term><filename class="libraryfile">libcom_err</filename></term>
|
---|
287 | <listitem>
|
---|
288 | <indexterm zone="ch-system-e2fsprogs libcom_err"><primary sortas="c-libcom_err">libcom_err</primary></indexterm>
|
---|
289 | <para>is the common error display routine.</para>
|
---|
290 | </listitem>
|
---|
291 | </varlistentry>
|
---|
292 |
|
---|
293 | <varlistentry id="libe2p">
|
---|
294 | <term><filename class="libraryfile">libe2p</filename></term>
|
---|
295 | <listitem>
|
---|
296 | <indexterm zone="ch-system-e2fsprogs libe2p"><primary sortas="c-libe2p">libe2p</primary></indexterm>
|
---|
297 | <para>is used by dumpe2fs, chattr, and lsattr.</para>
|
---|
298 | </listitem>
|
---|
299 | </varlistentry>
|
---|
300 |
|
---|
301 | <varlistentry id="libext2fs">
|
---|
302 | <term><filename class="libraryfile">libext2fs</filename></term>
|
---|
303 | <listitem>
|
---|
304 | <indexterm zone="ch-system-e2fsprogs libext2fs"><primary sortas="c-libext2fs">libext2fs</primary></indexterm>
|
---|
305 | <para>contains routines to enable user-level
|
---|
306 | programs to manipulate an ext2 file system.</para>
|
---|
307 | </listitem>
|
---|
308 | </varlistentry>
|
---|
309 |
|
---|
310 | <varlistentry id="libss">
|
---|
311 | <term><filename class="libraryfile">libss</filename></term>
|
---|
312 | <listitem>
|
---|
313 | <indexterm zone="ch-system-e2fsprogs libss"><primary sortas="c-libss">libss</primary></indexterm>
|
---|
314 | <para>is used by <command>debugfs</command>.</para>
|
---|
315 | </listitem>
|
---|
316 | </varlistentry>
|
---|
317 |
|
---|
318 | <varlistentry id="libuuid">
|
---|
319 | <term><filename class="libraryfile">libuuid</filename></term>
|
---|
320 | <listitem>
|
---|
321 | <indexterm zone="ch-system-e2fsprogs libuuid"><primary sortas="c-libuuid">libuuid</primary></indexterm>
|
---|
322 | <para>contains routines for generating unique
|
---|
323 | identifiers for objects that may be accessible beyond the local system.</para>
|
---|
324 | </listitem>
|
---|
325 | </varlistentry>
|
---|
326 | </variablelist>
|
---|
327 |
|
---|
328 | </sect2>
|
---|
329 |
|
---|
330 | </sect1>
|
---|