source: chapter06/e2fsprogs.xml@ e4bf4c7

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 e4bf4c7 was 9dfc02f, checked in by Zack Winkles <winkie@…>, 20 years ago

Current BE-LFS (but w/ GCC 3.3.3) merged -> 6.0 branch

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

  • Property mode set to 100644
File size: 8.8 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>Prepare E2fsprogs for compilation:</para>
27
28<screen><userinput>./configure --prefix=/usr --with-root-prefix="" \
29 --enable-elf-shlibs --disable-evms</userinput></screen>
30
31<para>The meaning of the configure options:</para>
32
33<itemizedlist>
34<listitem><para><userinput>--with-root-prefix=""</userinput>: Certain
35programs (such as the e2fsck program) are considered essential programs.
36When, for example, <filename class="directory">/usr</filename> isn't
37mounted, these essential programs have to be available. They belong in
38directories like <filename class="directory">/lib</filename> and
39<filename class="directory">/sbin</filename>. If this option isn't passed
40to E2fsprogs's configure, the programs are placed in the
41<filename class="directory">/usr</filename> directory, which is not what we
42want.</para></listitem>
43
44<listitem><para><userinput>--enable-elf-shlibs</userinput>: This creates
45the shared libraries which some programs in this package use.</para></listitem>
46</itemizedlist>
47
48<para>Compile the package:</para>
49
50<screen><userinput>make</userinput></screen>
51
52<para>To test the results, issue:
53<userinput>make check</userinput>.</para>
54
55<para>Install most of the package:</para>
56
57<screen><userinput>make install</userinput></screen>
58
59<para>Also install also the shared libraries:</para>
60
61<screen><userinput>make install-libs</userinput></screen>
62
63</sect2>
64
65
66
67<sect2 id="contents-e2fsprogs"><title>Contents of E2fsprogs</title>
68
69<para><emphasis>Installed programs</emphasis>: badblocks, blkid, chattr,
70compile_et, debugfs, dumpe2fs, e2fsck, e2image, e2label, findfs, fsck,
71fsck.ext2, fsck.ext3, logsave, lsattr, mk_cmds, mke2fs, mkfs.ext2, mkfs.ext3,
72mklost+found, resize2fs, tune2fs and uuidgen.</para>
73
74<para><emphasis>Installed libraries</emphasis>: libblkid.[a,so],
75libcom_err.[a,so], libe2p.[a,so], libext2fs.[a,so], libss.[a,so] and
76libuuid.[a,so]</para>
77
78</sect2>
79
80
81<sect2><title>Short descriptions</title>
82
83<indexterm zone="ch-system-e2fsprogs badblocks"><primary sortas="b-badblocks">badblocks</primary></indexterm>
84<para id="badblocks"><command>badblocks</command> searches a device (usually a disk
85partition) for bad blocks.</para>
86
87<indexterm zone="ch-system-e2fsprogs blkid"><primary sortas="b-blkid">blkid</primary></indexterm>
88<para id="blkid"><command>blkid</command> is a command line utility to locate and
89print block device attributes.</para>
90
91<indexterm zone="ch-system-e2fsprogs chattr"><primary sortas="b-chattr">chattr</primary></indexterm>
92<para id="chattr"><command>chattr</command> changes the attributes of files on a
93second extended (ext2) file system, and also ext3 file systems, the journaling version of ext2 file systems.</para>
94
95<indexterm zone="ch-system-e2fsprogs compile_et"><primary sortas="b-compile_et">compile_et</primary></indexterm>
96<para id="compile_et"><command>compile_et</command> is an error table compiler. It
97converts a table of error-code names and messages into a C source file
98suitable for use with the com_err library.</para>
99
100<indexterm zone="ch-system-e2fsprogs debugfs"><primary sortas="b-debugfs">debugfs</primary></indexterm>
101<para id="debugfs"><command>debugfs</command> is a file system debugger. It can be
102used to examine and change the state of an ext2 file system.</para>
103
104<indexterm zone="ch-system-e2fsprogs dumpe2fs"><primary sortas="b-dumpe2fs">dumpe2fs</primary></indexterm>
105<para id="dumpe2fs"><command>dumpe2fs</command> prints the super block and blocks group
106information for the file system present on a given device.</para>
107
108<indexterm zone="ch-system-e2fsprogs e2fsck"><primary sortas="b-e2fsck">e2fsck</primary></indexterm>
109<para id="e2fsck"><command>e2fsck</command> is used to check, and optionally repair,
110second extended (ext2) file systems, and also ext3 file systems.</para>
111
112<indexterm zone="ch-system-e2fsprogs e2image"><primary sortas="b-e2image">e2image</primary></indexterm>
113<para id="e2image"><command>e2image</command> is used to save critical ext2 file system
114data to a file.</para>
115
116<indexterm zone="ch-system-e2fsprogs e2label"><primary sortas="b-e2label">e2label</primary></indexterm>
117<para id="e2label"><command>e2label</command> will display or change the file system
118label on the ext2 file system present on a given device.</para>
119
120<indexterm zone="ch-system-e2fsprogs findfs"><primary sortas="b-findfs">findfs</primary></indexterm>
121<para id="findfs"><command>findfs</command> finds a file system by label or UUID (Universally Unique Identifier).</para>
122
123<indexterm zone="ch-system-e2fsprogs fsck"><primary sortas="b-fsck">fsck</primary></indexterm>
124<para id="fsck"><command>fsck</command> is used to check, and optionally repair,
125file systems. By default it checks the file systems listed in
126<filename>/etc/fstab</filename></para>
127
128<indexterm zone="ch-system-e2fsprogs logsave"><primary sortas="b-logsave">logsave</primary></indexterm>
129<para id="logsave"><command>logsave</command> saves the output of a command in a log file.</para>
130
131<indexterm zone="ch-system-e2fsprogs lsattr"><primary sortas="b-lsattr">lsattr</primary></indexterm>
132<para id="lsattr"><command>lsattr</command> lists the attributes of files on a second
133extended file system.</para>
134
135<indexterm zone="ch-system-e2fsprogs mk_cmds"><primary sortas="b-mk_cmds">mk_cmds</primary></indexterm>
136<para id="mk_cmds"><command>mk_cmds</command> converts a table of command names
137and help messages into a C source file suitable for use with the
138<filename>libss</filename> subsystem library.</para>
139
140<indexterm zone="ch-system-e2fsprogs mke2fs"><primary sortas="b-mke2fs">mke2fs</primary></indexterm>
141<para id="mke2fs"><command>mke2fs</command> is used to create a second extended
142file system on the given device.</para>
143
144<indexterm zone="ch-system-e2fsprogs mklost-found"><primary sortas="b-mklost+found">mklost+found</primary></indexterm>
145<para id="mklost-found"><command>mklost+found</command> is used to create a
146<filename>lost+found</filename> directory on a second extended file system.
147It pre-allocates disk blocks to this directory to lighten the task of e2fsck.</para>
148
149<indexterm zone="ch-system-e2fsprogs resize2fs"><primary sortas="b-resize2fs">resize2fs</primary></indexterm>
150<para id="resize2fs"><command>resize2fs</command> can be used to enlarge or shrink an
151ext2 file system.</para>
152
153<indexterm zone="ch-system-e2fsprogs tune2fs"><primary sortas="b-tune2fs">tune2fs</primary></indexterm>
154<para id="tune2fs"><command>tune2fs</command> is used adjust tunable file system
155parameters on a second extended file system.</para>
156
157<indexterm zone="ch-system-e2fsprogs uuidgen"><primary sortas="b-uuidgen">uuidgen</primary></indexterm>
158<para id="uuidgen"><command>uuidgen</command> creates new
159UUID. Each new UUID can reasonably be considered unique
160among all UUIDs created, on the local system and on other systems, in the
161past and in the future.</para>
162
163<indexterm zone="ch-system-e2fsprogs libblkid"><primary sortas="c-libblkid">libblkid</primary></indexterm>
164<para id="libblkid"><command>libblkid</command> contains routines for device
165identification and token extraction.</para>
166
167<indexterm zone="ch-system-e2fsprogs libcom_err"><primary sortas="c-libcom_err">libcom_err</primary></indexterm>
168<para id="libcom_err"><command>libcom_err</command> is the common error display routine.</para>
169
170<indexterm zone="ch-system-e2fsprogs libe2p"><primary sortas="c-libe2p">libe2p</primary></indexterm>
171<para id="libe2p"><command>libe2p</command> is used by dumpe2fs, chattr, and lsattr.</para>
172
173<indexterm zone="ch-system-e2fsprogs libext2fs"><primary sortas="c-libext2fs">libext2fs</primary></indexterm>
174<para id="libext2fs"><command>libext2fs</command> contains routines to enable user-level
175programs to manipulate an ext2 file system.</para>
176
177<indexterm zone="ch-system-e2fsprogs libss"><primary sortas="c-libss">libss</primary></indexterm>
178<para id="libss"><command>libss</command> is used by debugfs.</para>
179
180<indexterm zone="ch-system-e2fsprogs libuuid"><primary sortas="c-libuuid">libuuid</primary></indexterm>
181<para id="libuuid"><command>libuuid</command> contains routines for generating unique
182identifiers for objects that may be accessible beyond the local system.</para>
183
184</sect2>
185
186
187
188</sect1>
Note: See TracBrowser for help on using the repository browser.