e2fsprogs.xml 20 KB

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