source: chapter06/e2fsprogs.xml@ 2ec64b3

v5_1_1
Last change on this file since 2ec64b3 was 2ec64b3, checked in by lfs-dev <lfs-dev@…>, 20 years ago

This commit was manufactured by cvs2svn to create tag 'v5_1_1'.

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

  • Property mode set to 100644
File size: 9.3 KB
Line 
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]>
6<sect1 id="ch-system-e2fsprogs" xreflabel="E2fsprogs">
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>
11
12<para>The E2fsprogs package contains the utilities for handling the ext2
13file system. It also supports the ext3 journaling file system.</para>
14
15<screen>&buildtime; 0.6 SBU
16&diskspace; 48.4 MB</screen>
17
18<para>E2fsprogs installation depends on: Bash, Binutils, Coreutils,
19Diffutils, Gawk, GCC, Gettext, Glibc, Grep, Make, Sed, Texinfo.</para>
20
21
22
23<sect2>
24<title>Installation of E2fsprogs</title>
25
26<para>It is recommended to build E2fsprogs outside of the
27source tree:</para>
28
29<screen><userinput>mkdir ../e2fsprogs-build
30cd ../e2fsprogs-build</userinput></screen>
31
32<para>Prepare E2fsprogs for compilation:</para>
33
34<screen><userinput>../e2fsprogs-&e2fsprogs-version;/configure --prefix=/usr --with-root-prefix="" \
35 --enable-elf-shlibs</userinput></screen>
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
43mounted, these essential programs have to be available. They belong in
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
51the shared libraries which some programs in this package use.</para></listitem>
52</itemizedlist>
53
54<para>Compile the package:</para>
55
56<screen><userinput>make</userinput></screen>
57
58<para>If you to test the results, first make sure an mtab file
59exists with <userinput>touch /etc/mtab</userinput> to prevent some sixty tests
60from failing, and (if it doesn't already exist) fake the presence of an old
61pager with <userinput>ln -s /tools/bin/cat /bin/more</userinput> to prevent one
62test from failing, then issue: <userinput>make check</userinput>.</para>
63
64<para>Install most of the package:</para>
65
66<screen><userinput>make install</userinput></screen>
67
68<para>Also install the shared libraries:</para>
69
70<screen><userinput>make install-libs</userinput></screen>
71
72</sect2>
73
74
75
76<sect2 id="contents-e2fsprogs"><title>Contents of E2fsprogs</title>
77
78<para><emphasis>Installed programs</emphasis>: badblocks, blkid, chattr,
79compile_et, debugfs, dumpe2fs, e2fsck, e2image, e2label, findfs, fsck,
80fsck.ext2, fsck.ext3, logsave, lsattr, mk_cmds, mke2fs, mkfs.ext2, mkfs.ext3,
81mklost+found, resize2fs, tune2fs and uuidgen.</para>
82
83<para><emphasis>Installed libraries</emphasis>: libblkid.[a,so],
84libcom_err.[a,so], libe2p.[a,so], libext2fs.[a,so], libss.[a,so] and
85libuuid.[a,so]</para>
86
87</sect2>
88
89
90<sect2><title>Short descriptions</title>
91
92<indexterm zone="ch-system-e2fsprogs badblocks"><primary sortas="b-badblocks">badblocks</primary></indexterm>
93<para id="badblocks"><command>badblocks</command> searches a device (usually a disk
94partition) for bad blocks.</para>
95
96<indexterm zone="ch-system-e2fsprogs blkid"><primary sortas="b-blkid">blkid</primary></indexterm>
97<para id="blkid"><command>blkid</command> is a command line utility to locate and
98print block device attributes.</para>
99
100<indexterm zone="ch-system-e2fsprogs chattr"><primary sortas="b-chattr">chattr</primary></indexterm>
101<para id="chattr"><command>chattr</command> changes the attributes of files on a
102second extended (ext2) file system, and also ext3 file systems, the journaling version of ext2 file systems.</para>
103
104<indexterm zone="ch-system-e2fsprogs compile_et"><primary sortas="b-compile_et">compile_et</primary></indexterm>
105<para id="compile_et"><command>compile_et</command> is an error table compiler. It
106converts a table of error-code names and messages into a C source file
107suitable for use with the com_err library.</para>
108
109<indexterm zone="ch-system-e2fsprogs debugfs"><primary sortas="b-debugfs">debugfs</primary></indexterm>
110<para id="debugfs"><command>debugfs</command> is a file system debugger. It can be
111used to examine and change the state of an ext2 file system.</para>
112
113<indexterm zone="ch-system-e2fsprogs dumpe2fs"><primary sortas="b-dumpe2fs">dumpe2fs</primary></indexterm>
114<para id="dumpe2fs"><command>dumpe2fs</command> prints the super block and blocks group
115information for the file system present on a given device.</para>
116
117<indexterm zone="ch-system-e2fsprogs e2fsck"><primary sortas="b-e2fsck">e2fsck</primary></indexterm>
118<para id="e2fsck"><command>e2fsck</command> is used to check, and optionally repair,
119second extended (ext2) file systems, and also ext3 file systems.</para>
120
121<indexterm zone="ch-system-e2fsprogs e2image"><primary sortas="b-e2image">e2image</primary></indexterm>
122<para id="e2image"><command>e2image</command> is used to save critical ext2 file system
123data to a file.</para>
124
125<indexterm zone="ch-system-e2fsprogs e2label"><primary sortas="b-e2label">e2label</primary></indexterm>
126<para id="e2label"><command>e2label</command> will display or change the file system
127label on the ext2 file system present on a given device.</para>
128
129<indexterm zone="ch-system-e2fsprogs findfs"><primary sortas="b-findfs">findfs</primary></indexterm>
130<para id="findfs"><command>findfs</command> finds a file system by label or UUID (Universally Unique Identifier).</para>
131
132<indexterm zone="ch-system-e2fsprogs fsck"><primary sortas="b-fsck">fsck</primary></indexterm>
133<para id="fsck"><command>fsck</command> is used to check, and optionally repair,
134file systems. By default it checks the file systems listed in
135<filename>/etc/fstab</filename></para>
136
137<indexterm zone="ch-system-e2fsprogs logsave"><primary sortas="b-logsave">logsave</primary></indexterm>
138<para id="logsave"><command>logsave</command> saves the output of a command in a log file.</para>
139
140<indexterm zone="ch-system-e2fsprogs lsattr"><primary sortas="b-lsattr">lsattr</primary></indexterm>
141<para id="lsattr"><command>lsattr</command> lists the attributes of files on a second
142extended file system.</para>
143
144<indexterm zone="ch-system-e2fsprogs mk_cmds"><primary sortas="b-mk_cmds">mk_cmds</primary></indexterm>
145<para id="mk_cmds"><command>mk_cmds</command> converts a table of command names
146and help messages into a C source file suitable for use with the
147<filename>libss</filename> subsystem library.</para>
148
149<indexterm zone="ch-system-e2fsprogs mke2fs"><primary sortas="b-mke2fs">mke2fs</primary></indexterm>
150<para id="mke2fs"><command>mke2fs</command> is used to create a second extended
151file system on the given device.</para>
152
153<indexterm zone="ch-system-e2fsprogs mklost-found"><primary sortas="b-mklost+found">mklost+found</primary></indexterm>
154<para id="mklost-found"><command>mklost+found</command> is used to create a
155<filename>lost+found</filename> directory on a second extended file system.
156It pre-allocates disk blocks to this directory to lighten the task of e2fsck.</para>
157
158<indexterm zone="ch-system-e2fsprogs resize2fs"><primary sortas="b-resize2fs">resize2fs</primary></indexterm>
159<para id="resize2fs"><command>resize2fs</command> can be used to enlarge or shrink an
160ext2 file system.</para>
161
162<indexterm zone="ch-system-e2fsprogs tune2fs"><primary sortas="b-tune2fs">tune2fs</primary></indexterm>
163<para id="tune2fs"><command>tune2fs</command> is used adjust tunable file system
164parameters on a second extended file system.</para>
165
166<indexterm zone="ch-system-e2fsprogs uuidgen"><primary sortas="b-uuidgen">uuidgen</primary></indexterm>
167<para id="uuidgen"><command>uuidgen</command> creates new
168UUID. Each new UUID can reasonably be considered unique
169among all UUIDs created, on the local system and on other systems, in the
170past and in the future.</para>
171
172<indexterm zone="ch-system-e2fsprogs libblkid"><primary sortas="c-libblkid">libblkid</primary></indexterm>
173<para id="libblkid"><command>libblkid</command> contains routines for device
174identification and token extraction.</para>
175
176<indexterm zone="ch-system-e2fsprogs libcom_err"><primary sortas="c-libcom_err">libcom_err</primary></indexterm>
177<para id="libcom_err"><command>libcom_err</command> is the common error display routine.</para>
178
179<indexterm zone="ch-system-e2fsprogs libe2p"><primary sortas="c-libe2p">libe2p</primary></indexterm>
180<para id="libe2p"><command>libe2p</command> is used by dumpe2fs, chattr, and lsattr.</para>
181
182<indexterm zone="ch-system-e2fsprogs libext2fs"><primary sortas="c-libext2fs">libext2fs</primary></indexterm>
183<para id="libext2fs"><command>libext2fs</command> contains routines to enable user-level
184programs to manipulate an ext2 file system.</para>
185
186<indexterm zone="ch-system-e2fsprogs libss"><primary sortas="c-libss">libss</primary></indexterm>
187<para id="libss"><command>libss</command> is used by debugfs.</para>
188
189<indexterm zone="ch-system-e2fsprogs libuuid"><primary sortas="c-libuuid">libuuid</primary></indexterm>
190<para id="libuuid"><command>libuuid</command> contains routines for generating unique
191identifiers for objects that may be accessible beyond the local system.</para>
192
193</sect2>
194
195
196
197</sect1>
Note: See TracBrowser for help on using the repository browser.