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