e2fsprogs.xml 14 KB

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