source: chapter08/e2fsprogs.xml@ d7a9421

11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since d7a9421 was d7a9421, checked in by Douglas R. Reno <renodr@…>, 3 years ago

Merge Xi's changes into trunk
Update to meson-0.58.0
Update to systemd-248
Update to gcc-11.1.0
Update to linux-5.12.1
Update to iproute2-5.12.0
Update to Python-3.9.5
Make /bin, /sbin, and /lib symlinks to their counterparts in /usr.
Thanks again for a significant portion of this work goes to Xi, I only
really merged it and made a couple of modifications for my updates. To
LFS 11.x we go!

  • Property mode set to 100644
File size: 19.6 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
[b06ca36]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[673b0d8]4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
[54e422c1]7
[81fd230]8<sect1 id="ch-system-e2fsprogs" role="wrap">
[54e422c1]9 <?dbhtml filename="e2fsprogs.html"?>
10
[e747759]11 <sect1info condition="script">
12 <productname>e2fsprogs</productname>
13 <productnumber>&e2fsprogs-version;</productnumber>
14 <address>&e2fsprogs-url;</address>
15 </sect1info>
16
[54e422c1]17 <title>E2fsprogs-&e2fsprogs-version;</title>
18
19 <indexterm zone="ch-system-e2fsprogs">
20 <primary sortas="a-E2fsprogs">E2fsprogs</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
[673b0d8]25
[6a156bab]26 <para>The e2fsprogs package contains the utilities for handling the
[54e422c1]27 <systemitem class="filesystem">ext2</systemitem> file system. It also
[2ca8941]28 supports the <systemitem class="filesystem">ext3</systemitem> and
[55fa5a3]29 <systemitem class="filesystem">ext4</systemitem> journaling
30 file systems.</para>
[6370fa6]31
[54e422c1]32 <segmentedlist>
33 <segtitle>&buildtime;</segtitle>
34 <segtitle>&diskspace;</segtitle>
[5888299]35
[54e422c1]36 <seglistitem>
[fb386e0]37 <seg>&e2fsprogs-fin-sbu;</seg>
38 <seg>&e2fsprogs-fin-du;</seg>
[54e422c1]39 </seglistitem>
40 </segmentedlist>
[673b0d8]41
[54e422c1]42 </sect2>
43
44 <sect2 role="installation">
45 <title>Installation of E2fsprogs</title>
[1aff37f]46
[6a156bab]47 <para>The e2fsprogs documentation recommends that the package be built in
[79286f58]48 a subdirectory of the source tree: </para>
[8250be1]49
[0445a3d]50<screen><userinput remap="pre">mkdir -v build
[1263de2]51cd build</userinput></screen>
[8250be1]52
[6a156bab]53 <para>Prepare e2fsprogs for compilation:</para>
[73aedd1d]54
[8054162]55<screen><userinput remap="configure">../configure --prefix=/usr \
[2c5ca04]56 --enable-elf-shlibs \
57 --disable-libblkid \
58 --disable-libuuid \
59 --disable-uuidd \
[9f5aaf7]60 --disable-fsck</userinput></screen>
[73aedd1d]61
[54e422c1]62 <variablelist>
[6a156bab]63 <title>The meaning of the configure options:</title>
[efcb393]64
[54e422c1]65 <varlistentry>
66 <term><parameter>--enable-elf-shlibs</parameter></term>
67 <listitem>
68 <para>This creates the shared libraries which some programs
69 in this package use.</para>
[68460dd]70 </listitem>
71 </varlistentry>
72
73 <varlistentry>
[1891a2c]74 <term><parameter>--disable-*</parameter></term>
[68460dd]75 <listitem>
[6a156bab]76 <para>This prevents e2fsprogs from building and installing the
[68460dd]77 <systemitem class="library">libuuid</systemitem> and
[ec8ebf26]78 <systemitem class="library">libblkid</systemitem> libraries, the
79 <systemitem class="daemon">uuidd</systemitem> daemon, and the
[6a156bab]80 <command>fsck</command> wrapper, as util-linux installs more
[4f4595c]81 recent versions.</para>
[54e422c1]82 </listitem>
83 </varlistentry>
84
85 </variablelist>
86
87 <para>Compile the package:</para>
[73aedd1d]88
[0445a3d]89<screen><userinput remap="make">make</userinput></screen>
[6c67242]90
91 <para>To run the tests, issue:</para>
[0445a3d]92
[6c67242]93<screen><userinput remap="test">make check</userinput></screen>
[0b52f7ba]94
[164d38e]95<para>One test, m_rootdir_acl, is known to fail.</para>
[ad15abd]96<!-- This is a ridiculous amount now! And is it still true?
[6a156bab]97 <para>One of the e2fsprogs tests will attempt to allocate 256 MB of memory.
[6f16853]98 If you do not have significantly more RAM than this, be sure to enable
[0f344dd]99 sufficient swap space for the test. See <xref
[afcfd74]100 linkend="ch-partitioning-creatingfilesystem"/> and <xref
101 linkend="ch-partitioning-mounting"/>
[21184ce]102 for details on creating and enabling swap space.</para>
[ad15abd]103-->
104 <para>On a spinning disk, the tests take a little more than 4 SBUs. They
105 can be much shorter on an SSD (down to about 1.5 SBUs).</para>
[0b52f7ba]106
[6b041a0]107 <para>Install the package:</para>
[73aedd1d]108
[0445a3d]109<screen><userinput remap="install">make install</userinput></screen>
[73aedd1d]110
[cd152f22]111 <para>Remove useless static libraries:</para>
[bdd7f27]112
[cd152f22]113<screen><userinput remap="install">rm -fv /usr/lib/{libcom_err,libe2p,libext2fs,libss}.a</userinput></screen>
[bdd7f27]114
[64941f4]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
[540dde1]119 commands:</para>
[64941f4]120
121<screen><userinput remap="install">gunzip -v /usr/share/info/libext2fs.info.gz
[9f5aaf7]122install-info --dir-file=/usr/share/info/dir /usr/share/info/libext2fs.info</userinput></screen>
[64941f4]123
124 <para>If desired, create and install some additional documentation by
125 issuing the following commands:</para>
126
[a68cefc]127<screen><userinput remap="install">makeinfo -o doc/com_err.info ../lib/et/com_err.texinfo
[64941f4]128install -v -m644 doc/com_err.info /usr/share/info
[9f5aaf7]129install-info --dir-file=/usr/share/info/dir /usr/share/info/com_err.info</userinput></screen>
[54e422c1]130 </sect2>
131
132 <sect2 id="contents-e2fsprogs" role="content">
133 <title>Contents of E2fsprogs</title>
134
135 <segmentedlist>
136 <segtitle>Installed programs</segtitle>
137 <segtitle>Installed libraries</segtitle>
[1d6f204]138 <segtitle>Installed directories</segtitle>
[54e422c1]139
140 <seglistitem>
[f7ca699b]141 <seg>badblocks, chattr, compile_et, debugfs, dumpe2fs, e2freefrag,
[78cc3be]142 e2fsck, e2image, e2label, e2mmpstatus, e2scrub, e2scrub_all, e2undo,
143 e4crypt, e4defrag, filefrag, fsck.ext2,
144 fsck.ext3, fsck.ext4, logsave, lsattr, mk_cmds, mke2fs,
145 mkfs.ext2, mkfs.ext3, mkfs.ext4, mklost+found,
[cd82ee5]146 resize2fs, and tune2fs</seg>
[040ecb6]147 <seg>libcom_err.so, libe2p.so, libext2fs.so, and libss.so</seg>
[fe05b08]148 <seg>/usr/include/e2p, /usr/include/et, /usr/include/ext2fs,
[78cc3be]149 /usr/include/ss, /usr/lib/e2fsprogs, /usr/share/et, and
150 /usr/share/ss</seg>
[54e422c1]151 </seglistitem>
152 </segmentedlist>
153
154 <variablelist>
155 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
156 <?dbfo list-presentation="list"?>
157 <?dbhtml list-presentation="table"?>
158
159 <varlistentry id="badblocks">
160 <term><command>badblocks</command></term>
161 <listitem>
162 <para>Searches a device (usually a disk partition) for bad
163 blocks</para>
164 <indexterm zone="ch-system-e2fsprogs badblocks">
165 <primary sortas="b-badblocks">badblocks</primary>
166 </indexterm>
167 </listitem>
168 </varlistentry>
169
170 <varlistentry id="chattr">
171 <term><command>chattr</command></term>
172 <listitem>
173 <para>Changes the attributes of files on an <systemitem
174 class="filesystem">ext2</systemitem> file system; it also
175 changes <systemitem class="filesystem">ext3</systemitem>
176 file systems, the journaling version of <systemitem
177 class="filesystem">ext2</systemitem> file systems</para>
178 <indexterm zone="ch-system-e2fsprogs chattr">
179 <primary sortas="b-chattr">chattr</primary>
180 </indexterm>
181 </listitem>
182 </varlistentry>
183
184 <varlistentry id="compile_et">
185 <term><command>compile_et</command></term>
186 <listitem>
187 <para>An error table compiler; it converts a table of error-code
188 names and messages into a C source file suitable for use with the
189 <filename class="libraryfile">com_err</filename> library</para>
190 <indexterm zone="ch-system-e2fsprogs compile_et">
191 <primary sortas="b-compile_et">compile_et</primary>
192 </indexterm>
193 </listitem>
194 </varlistentry>
195
196 <varlistentry id="debugfs">
197 <term><command>debugfs</command></term>
198 <listitem>
199 <para>A file system debugger; it can be used to examine and change
200 the state of an <systemitem class="filesystem">ext2</systemitem>
201 file system</para>
202 <indexterm zone="ch-system-e2fsprogs debugfs">
203 <primary sortas="b-debugfs">debugfs</primary>
204 </indexterm>
205 </listitem>
206 </varlistentry>
207
208 <varlistentry id="dumpe2fs">
209 <term><command>dumpe2fs</command></term>
210 <listitem>
211 <para>Prints the super block and blocks group information for the
212 file system present on a given device</para>
213 <indexterm zone="ch-system-e2fsprogs dumpe2fs">
214 <primary sortas="b-dumpe2fs">dumpe2fs</primary>
215 </indexterm>
216 </listitem>
217 </varlistentry>
218
[f6b1d91]219 <varlistentry id="e2freefrag">
220 <term><command>e2freefrag</command></term>
221 <listitem>
[afba93b]222 <para>Reports free space fragmentation information</para>
[f6b1d91]223 <indexterm zone="ch-system-e2fsprogs e2freefrag">
224 <primary sortas="b-e2freefrag">e2freefrag</primary>
225 </indexterm>
226 </listitem>
227 </varlistentry>
228
[54e422c1]229 <varlistentry id="e2fsck">
230 <term><command>e2fsck</command></term>
231 <listitem>
232 <para>Is used to check, and optionally repair <systemitem
233 class="filesystem">ext2</systemitem> file systems and <systemitem
234 class="filesystem">ext3</systemitem> file systems</para>
235 <indexterm zone="ch-system-e2fsprogs e2fsck">
236 <primary sortas="b-e2fsck">e2fsck</primary>
237 </indexterm>
238 </listitem>
239 </varlistentry>
240
241 <varlistentry id="e2image">
242 <term><command>e2image</command></term>
243 <listitem>
244 <para>Is used to save critical <systemitem
245 class="filesystem">ext2</systemitem> file system data to a file</para>
246 <indexterm zone="ch-system-e2fsprogs e2image">
247 <primary sortas="b-e2image">e2image</primary>
248 </indexterm>
249 </listitem>
250 </varlistentry>
[90aae6b]251
[54e422c1]252 <varlistentry id="e2label">
253 <term><command>e2label</command></term>
254 <listitem>
255 <para>Displays or changes the file system label on the <systemitem
256 class="filesystem">ext2</systemitem> file system present on a given
257 device</para>
258 <indexterm zone="ch-system-e2fsprogs e2label">
259 <primary sortas="b-e2label">e2label</primary>
260 </indexterm>
261 </listitem>
262 </varlistentry>
263
[78cc3be]264 <varlistentry id="e2mmpstatus">
265 <term><command>e2mmpstatus</command></term>
266 <listitem>
267 <para>Checks MMP status of an ext4 filesystem</para>
268 <indexterm zone="ch-system-e2fsprogs e2mmpstatus">
269 <primary sortas="b-e2mmpstatus">e2mmpstatus</primary>
270 </indexterm>
271 </listitem>
272 </varlistentry>
273
274 <varlistentry id="e2scrub">
275 <term><command>e2scrub</command></term>
276 <listitem>
277 <para>Checks the contents of a mounted ext[234] filesystem</para>
278 <indexterm zone="ch-system-e2fsprogs e2scrub">
279 <primary sortas="b-e2scrub">e2scrub</primary>
280 </indexterm>
281 </listitem>
282 </varlistentry>
283
284 <varlistentry id="e2scrub_all">
285 <term><command>e2scrub_all</command></term>
286 <listitem>
287 <para>Checks all mounted ext[234] filesystems for errors</para>
288 <indexterm zone="ch-system-e2fsprogs e2scrub_all">
289 <primary sortas="b-e2scrub_all">e2scrub_all</primary>
290 </indexterm>
291 </listitem>
292 </varlistentry>
293
[0b9e193]294 <varlistentry id="e2undo">
295 <term><command>e2undo</command></term>
296 <listitem>
[2ca8941]297 <para>Replays the undo log undo_log for an ext2/ext3/ext4 filesystem
[7bb9fda]298 found on a device [This can be used to undo a failed operation by an
299 e2fsprogs program.]</para>
[0b9e193]300 <indexterm zone="ch-system-e2fsprogs e2undo">
301 <primary sortas="b-e2undo">e2undo</primary>
302 </indexterm>
303 </listitem>
304 </varlistentry>
305
[78cc3be]306 <varlistentry id="e4crypt">
307 <term><command>e4crypt</command></term>
308 <listitem>
309 <para>Ext4 filesystem encryption utility</para>
310 <indexterm zone="ch-system-e2fsprogs e4crypt">
311 <primary sortas="b-e4crypt">e4crypt</primary>
312 </indexterm>
313 </listitem>
314 </varlistentry>
315
[f6b1d91]316 <varlistentry id="e4defrag">
317 <term><command>e4defrag</command></term>
318 <listitem>
319 <para>Online defragmenter for ext4 filesystems</para>
320 <indexterm zone="ch-system-e2fsprogs e4defrag">
321 <primary sortas="b-e4defrag">e4defrag</primary>
322 </indexterm>
323 </listitem>
324 </varlistentry>
325
326 <varlistentry id="filefrag">
327 <term><command>filefrag</command></term>
328 <listitem>
329 <para>Reports on how badly fragmented a particular file might be</para>
330 <indexterm zone="ch-system-e2fsprogs filefrag">
331 <primary sortas="b-filefrag">filefrag</primary>
332 </indexterm>
333 </listitem>
334 </varlistentry>
335
[54e422c1]336 <varlistentry id="fsck.ext2">
337 <term><command>fsck.ext2</command></term>
338 <listitem>
339 <para>By default checks <systemitem class="filesystem">ext2</systemitem>
[7bb9fda]340 file systems and is a hard link to <command>e2fsck</command></para>
[54e422c1]341 <indexterm zone="ch-system-e2fsprogs fsck.ext2">
342 <primary sortas="b-fsck.ext2">fsck.ext2</primary>
343 </indexterm>
344 </listitem>
345 </varlistentry>
346
347 <varlistentry id="fsck.ext3">
348 <term><command>fsck.ext3</command></term>
349 <listitem>
350 <para>By default checks <systemitem class="filesystem">ext3</systemitem>
[7bb9fda]351 file systems and is a hard link to <command>e2fsck</command></para>
[54e422c1]352 <indexterm zone="ch-system-e2fsprogs fsck.ext3">
353 <primary sortas="b-fsck.ext3">fsck.ext3</primary>
354 </indexterm>
355 </listitem>
356 </varlistentry>
357
[0b9e193]358 <varlistentry id="fsck.ext4">
359 <term><command>fsck.ext4</command></term>
360 <listitem>
361 <para>By default checks <systemitem class="filesystem">ext4</systemitem>
[7bb9fda]362 file systems and is a hard link to <command>e2fsck</command></para>
[0b9e193]363 <indexterm zone="ch-system-e2fsprogs fsck.ext4">
364 <primary sortas="b-fsck.ext4">fsck.ext4</primary>
365 </indexterm>
366 </listitem>
367 </varlistentry>
368
[54e422c1]369 <varlistentry id="logsave">
370 <term><command>logsave</command></term>
371 <listitem>
372 <para>Saves the output of a command in a log file</para>
373 <indexterm zone="ch-system-e2fsprogs logsave">
374 <primary sortas="b-logsave">logsave</primary>
375 </indexterm>
376 </listitem>
377 </varlistentry>
378
379 <varlistentry id="lsattr">
380 <term><command>lsattr</command></term>
381 <listitem>
382 <para>Lists the attributes of files on a second extended file
383 system</para>
384 <indexterm zone="ch-system-e2fsprogs lsattr">
385 <primary sortas="b-lsattr">lsattr</primary>
386 </indexterm>
387 </listitem>
388 </varlistentry>
389
390 <varlistentry id="mk_cmds">
391 <term><command>mk_cmds</command></term>
392 <listitem>
393 <para>Converts a table of command names and help messages into a C
394 source file suitable for use with the <filename
395 class="libraryfile">libss</filename> subsystem library</para>
396 <indexterm zone="ch-system-e2fsprogs mk_cmds">
397 <primary sortas="b-mk_cmds">mk_cmds</primary>
398 </indexterm>
399 </listitem>
400 </varlistentry>
401
402 <varlistentry id="mke2fs">
403 <term><command>mke2fs</command></term>
404 <listitem>
405 <para>Creates an <systemitem class="filesystem">ext2</systemitem>
406 or <systemitem class="filesystem">ext3</systemitem> file system on
407 the given device</para>
408 <indexterm zone="ch-system-e2fsprogs mke2fs">
409 <primary sortas="b-mke2fs">mke2fs</primary>
410 </indexterm>
411 </listitem>
412 </varlistentry>
413
414 <varlistentry id="mkfs.ext2">
415 <term><command>mkfs.ext2</command></term>
416 <listitem>
417 <para>By default creates <systemitem class="filesystem">ext2</systemitem>
[7bb9fda]418 file systems and is a hard link to <command>mke2fs</command></para>
[54e422c1]419 <indexterm zone="ch-system-e2fsprogs mkfs.ext2">
420 <primary sortas="b-mkfs.ext2">mkfs.ext2</primary>
421 </indexterm>
422 </listitem>
423 </varlistentry>
424
425 <varlistentry id="mkfs.ext3">
426 <term><command>mkfs.ext3</command></term>
427 <listitem>
428 <para>By default creates <systemitem class="filesystem">ext3</systemitem>
[7bb9fda]429 file systems and is a hard link to <command>mke2fs</command></para>
[54e422c1]430 <indexterm zone="ch-system-e2fsprogs mkfs.ext3">
431 <primary sortas="b-mkfs.ext3">mkfs.ext3</primary>
432 </indexterm>
433 </listitem>
434 </varlistentry>
435
[0b9e193]436 <varlistentry id="mkfs.ext4">
437 <term><command>mkfs.ext4</command></term>
438 <listitem>
439 <para>By default creates <systemitem class="filesystem">ext4</systemitem>
[7bb9fda]440 file systems and is a hard link to <command>mke2fs</command></para>
[0b9e193]441 <indexterm zone="ch-system-e2fsprogs mkfs.ext4">
442 <primary sortas="b-mkfs.ext4">mkfs.ext4</primary>
443 </indexterm>
444 </listitem>
445 </varlistentry>
446
[f6b1d91]447 <varlistentry id="mklost-found">
448 <term><command>mklost+found</command></term>
449 <listitem>
450 <para>Used to create a <filename class="directory">lost+found</filename>
451 directory on an <systemitem class="filesystem">ext2</systemitem> file
452 system; it pre-allocates disk blocks to this directory to lighten the
453 task of <command>e2fsck</command></para>
454 <indexterm zone="ch-system-e2fsprogs mklost-found">
455 <primary sortas="b-mklost+found">mklost+found</primary>
456 </indexterm>
457 </listitem>
458 </varlistentry>
459
[54e422c1]460 <varlistentry id="resize2fs">
461 <term><command>resize2fs</command></term>
462 <listitem>
463 <para>Can be used to enlarge or shrink an <systemitem
464 class="filesystem">ext2</systemitem> file system</para>
465 <indexterm zone="ch-system-e2fsprogs resize2fs">
466 <primary sortas="b-resize2fs">resize2fs</primary>
467 </indexterm>
468 </listitem>
469 </varlistentry>
470
471 <varlistentry id="tune2fs">
472 <term><command>tune2fs</command></term>
473 <listitem>
474 <para>Adjusts tunable file system parameters on an <systemitem
475 class="filesystem">ext2</systemitem> file system</para>
476 <indexterm zone="ch-system-e2fsprogs tune2fs">
477 <primary sortas="b-tune2fs">tune2fs</primary>
478 </indexterm>
[daf1314a]479 </listitem>
480 </varlistentry>
481
[54e422c1]482 <varlistentry id="libcom_err">
483 <term><filename class="libraryfile">libcom_err</filename></term>
484 <listitem>
485 <para>The common error display routine</para>
486 <indexterm zone="ch-system-e2fsprogs libcom_err">
487 <primary sortas="c-libcom_err">libcom_err</primary>
488 </indexterm>
489 </listitem>
490 </varlistentry>
491
492 <varlistentry id="libe2p">
493 <term><filename class="libraryfile">libe2p</filename></term>
494 <listitem>
495 <para>Used by <command>dumpe2fs</command>, <command>chattr</command>,
496 and <command>lsattr</command></para>
497 <indexterm zone="ch-system-e2fsprogs libe2p">
498 <primary sortas="c-libe2p">libe2p</primary>
499 </indexterm>
500 </listitem>
501 </varlistentry>
502
503 <varlistentry id="libext2fs">
504 <term><filename class="libraryfile">libext2fs</filename></term>
505 <listitem>
506 <para>Contains routines to enable user-level programs to manipulate an
507 <systemitem class="filesystem">ext2</systemitem> file system</para>
508 <indexterm zone="ch-system-e2fsprogs libext2fs">
509 <primary sortas="c-libext2fs">libext2fs</primary>
510 </indexterm>
511 </listitem>
512 </varlistentry>
[1118b17]513
[54e422c1]514 <varlistentry id="libss">
515 <term><filename class="libraryfile">libss</filename></term>
516 <listitem>
517 <para>Used by <command>debugfs</command></para>
518 <indexterm zone="ch-system-e2fsprogs libss">
519 <primary sortas="c-libss">libss</primary>
520 </indexterm>
521 </listitem>
522 </varlistentry>
523
524 </variablelist>
525
526 </sect2>
[673b0d8]527
528</sect1>
Note: See TracBrowser for help on using the repository browser.