e2fsprogs.xml 12 KB

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