e2fsprogs.xml 19 KB

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