e2fsprogs.xml 21 KB

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