e2fsprogs.xml 20 KB

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