e2fsprogs.xml 21 KB

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