e2fsprogs.xml 14 KB

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