e2fsprogs.xml 19 KB

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