e2fsprogs.xml 21 KB

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