e2fsprogs.xml 17 KB

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