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