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">
|
---|
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 | <para>The E2fsprogs package contains the utilities for handling the ext2
|
---|
13 | file system. It also supports the ext3 journaling file system.</para>
|
---|
14 |
|
---|
15 | <screen>&buildtime; 0.6 SBU
|
---|
16 | &diskspace; 48.4 MB</screen>
|
---|
17 |
|
---|
18 | <para>E2fsprogs installation depends on: Bash, Binutils, Coreutils,
|
---|
19 | Diffutils, Gawk, GCC, Gettext, Glibc, Grep, Make, Sed, Texinfo.</para>
|
---|
20 |
|
---|
21 |
|
---|
22 |
|
---|
23 | <sect2>
|
---|
24 | <title>Installation of E2fsprogs</title>
|
---|
25 |
|
---|
26 | <para>It is recommended to build E2fsprogs outside of the
|
---|
27 | source tree:</para>
|
---|
28 |
|
---|
29 | <screen><userinput>mkdir ../e2fsprogs-build
|
---|
30 | cd ../e2fsprogs-build</userinput></screen>
|
---|
31 |
|
---|
32 | <para>Prepare E2fsprogs for compilation:</para>
|
---|
33 |
|
---|
34 | <screen><userinput>../e2fsprogs-&e2fsprogs-version;/configure --prefix=/usr --with-root-prefix="" \
|
---|
35 | --enable-elf-shlibs</userinput></screen>
|
---|
36 |
|
---|
37 | <para>The meaning of the configure options:</para>
|
---|
38 |
|
---|
39 | <itemizedlist>
|
---|
40 | <listitem><para><userinput>--with-root-prefix=""</userinput>: Certain
|
---|
41 | programs (such as the e2fsck program) are considered essential programs.
|
---|
42 | When, for example, <filename class="directory">/usr</filename> isn't
|
---|
43 | mounted, these essential programs have to be available. They belong in
|
---|
44 | directories like <filename class="directory">/lib</filename> and
|
---|
45 | <filename class="directory">/sbin</filename>. If this option isn't passed
|
---|
46 | to E2fsprogs's configure, the programs are placed in the
|
---|
47 | <filename class="directory">/usr</filename> directory, which is not what we
|
---|
48 | want.</para></listitem>
|
---|
49 |
|
---|
50 | <listitem><para><userinput>--enable-elf-shlibs</userinput>: This creates
|
---|
51 | the 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>If you to test the results, first make sure an mtab file
|
---|
59 | exists with <userinput>touch /etc/mtab</userinput> to prevent some sixty tests
|
---|
60 | from failing, and (if it doesn't already exist) fake the presence of an old
|
---|
61 | pager with <userinput>ln -s /tools/bin/cat /bin/more</userinput> to prevent one
|
---|
62 | test from failing, then issue: <userinput>make check</userinput>.</para>
|
---|
63 |
|
---|
64 | <para>Install most of the package:</para>
|
---|
65 |
|
---|
66 | <screen><userinput>make install</userinput></screen>
|
---|
67 |
|
---|
68 | <para>Also install also the shared libraries:</para>
|
---|
69 |
|
---|
70 | <screen><userinput>make install-libs</userinput></screen>
|
---|
71 |
|
---|
72 | </sect2>
|
---|
73 |
|
---|
74 |
|
---|
75 |
|
---|
76 | <sect2 id="contents-e2fsprogs"><title>Contents of E2fsprogs</title>
|
---|
77 |
|
---|
78 | <para><emphasis>Installed programs</emphasis>: badblocks, blkid, chattr,
|
---|
79 | compile_et, debugfs, dumpe2fs, e2fsck, e2image, e2label, findfs, fsck,
|
---|
80 | fsck.ext2, fsck.ext3, logsave, lsattr, mk_cmds, mke2fs, mkfs.ext2, mkfs.ext3,
|
---|
81 | mklost+found, resize2fs, tune2fs and uuidgen.</para>
|
---|
82 |
|
---|
83 | <para><emphasis>Installed libraries</emphasis>: libblkid.[a,so],
|
---|
84 | libcom_err.[a,so], libe2p.[a,so], libext2fs.[a,so], libss.[a,so] and
|
---|
85 | libuuid.[a,so]</para>
|
---|
86 |
|
---|
87 | </sect2>
|
---|
88 |
|
---|
89 |
|
---|
90 | <sect2><title>Short descriptions</title>
|
---|
91 |
|
---|
92 | <indexterm zone="ch-system-e2fsprogs badblocks"><primary sortas="b-badblocks">badblocks</primary></indexterm>
|
---|
93 | <para id="badblocks"><command>badblocks</command> searches a device (usually a disk
|
---|
94 | partition) for bad blocks.</para>
|
---|
95 |
|
---|
96 | <indexterm zone="ch-system-e2fsprogs blkid"><primary sortas="b-blkid">blkid</primary></indexterm>
|
---|
97 | <para id="blkid"><command>blkid</command> is a command line utility to locate and
|
---|
98 | print block device attributes.</para>
|
---|
99 |
|
---|
100 | <indexterm zone="ch-system-e2fsprogs chattr"><primary sortas="b-chattr">chattr</primary></indexterm>
|
---|
101 | <para id="chattr"><command>chattr</command> changes the attributes of files on a
|
---|
102 | second extended (ext2) file system, and also ext3 file systems, the journaling version of ext2 file systems.</para>
|
---|
103 |
|
---|
104 | <indexterm zone="ch-system-e2fsprogs compile_et"><primary sortas="b-compile_et">compile_et</primary></indexterm>
|
---|
105 | <para id="compile_et"><command>compile_et</command> is an error table compiler. It
|
---|
106 | converts a table of error-code names and messages into a C source file
|
---|
107 | suitable for use with the com_err library.</para>
|
---|
108 |
|
---|
109 | <indexterm zone="ch-system-e2fsprogs debugfs"><primary sortas="b-debugfs">debugfs</primary></indexterm>
|
---|
110 | <para id="debugfs"><command>debugfs</command> is a file system debugger. It can be
|
---|
111 | used to examine and change the state of an ext2 file system.</para>
|
---|
112 |
|
---|
113 | <indexterm zone="ch-system-e2fsprogs dumpe2fs"><primary sortas="b-dumpe2fs">dumpe2fs</primary></indexterm>
|
---|
114 | <para id="dumpe2fs"><command>dumpe2fs</command> prints the super block and blocks group
|
---|
115 | information for the file system present on a given device.</para>
|
---|
116 |
|
---|
117 | <indexterm zone="ch-system-e2fsprogs e2fsck"><primary sortas="b-e2fsck">e2fsck</primary></indexterm>
|
---|
118 | <para id="e2fsck"><command>e2fsck</command> is used to check, and optionally repair,
|
---|
119 | second extended (ext2) file systems, and also ext3 file systems.</para>
|
---|
120 |
|
---|
121 | <indexterm zone="ch-system-e2fsprogs e2image"><primary sortas="b-e2image">e2image</primary></indexterm>
|
---|
122 | <para id="e2image"><command>e2image</command> is used to save critical ext2 file system
|
---|
123 | data to a file.</para>
|
---|
124 |
|
---|
125 | <indexterm zone="ch-system-e2fsprogs e2label"><primary sortas="b-e2label">e2label</primary></indexterm>
|
---|
126 | <para id="e2label"><command>e2label</command> will display or change the file system
|
---|
127 | label on the ext2 file system present on a given device.</para>
|
---|
128 |
|
---|
129 | <indexterm zone="ch-system-e2fsprogs findfs"><primary sortas="b-findfs">findfs</primary></indexterm>
|
---|
130 | <para id="findfs"><command>findfs</command> finds a file system by label or UUID (Universally Unique Identifier).</para>
|
---|
131 |
|
---|
132 | <indexterm zone="ch-system-e2fsprogs fsck"><primary sortas="b-fsck">fsck</primary></indexterm>
|
---|
133 | <para id="fsck"><command>fsck</command> is used to check, and optionally repair,
|
---|
134 | file systems. By default it checks the file systems listed in
|
---|
135 | <filename>/etc/fstab</filename></para>
|
---|
136 |
|
---|
137 | <indexterm zone="ch-system-e2fsprogs logsave"><primary sortas="b-logsave">logsave</primary></indexterm>
|
---|
138 | <para id="logsave"><command>logsave</command> saves the output of a command in a log file.</para>
|
---|
139 |
|
---|
140 | <indexterm zone="ch-system-e2fsprogs lsattr"><primary sortas="b-lsattr">lsattr</primary></indexterm>
|
---|
141 | <para id="lsattr"><command>lsattr</command> lists the attributes of files on a second
|
---|
142 | extended file system.</para>
|
---|
143 |
|
---|
144 | <indexterm zone="ch-system-e2fsprogs mk_cmds"><primary sortas="b-mk_cmds">mk_cmds</primary></indexterm>
|
---|
145 | <para id="mk_cmds"><command>mk_cmds</command> converts a table of command names
|
---|
146 | and help messages into a C source file suitable for use with the
|
---|
147 | <filename>libss</filename> subsystem library.</para>
|
---|
148 |
|
---|
149 | <indexterm zone="ch-system-e2fsprogs mke2fs"><primary sortas="b-mke2fs">mke2fs</primary></indexterm>
|
---|
150 | <para id="mke2fs"><command>mke2fs</command> is used to create a second extended
|
---|
151 | file system on the given device.</para>
|
---|
152 |
|
---|
153 | <indexterm zone="ch-system-e2fsprogs mklost-found"><primary sortas="b-mklost+found">mklost+found</primary></indexterm>
|
---|
154 | <para id="mklost-found"><command>mklost+found</command> is used to create a
|
---|
155 | <filename>lost+found</filename> directory on a second extended file system.
|
---|
156 | It pre-allocates disk blocks to this directory to lighten the task of e2fsck.</para>
|
---|
157 |
|
---|
158 | <indexterm zone="ch-system-e2fsprogs resize2fs"><primary sortas="b-resize2fs">resize2fs</primary></indexterm>
|
---|
159 | <para id="resize2fs"><command>resize2fs</command> can be used to enlarge or shrink an
|
---|
160 | ext2 file system.</para>
|
---|
161 |
|
---|
162 | <indexterm zone="ch-system-e2fsprogs tune2fs"><primary sortas="b-tune2fs">tune2fs</primary></indexterm>
|
---|
163 | <para id="tune2fs"><command>tune2fs</command> is used adjust tunable file system
|
---|
164 | parameters on a second extended file system.</para>
|
---|
165 |
|
---|
166 | <indexterm zone="ch-system-e2fsprogs uuidgen"><primary sortas="b-uuidgen">uuidgen</primary></indexterm>
|
---|
167 | <para id="uuidgen"><command>uuidgen</command> creates new
|
---|
168 | UUID. Each new UUID can reasonably be considered unique
|
---|
169 | among all UUIDs created, on the local system and on other systems, in the
|
---|
170 | past and in the future.</para>
|
---|
171 |
|
---|
172 | <indexterm zone="ch-system-e2fsprogs libblkid"><primary sortas="c-libblkid">libblkid</primary></indexterm>
|
---|
173 | <para id="libblkid"><command>libblkid</command> contains routines for device
|
---|
174 | identification and token extraction.</para>
|
---|
175 |
|
---|
176 | <indexterm zone="ch-system-e2fsprogs libcom_err"><primary sortas="c-libcom_err">libcom_err</primary></indexterm>
|
---|
177 | <para id="libcom_err"><command>libcom_err</command> is the common error display routine.</para>
|
---|
178 |
|
---|
179 | <indexterm zone="ch-system-e2fsprogs libe2p"><primary sortas="c-libe2p">libe2p</primary></indexterm>
|
---|
180 | <para id="libe2p"><command>libe2p</command> is used by dumpe2fs, chattr, and lsattr.</para>
|
---|
181 |
|
---|
182 | <indexterm zone="ch-system-e2fsprogs libext2fs"><primary sortas="c-libext2fs">libext2fs</primary></indexterm>
|
---|
183 | <para id="libext2fs"><command>libext2fs</command> contains routines to enable user-level
|
---|
184 | programs to manipulate an ext2 file system.</para>
|
---|
185 |
|
---|
186 | <indexterm zone="ch-system-e2fsprogs libss"><primary sortas="c-libss">libss</primary></indexterm>
|
---|
187 | <para id="libss"><command>libss</command> is used by debugfs.</para>
|
---|
188 |
|
---|
189 | <indexterm zone="ch-system-e2fsprogs libuuid"><primary sortas="c-libuuid">libuuid</primary></indexterm>
|
---|
190 | <para id="libuuid"><command>libuuid</command> contains routines for generating unique
|
---|
191 | identifiers for objects that may be accessible beyond the local system.</para>
|
---|
192 |
|
---|
193 | </sect2>
|
---|
194 |
|
---|
195 |
|
---|
196 |
|
---|
197 | </sect1>
|
---|