e2fsprogs.xml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516
  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. <sect1info condition="script">
  10. <productname>e2fsprogs</productname>
  11. <productnumber>&e2fsprogs-version;</productnumber>
  12. <address>&e2fsprogs-url;</address>
  13. </sect1info>
  14. <title>E2fsprogs-&e2fsprogs-version;</title>
  15. <indexterm zone="ch-system-e2fsprogs">
  16. <primary sortas="a-E2fsprogs">E2fsprogs</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The E2fsprogs package contains the utilities for handling the
  21. <systemitem class="filesystem">ext2</systemitem> file system. It also
  22. supports the <systemitem class="filesystem">ext3</systemitem> and
  23. <systemitem class="filesystem">ext4</systemitem> journaling
  24. file systems.</para>
  25. <segmentedlist>
  26. <segtitle>&buildtime;</segtitle>
  27. <segtitle>&diskspace;</segtitle>
  28. <seglistitem>
  29. <seg>&e2fsprogs-ch6-sbu;</seg>
  30. <seg>&e2fsprogs-ch6-du;</seg>
  31. </seglistitem>
  32. </segmentedlist>
  33. </sect2>
  34. <sect2 role="installation">
  35. <title>Installation of E2fsprogs</title>
  36. <para>Make sure the version date is in a format compatible with
  37. <command>configure</command>:</para>
  38. <screen><userinput remap="pre">sed -i -e "s/July/Jul/" version.h</userinput></screen>
  39. <para>The E2fsprogs documentation recommends that the package be built in
  40. a subdirectory of the source tree: </para>
  41. <screen><userinput remap="pre">mkdir -v build
  42. cd build</userinput></screen>
  43. <para>Prepare E2fsprogs for compilation:</para>
  44. <screen><userinput remap="configure">../configure --prefix=/usr --with-root-prefix="" \
  45. --enable-elf-shlibs --disable-libblkid --disable-libuuid \
  46. --disable-uuidd --disable-fsck</userinput></screen>
  47. <variablelist>
  48. <title>The meaning of the configure options:</title>
  49. <varlistentry>
  50. <term><parameter>--with-root-prefix=""</parameter></term>
  51. <listitem>
  52. <para>Certain programs (such as the <command>e2fsck</command>
  53. program) are considered essential programs. When, for example,
  54. <filename class="directory">/usr</filename> is not mounted, these
  55. programs still need to be available. They belong in directories
  56. like <filename class="directory">/lib</filename> and <filename
  57. class="directory">/sbin</filename>. If this option is not passed
  58. to E2fsprogs' configure, the programs are installed into the
  59. <filename class="directory">/usr</filename> directory.</para>
  60. </listitem>
  61. </varlistentry>
  62. <varlistentry>
  63. <term><parameter>--enable-elf-shlibs</parameter></term>
  64. <listitem>
  65. <para>This creates the shared libraries which some programs
  66. in this package use.</para>
  67. </listitem>
  68. </varlistentry>
  69. <varlistentry>
  70. <term><parameter>--disable-*</parameter></term>
  71. <listitem>
  72. <para>This prevents E2fsprogs from building and installing the
  73. <systemitem class="library">libuuid</systemitem> and
  74. <systemitem class="library">libblkid</systemitem> libraries, the
  75. <systemitem class="daemon">uuidd</systemitem> daemon, and the
  76. <command>fsck</command> wrapper, as Util-Linux-NG installed all of
  77. them earlier.</para>
  78. </listitem>
  79. </varlistentry>
  80. </variablelist>
  81. <para>Compile the package:</para>
  82. <screen><userinput remap="make">make</userinput></screen>
  83. <para>To test the results, issue:</para>
  84. <screen><userinput remap="test">make check</userinput></screen>
  85. <para>One of the E2fsprogs tests will attempt to allocate 256 MB
  86. of memory. If you do not have significantly more RAM than this, it
  87. is recommended to enable sufficient swap space for the test. See
  88. <xref linkend="space-creatingfilesystem"/> and
  89. <xref linkend="space-mounting"/> for details on creating and enabling
  90. swap space.</para>
  91. <para>Install the binaries, documentation, and shared libraries:</para>
  92. <screen><userinput remap="install">make install</userinput></screen>
  93. <para>Install the static libraries and headers:</para>
  94. <screen><userinput remap="install">make install-libs</userinput></screen>
  95. <para>Make the installed static libraries writable so debugging symbols can
  96. be removed later:</para>
  97. <screen><userinput remap="install">chmod -v u+w /usr/lib/{libcom_err,libe2p,libext2fs,libss}.a</userinput></screen>
  98. <para>This package installs a gzipped
  99. <filename class="extension">.info</filename> file but doesn't update the
  100. system-wide <filename>dir</filename> file. Unzip this file and then update
  101. the system <filename>dir</filename> file using the following
  102. commands.</para>
  103. <screen><userinput remap="install">gunzip -v /usr/share/info/libext2fs.info.gz
  104. install-info --dir-file=/usr/share/info/dir \
  105. /usr/share/info/libext2fs.info</userinput></screen>
  106. <para>If desired, create and install some additional documentation by
  107. issuing the following commands:</para>
  108. <screen><userinput remap="install">makeinfo -o doc/com_err.info ../lib/et/com_err.texinfo
  109. install -v -m644 doc/com_err.info /usr/share/info
  110. install-info --dir-file=/usr/share/info/dir \
  111. /usr/share/info/com_err.info</userinput></screen>
  112. </sect2>
  113. <sect2 id="contents-e2fsprogs" role="content">
  114. <title>Contents of E2fsprogs</title>
  115. <segmentedlist>
  116. <segtitle>Installed programs</segtitle>
  117. <segtitle>Installed libraries</segtitle>
  118. <seglistitem>
  119. <seg>badblocks, chattr, compile_et, debugfs, dumpe2fs, e2fsck,
  120. e2image, e2initrd_helper, e2label, e2undo, filefrag, fsck.ext2,
  121. fsck.ext3, fsck.ext4, fsck.ext4dev, logsave, lsattr, mk_cmds, mke2fs,
  122. mkfs.ext2, mkfs.ext3, mkfs.ext4, mkfs.ext4dev, mklost+found,
  123. resize2fs, and tune2fs</seg>
  124. <seg>libcom_err.{a,so}, libe2p.{a,so}, libext2fs.{a,so} and
  125. libss.{a,so}</seg>
  126. </seglistitem>
  127. </segmentedlist>
  128. <variablelist>
  129. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  130. <?dbfo list-presentation="list"?>
  131. <?dbhtml list-presentation="table"?>
  132. <varlistentry id="badblocks">
  133. <term><command>badblocks</command></term>
  134. <listitem>
  135. <para>Searches a device (usually a disk partition) for bad
  136. blocks</para>
  137. <indexterm zone="ch-system-e2fsprogs badblocks">
  138. <primary sortas="b-badblocks">badblocks</primary>
  139. </indexterm>
  140. </listitem>
  141. </varlistentry>
  142. <varlistentry id="chattr">
  143. <term><command>chattr</command></term>
  144. <listitem>
  145. <para>Changes the attributes of files on an <systemitem
  146. class="filesystem">ext2</systemitem> file system; it also
  147. changes <systemitem class="filesystem">ext3</systemitem>
  148. file systems, the journaling version of <systemitem
  149. class="filesystem">ext2</systemitem> file systems</para>
  150. <indexterm zone="ch-system-e2fsprogs chattr">
  151. <primary sortas="b-chattr">chattr</primary>
  152. </indexterm>
  153. </listitem>
  154. </varlistentry>
  155. <varlistentry id="compile_et">
  156. <term><command>compile_et</command></term>
  157. <listitem>
  158. <para>An error table compiler; it converts a table of error-code
  159. names and messages into a C source file suitable for use with the
  160. <filename class="libraryfile">com_err</filename> library</para>
  161. <indexterm zone="ch-system-e2fsprogs compile_et">
  162. <primary sortas="b-compile_et">compile_et</primary>
  163. </indexterm>
  164. </listitem>
  165. </varlistentry>
  166. <varlistentry id="debugfs">
  167. <term><command>debugfs</command></term>
  168. <listitem>
  169. <para>A file system debugger; it can be used to examine and change
  170. the state of an <systemitem class="filesystem">ext2</systemitem>
  171. file system</para>
  172. <indexterm zone="ch-system-e2fsprogs debugfs">
  173. <primary sortas="b-debugfs">debugfs</primary>
  174. </indexterm>
  175. </listitem>
  176. </varlistentry>
  177. <varlistentry id="dumpe2fs">
  178. <term><command>dumpe2fs</command></term>
  179. <listitem>
  180. <para>Prints the super block and blocks group information for the
  181. file system present on a given device</para>
  182. <indexterm zone="ch-system-e2fsprogs dumpe2fs">
  183. <primary sortas="b-dumpe2fs">dumpe2fs</primary>
  184. </indexterm>
  185. </listitem>
  186. </varlistentry>
  187. <varlistentry id="e2fsck">
  188. <term><command>e2fsck</command></term>
  189. <listitem>
  190. <para>Is used to check, and optionally repair <systemitem
  191. class="filesystem">ext2</systemitem> file systems and <systemitem
  192. class="filesystem">ext3</systemitem> file systems</para>
  193. <indexterm zone="ch-system-e2fsprogs e2fsck">
  194. <primary sortas="b-e2fsck">e2fsck</primary>
  195. </indexterm>
  196. </listitem>
  197. </varlistentry>
  198. <varlistentry id="e2image">
  199. <term><command>e2image</command></term>
  200. <listitem>
  201. <para>Is used to save critical <systemitem
  202. class="filesystem">ext2</systemitem> file system data to a file</para>
  203. <indexterm zone="ch-system-e2fsprogs e2image">
  204. <primary sortas="b-e2image">e2image</primary>
  205. </indexterm>
  206. </listitem>
  207. </varlistentry>
  208. <varlistentry id="e2initrd_helper">
  209. <term><command>e2initrd_helper</command></term>
  210. <listitem>
  211. <para>Prints the FS type of a given filesystem, given either a
  212. device name or label</para>
  213. <indexterm zone="ch-system-e2fsprogs e2initrd_helper">
  214. <primary sortas="b-e2initrd_helper">e2initrd_helper</primary>
  215. </indexterm>
  216. </listitem>
  217. </varlistentry>
  218. <varlistentry id="e2label">
  219. <term><command>e2label</command></term>
  220. <listitem>
  221. <para>Displays or changes the file system label on the <systemitem
  222. class="filesystem">ext2</systemitem> file system present on a given
  223. device</para>
  224. <indexterm zone="ch-system-e2fsprogs e2label">
  225. <primary sortas="b-e2label">e2label</primary>
  226. </indexterm>
  227. </listitem>
  228. </varlistentry>
  229. <varlistentry id="e2undo">
  230. <term><command>e2undo</command></term>
  231. <listitem>
  232. <para>Replays the undo log undo_log for an ext2/ext3/ext4 filesystem
  233. found on a device. This can be used to undo a failed operation by an
  234. e2fsprogs program.</para>
  235. <indexterm zone="ch-system-e2fsprogs e2undo">
  236. <primary sortas="b-e2undo">e2undo</primary>
  237. </indexterm>
  238. </listitem>
  239. </varlistentry>
  240. <varlistentry id="filefrag">
  241. <term><command>filefrag</command></term>
  242. <listitem>
  243. <para>Reports on how badly fragmented a particular file might be</para>
  244. <indexterm zone="ch-system-e2fsprogs filefrag">
  245. <primary sortas="b-filefrag">filefrag</primary>
  246. </indexterm>
  247. </listitem>
  248. </varlistentry>
  249. <varlistentry id="fsck.ext2">
  250. <term><command>fsck.ext2</command></term>
  251. <listitem>
  252. <para>By default checks <systemitem class="filesystem">ext2</systemitem>
  253. file systems. This is a hard link to <command>fsck</command>.</para>
  254. <indexterm zone="ch-system-e2fsprogs fsck.ext2">
  255. <primary sortas="b-fsck.ext2">fsck.ext2</primary>
  256. </indexterm>
  257. </listitem>
  258. </varlistentry>
  259. <varlistentry id="fsck.ext3">
  260. <term><command>fsck.ext3</command></term>
  261. <listitem>
  262. <para>By default checks <systemitem class="filesystem">ext3</systemitem>
  263. file systems. This is a hard link to <command>fsck</command>.</para>
  264. <indexterm zone="ch-system-e2fsprogs fsck.ext3">
  265. <primary sortas="b-fsck.ext3">fsck.ext3</primary>
  266. </indexterm>
  267. </listitem>
  268. </varlistentry>
  269. <varlistentry id="fsck.ext4">
  270. <term><command>fsck.ext4</command></term>
  271. <listitem>
  272. <para>By default checks <systemitem class="filesystem">ext4</systemitem>
  273. file systems. This is a hard link to <command>fsck</command>.</para>
  274. <indexterm zone="ch-system-e2fsprogs fsck.ext4">
  275. <primary sortas="b-fsck.ext4">fsck.ext4</primary>
  276. </indexterm>
  277. </listitem>
  278. </varlistentry>
  279. <varlistentry id="fsck.ext4dev">
  280. <term><command>fsck.ext4dev</command></term>
  281. <listitem>
  282. <para>By default checks <systemitem class="filesystem">ext4</systemitem>
  283. development file systems. This is a hard link to
  284. <command>fsck</command>.</para>
  285. <indexterm zone="ch-system-e2fsprogs fsck.ext4dev">
  286. <primary sortas="b-fsck.ext4dev">fsck.ext4dev</primary>
  287. </indexterm>
  288. </listitem>
  289. </varlistentry>
  290. <varlistentry id="logsave">
  291. <term><command>logsave</command></term>
  292. <listitem>
  293. <para>Saves the output of a command in a log file</para>
  294. <indexterm zone="ch-system-e2fsprogs logsave">
  295. <primary sortas="b-logsave">logsave</primary>
  296. </indexterm>
  297. </listitem>
  298. </varlistentry>
  299. <varlistentry id="lsattr">
  300. <term><command>lsattr</command></term>
  301. <listitem>
  302. <para>Lists the attributes of files on a second extended file
  303. system</para>
  304. <indexterm zone="ch-system-e2fsprogs lsattr">
  305. <primary sortas="b-lsattr">lsattr</primary>
  306. </indexterm>
  307. </listitem>
  308. </varlistentry>
  309. <varlistentry id="mk_cmds">
  310. <term><command>mk_cmds</command></term>
  311. <listitem>
  312. <para>Converts a table of command names and help messages into a C
  313. source file suitable for use with the <filename
  314. class="libraryfile">libss</filename> subsystem library</para>
  315. <indexterm zone="ch-system-e2fsprogs mk_cmds">
  316. <primary sortas="b-mk_cmds">mk_cmds</primary>
  317. </indexterm>
  318. </listitem>
  319. </varlistentry>
  320. <varlistentry id="mke2fs">
  321. <term><command>mke2fs</command></term>
  322. <listitem>
  323. <para>Creates an <systemitem class="filesystem">ext2</systemitem>
  324. or <systemitem class="filesystem">ext3</systemitem> file system on
  325. the given device</para>
  326. <indexterm zone="ch-system-e2fsprogs mke2fs">
  327. <primary sortas="b-mke2fs">mke2fs</primary>
  328. </indexterm>
  329. </listitem>
  330. </varlistentry>
  331. <varlistentry id="mkfs.ext2">
  332. <term><command>mkfs.ext2</command></term>
  333. <listitem>
  334. <para>By default creates <systemitem class="filesystem">ext2</systemitem>
  335. file systems. This is a hard link to <command>mke2fs</command>.</para>
  336. <indexterm zone="ch-system-e2fsprogs mkfs.ext2">
  337. <primary sortas="b-mkfs.ext2">mkfs.ext2</primary>
  338. </indexterm>
  339. </listitem>
  340. </varlistentry>
  341. <varlistentry id="mkfs.ext3">
  342. <term><command>mkfs.ext3</command></term>
  343. <listitem>
  344. <para>By default creates <systemitem class="filesystem">ext3</systemitem>
  345. file systems. This is a hard link to <command>mke2fs</command>.</para>
  346. <indexterm zone="ch-system-e2fsprogs mkfs.ext3">
  347. <primary sortas="b-mkfs.ext3">mkfs.ext3</primary>
  348. </indexterm>
  349. </listitem>
  350. </varlistentry>
  351. <varlistentry id="mkfs.ext4">
  352. <term><command>mkfs.ext4</command></term>
  353. <listitem>
  354. <para>By default creates <systemitem class="filesystem">ext4</systemitem>
  355. file systems. This is a hard link to <command>mke2fs</command>.</para>
  356. <indexterm zone="ch-system-e2fsprogs mkfs.ext4">
  357. <primary sortas="b-mkfs.ext4">mkfs.ext4</primary>
  358. </indexterm>
  359. </listitem>
  360. </varlistentry>
  361. <varlistentry id="mkfs.ext4dev">
  362. <term><command>mkfs.ext4dev</command></term>
  363. <listitem>
  364. <para>By default creates <systemitem class="filesystem">ext4</systemitem>
  365. development file systems. This is a hard link to <command>mke2fs</command>.</para>
  366. <indexterm zone="ch-system-e2fsprogs mkfs.ext4dev">
  367. <primary sortas="b-mkfs.ext4dev">mkfs.ext4dev</primary>
  368. </indexterm>
  369. </listitem>
  370. </varlistentry>
  371. <varlistentry id="mklost-found">
  372. <term><command>mklost+found</command></term>
  373. <listitem>
  374. <para>Used to create a <filename class="directory">lost+found</filename>
  375. directory on an <systemitem class="filesystem">ext2</systemitem> file
  376. system; it pre-allocates disk blocks to this directory to lighten the
  377. task of <command>e2fsck</command></para>
  378. <indexterm zone="ch-system-e2fsprogs mklost-found">
  379. <primary sortas="b-mklost+found">mklost+found</primary>
  380. </indexterm>
  381. </listitem>
  382. </varlistentry>
  383. <varlistentry id="resize2fs">
  384. <term><command>resize2fs</command></term>
  385. <listitem>
  386. <para>Can be used to enlarge or shrink an <systemitem
  387. class="filesystem">ext2</systemitem> file system</para>
  388. <indexterm zone="ch-system-e2fsprogs resize2fs">
  389. <primary sortas="b-resize2fs">resize2fs</primary>
  390. </indexterm>
  391. </listitem>
  392. </varlistentry>
  393. <varlistentry id="tune2fs">
  394. <term><command>tune2fs</command></term>
  395. <listitem>
  396. <para>Adjusts tunable file system parameters on an <systemitem
  397. class="filesystem">ext2</systemitem> file system</para>
  398. <indexterm zone="ch-system-e2fsprogs tune2fs">
  399. <primary sortas="b-tune2fs">tune2fs</primary>
  400. </indexterm>
  401. </listitem>
  402. </varlistentry>
  403. <varlistentry id="libcom_err">
  404. <term><filename class="libraryfile">libcom_err</filename></term>
  405. <listitem>
  406. <para>The common error display routine</para>
  407. <indexterm zone="ch-system-e2fsprogs libcom_err">
  408. <primary sortas="c-libcom_err">libcom_err</primary>
  409. </indexterm>
  410. </listitem>
  411. </varlistentry>
  412. <varlistentry id="libe2p">
  413. <term><filename class="libraryfile">libe2p</filename></term>
  414. <listitem>
  415. <para>Used by <command>dumpe2fs</command>, <command>chattr</command>,
  416. and <command>lsattr</command></para>
  417. <indexterm zone="ch-system-e2fsprogs libe2p">
  418. <primary sortas="c-libe2p">libe2p</primary>
  419. </indexterm>
  420. </listitem>
  421. </varlistentry>
  422. <varlistentry id="libext2fs">
  423. <term><filename class="libraryfile">libext2fs</filename></term>
  424. <listitem>
  425. <para>Contains routines to enable user-level programs to manipulate an
  426. <systemitem class="filesystem">ext2</systemitem> file system</para>
  427. <indexterm zone="ch-system-e2fsprogs libext2fs">
  428. <primary sortas="c-libext2fs">libext2fs</primary>
  429. </indexterm>
  430. </listitem>
  431. </varlistentry>
  432. <varlistentry id="libss">
  433. <term><filename class="libraryfile">libss</filename></term>
  434. <listitem>
  435. <para>Used by <command>debugfs</command></para>
  436. <indexterm zone="ch-system-e2fsprogs libss">
  437. <primary sortas="c-libss">libss</primary>
  438. </indexterm>
  439. </listitem>
  440. </varlistentry>
  441. </variablelist>
  442. </sect2>
  443. </sect1>