source: chapter06/e2fsprogs.xml@ 582bf50

10.0 10.0-rc1 10.1 10.1-rc1 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 12.2 12.2-rc1 6.0 6.1 6.1.1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 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/loongarch-12.2 xry111/mips64el xry111/multilib xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 582bf50 was c6cb3aa, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

HEAD: Retagged the Contents of ... sections.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3621 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 10.8 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
[a001133]6<sect1 id="ch-system-e2fsprogs" xreflabel="E2fsprogs" role="wrap">
[673b0d8]7<title>E2fsprogs-&e2fsprogs-version;</title>
8<?dbhtml filename="e2fsprogs.html"?>
9
10<indexterm zone="ch-system-e2fsprogs"><primary sortas="a-E2fsprogs">E2fsprogs</primary></indexterm>
[6370fa6]11
[a001133]12<sect2 role="package"><title/>
[5888299]13<para>The E2fsprogs package contains the utilities for handling the ext2
[ab3b93b]14file system. It also supports the ext3 journaling file system.</para>
[5888299]15
[a001133]16<segmentedlist>
17<segtitle>&buildtime;</segtitle>
18<segtitle>&diskspace;</segtitle>
19<seglistitem><seg>0.6 SBU</seg><seg>48.4 MB</seg></seglistitem>
20</segmentedlist>
[673b0d8]21
[a001133]22<segmentedlist>
23<segtitle>E2fsprogs installation depends on</segtitle>
24<seglistitem><seg>Bash, Binutils, Coreutils,
25Diffutils, Gawk, GCC, Gettext, Glibc, Grep, Make, Sed, Texinfo</seg></seglistitem>
26</segmentedlist>
27</sect2>
[3554fa3a]28
[a001133]29<sect2 role="installation">
[73aedd1d]30<title>Installation of E2fsprogs</title>
31
32<para>Prepare E2fsprogs for compilation:</para>
33
[9dfc02f]34<screen><userinput>./configure --prefix=/usr --with-root-prefix="" \
35 --enable-elf-shlibs --disable-evms</userinput></screen>
[73aedd1d]36
37<para>The meaning of the configure options:</para>
38
39<itemizedlist>
40<listitem><para><userinput>--with-root-prefix=""</userinput>: Certain
41programs (such as the e2fsck program) are considered essential programs.
42When, for example, <filename class="directory">/usr</filename> isn't
[a195a6c]43mounted, these essential programs have to be available. They belong in
[73aedd1d]44directories like <filename class="directory">/lib</filename> and
45<filename class="directory">/sbin</filename>. If this option isn't passed
46to E2fsprogs's configure, the programs are placed in the
47<filename class="directory">/usr</filename> directory, which is not what we
48want.</para></listitem>
49
50<listitem><para><userinput>--enable-elf-shlibs</userinput>: This creates
[673b0d8]51the shared libraries which some programs in this package use.</para></listitem>
[73aedd1d]52</itemizedlist>
53
54<para>Compile the package:</para>
55
56<screen><userinput>make</userinput></screen>
57
[9dfc02f]58<para>To test the results, issue:
59<userinput>make check</userinput>.</para>
[73aedd1d]60
61<para>Install most of the package:</para>
62
63<screen><userinput>make install</userinput></screen>
64
[673b0d8]65<para>Also install also the shared libraries:</para>
[73aedd1d]66
67<screen><userinput>make install-libs</userinput></screen>
68
69</sect2>
70
[6370fa6]71
[5888299]72
[c6cb3aa]73<sect2 id="contents-e2fsprogs" role="content"><title>Contents of E2fsprogs</title>
[673b0d8]74
[c6cb3aa]75<segmentedlist>
76<segtitle>Installed programs</segtitle>
77<segtitle>Installed libraries</segtitle>
78<seglistitem><seg>badblocks, blkid, chattr,
[673b0d8]79compile_et, debugfs, dumpe2fs, e2fsck, e2image, e2label, findfs, fsck,
80fsck.ext2, fsck.ext3, logsave, lsattr, mk_cmds, mke2fs, mkfs.ext2, mkfs.ext3,
[c6cb3aa]81mklost+found, resize2fs, tune2fs and uuidgen.</seg>
82<seg>libblkid.[a,so], libcom_err.[a,so], libe2p.[a,so], libext2fs.[a,so], libss.[a,so] and
83libuuid.[a,so]</seg></seglistitem>
84</segmentedlist>
[673b0d8]85
[c6cb3aa]86<variablelist><title>Short descriptions</title>
[673b0d8]87
[c6cb3aa]88<varlistentry>
89<term id="badblocks"><command>badblocks</command></term>
90<listitem>
[673b0d8]91<indexterm zone="ch-system-e2fsprogs badblocks"><primary sortas="b-badblocks">badblocks</primary></indexterm>
[c6cb3aa]92<para>searches a device (usually a disk partition) for bad blocks.</para>
93</listitem>
94</varlistentry>
[673b0d8]95
[c6cb3aa]96<varlistentry>
97<term id="blkid"><command>blkid</command></term>
98<listitem>
[673b0d8]99<indexterm zone="ch-system-e2fsprogs blkid"><primary sortas="b-blkid">blkid</primary></indexterm>
[c6cb3aa]100<para>is a command line utility to locate and print block device attributes.</para>
101</listitem>
102</varlistentry>
[673b0d8]103
[c6cb3aa]104<varlistentry>
105<term id="chattr"><command>chattr</command></term>
106<listitem>
[673b0d8]107<indexterm zone="ch-system-e2fsprogs chattr"><primary sortas="b-chattr">chattr</primary></indexterm>
[c6cb3aa]108<para>changes the attributes of files on a second extended (ext2) file system, and
109also ext3 file systems, the journaling version of ext2 file systems.</para>
110</listitem>
111</varlistentry>
112
113<varlistentry>
114<term id="compile_et"><command>compile_et</command></term>
115<listitem>
[673b0d8]116<indexterm zone="ch-system-e2fsprogs compile_et"><primary sortas="b-compile_et">compile_et</primary></indexterm>
[c6cb3aa]117<para>is an error table compiler. It
[673b0d8]118converts a table of error-code names and messages into a C source file
119suitable for use with the com_err library.</para>
[c6cb3aa]120</listitem>
121</varlistentry>
[673b0d8]122
[c6cb3aa]123<varlistentry>
124<term id="debugfs"><command>debugfs</command></term>
125<listitem>
[673b0d8]126<indexterm zone="ch-system-e2fsprogs debugfs"><primary sortas="b-debugfs">debugfs</primary></indexterm>
[c6cb3aa]127<para>is a file system debugger. It can be
[673b0d8]128used to examine and change the state of an ext2 file system.</para>
[c6cb3aa]129</listitem>
130</varlistentry>
[673b0d8]131
[c6cb3aa]132<varlistentry>
133<term id="dumpe2fs"><command>dumpe2fs</command></term>
134<listitem>
[673b0d8]135<indexterm zone="ch-system-e2fsprogs dumpe2fs"><primary sortas="b-dumpe2fs">dumpe2fs</primary></indexterm>
[c6cb3aa]136<para>prints the super block and blocks group
[673b0d8]137information for the file system present on a given device.</para>
[c6cb3aa]138</listitem>
139</varlistentry>
[673b0d8]140
[c6cb3aa]141<varlistentry>
142<term id="e2fsck"><command>e2fsck</command></term>
143<listitem>
[673b0d8]144<indexterm zone="ch-system-e2fsprogs e2fsck"><primary sortas="b-e2fsck">e2fsck</primary></indexterm>
[c6cb3aa]145<para>is used to check, and optionally repair,
[673b0d8]146second extended (ext2) file systems, and also ext3 file systems.</para>
[c6cb3aa]147</listitem>
148</varlistentry>
[673b0d8]149
[c6cb3aa]150<varlistentry>
151<term id="e2image"><command>e2image</command></term>
152<listitem>
[673b0d8]153<indexterm zone="ch-system-e2fsprogs e2image"><primary sortas="b-e2image">e2image</primary></indexterm>
[c6cb3aa]154<para>is used to save critical ext2 file system data to a file.</para>
155</listitem>
156</varlistentry>
[673b0d8]157
[c6cb3aa]158<varlistentry>
159<term id="e2label"><command>e2label</command></term>
160<listitem>
[673b0d8]161<indexterm zone="ch-system-e2fsprogs e2label"><primary sortas="b-e2label">e2label</primary></indexterm>
[c6cb3aa]162<para>will display or change the file system
[673b0d8]163label on the ext2 file system present on a given device.</para>
[c6cb3aa]164</listitem>
165</varlistentry>
[673b0d8]166
[c6cb3aa]167<varlistentry>
168<term id="findfs"><command>findfs</command></term>
169<listitem>
[673b0d8]170<indexterm zone="ch-system-e2fsprogs findfs"><primary sortas="b-findfs">findfs</primary></indexterm>
[c6cb3aa]171<para>finds a file system by label or UUID (Universally Unique Identifier).</para>
172</listitem>
173</varlistentry>
[673b0d8]174
[c6cb3aa]175<varlistentry>
176<term id="fsck"><command>fsck</command></term>
177<listitem>
[673b0d8]178<indexterm zone="ch-system-e2fsprogs fsck"><primary sortas="b-fsck">fsck</primary></indexterm>
[c6cb3aa]179<para>is used to check, and optionally repair, file systems. By default it checks the
180file systems listed in <filename>/etc/fstab</filename></para>
181</listitem>
182</varlistentry>
183
184<varlistentry>
185<term id="logsave"><command>logsave</command></term>
186<listitem>
[673b0d8]187<indexterm zone="ch-system-e2fsprogs logsave"><primary sortas="b-logsave">logsave</primary></indexterm>
[c6cb3aa]188<para>saves the output of a command in a log file.</para>
189</listitem>
190</varlistentry>
[673b0d8]191
[c6cb3aa]192<varlistentry>
193<term id="lsattr"><command>lsattr</command></term>
194<listitem>
[673b0d8]195<indexterm zone="ch-system-e2fsprogs lsattr"><primary sortas="b-lsattr">lsattr</primary></indexterm>
[c6cb3aa]196<para>lists the attributes of files on a second extended file system.</para>
197</listitem>
198</varlistentry>
[673b0d8]199
[c6cb3aa]200<varlistentry>
201<term id="mk_cmds"><command>mk_cmds</command></term>
202<listitem>
[673b0d8]203<indexterm zone="ch-system-e2fsprogs mk_cmds"><primary sortas="b-mk_cmds">mk_cmds</primary></indexterm>
[c6cb3aa]204<para>converts a table of command names
[673b0d8]205and help messages into a C source file suitable for use with the
206<filename>libss</filename> subsystem library.</para>
[c6cb3aa]207</listitem>
208</varlistentry>
[673b0d8]209
[c6cb3aa]210<varlistentry>
211<term id="mke2fs"><command>mke2fs</command></term>
212<listitem>
[673b0d8]213<indexterm zone="ch-system-e2fsprogs mke2fs"><primary sortas="b-mke2fs">mke2fs</primary></indexterm>
[c6cb3aa]214<para>is used to create a second extended file system on the given device.</para>
215</listitem>
216</varlistentry>
[673b0d8]217
[c6cb3aa]218<varlistentry>
219<term id="mklost-found"><command>mklost+found</command></term>
220<listitem>
[673b0d8]221<indexterm zone="ch-system-e2fsprogs mklost-found"><primary sortas="b-mklost+found">mklost+found</primary></indexterm>
[c6cb3aa]222<para>is used to create a
[673b0d8]223<filename>lost+found</filename> directory on a second extended file system.
224It pre-allocates disk blocks to this directory to lighten the task of e2fsck.</para>
[c6cb3aa]225</listitem>
226</varlistentry>
[673b0d8]227
[c6cb3aa]228<varlistentry>
229<term id="resize2fs"><command>resize2fs</command></term>
230<listitem>
[673b0d8]231<indexterm zone="ch-system-e2fsprogs resize2fs"><primary sortas="b-resize2fs">resize2fs</primary></indexterm>
[c6cb3aa]232<para>can be used to enlarge or shrink an ext2 file system.</para>
233</listitem>
234</varlistentry>
[673b0d8]235
[c6cb3aa]236<varlistentry>
237<term id="tune2fs"><command>tune2fs</command></term>
238<listitem>
[673b0d8]239<indexterm zone="ch-system-e2fsprogs tune2fs"><primary sortas="b-tune2fs">tune2fs</primary></indexterm>
[c6cb3aa]240<para>is used adjust tunable file system
[673b0d8]241parameters on a second extended file system.</para>
[c6cb3aa]242</listitem>
243</varlistentry>
[673b0d8]244
[c6cb3aa]245<varlistentry>
246<term id="uuidgen"><command>uuidgen</command></term>
247<listitem>
[673b0d8]248<indexterm zone="ch-system-e2fsprogs uuidgen"><primary sortas="b-uuidgen">uuidgen</primary></indexterm>
[c6cb3aa]249<para>creates new UUID. Each new UUID can reasonably be considered unique
[673b0d8]250among all UUIDs created, on the local system and on other systems, in the
251past and in the future.</para>
[c6cb3aa]252</listitem>
253</varlistentry>
[673b0d8]254
[c6cb3aa]255<varlistentry>
256<term id="libblkid"><command>libblkid</command></term>
257<listitem>
[673b0d8]258<indexterm zone="ch-system-e2fsprogs libblkid"><primary sortas="c-libblkid">libblkid</primary></indexterm>
[c6cb3aa]259<para>contains routines for device identification and token extraction.</para>
260</listitem>
261</varlistentry>
[673b0d8]262
[c6cb3aa]263<varlistentry>
264<term id="libcom_err"><command>libcom_err</command></term>
265<listitem>
[673b0d8]266<indexterm zone="ch-system-e2fsprogs libcom_err"><primary sortas="c-libcom_err">libcom_err</primary></indexterm>
[c6cb3aa]267<para>is the common error display routine.</para>
268</listitem>
269</varlistentry>
[673b0d8]270
[c6cb3aa]271<varlistentry>
272<term id="libe2p"><command>libe2p</command></term>
273<listitem>
[673b0d8]274<indexterm zone="ch-system-e2fsprogs libe2p"><primary sortas="c-libe2p">libe2p</primary></indexterm>
[c6cb3aa]275<para>is used by dumpe2fs, chattr, and lsattr.</para>
276</listitem>
277</varlistentry>
[673b0d8]278
[c6cb3aa]279<varlistentry>
280<term id="libext2fs"><command>libext2fs</command></term>
281<listitem>
[673b0d8]282<indexterm zone="ch-system-e2fsprogs libext2fs"><primary sortas="c-libext2fs">libext2fs</primary></indexterm>
[c6cb3aa]283<para>contains routines to enable user-level
[673b0d8]284programs to manipulate an ext2 file system.</para>
[c6cb3aa]285</listitem>
286</varlistentry>
[673b0d8]287
[c6cb3aa]288<varlistentry>
289<term id="libss"><command>libss</command></term>
290<listitem>
[673b0d8]291<indexterm zone="ch-system-e2fsprogs libss"><primary sortas="c-libss">libss</primary></indexterm>
[c6cb3aa]292<para>is used by debugfs.</para>
293</listitem>
294</varlistentry>
[673b0d8]295
[c6cb3aa]296<varlistentry>
297<term id="libuuid"><command>libuuid</command></term>
298<listitem>
[673b0d8]299<indexterm zone="ch-system-e2fsprogs libuuid"><primary sortas="c-libuuid">libuuid</primary></indexterm>
[c6cb3aa]300<para>contains routines for generating unique
[673b0d8]301identifiers for objects that may be accessible beyond the local system.</para>
[c6cb3aa]302</listitem>
303</varlistentry>
304</variablelist>
[673b0d8]305
306</sect2>
307
308</sect1>
Note: See TracBrowser for help on using the repository browser.