e2fsprogs.xml 17 KB

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