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