%general-entities; ]> E2fsprogs-&e2fsprogs-version; E2fsprogs <para>The E2fsprogs package contains the utilities for handling the <systemitem class="filesystem">ext2</systemitem> file system. It also supports the <systemitem class="filesystem">ext3</systemitem> and <systemitem class="filesystem">ext4</systemitem> journaling file systems.</para> </sect2> &env-target; <sect2 role="installation"> <title>Installation of E2fsprogs The E2fsprogs documentation recommends that the package be built in a subdirectory of the source tree: mkdir -v build cd build Prepare E2fsprogs for compilation: PKG_CONFIG=true ../configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \ --prefix=/usr --with-root-prefix="" \ --enable-elf-shlibs --disable-libblkid \ --disable-libuuid --disable-fsck --disable-uuidd The meaning of the configure options: --with-root-prefix="" Certain programs (such as the e2fsck program) are considered essential programs. When, for example, /usr is not mounted, these programs still need to be available. They belong in directories like /lib and /sbin. If this option is not passed to E2fsprogs' configure, the programs are installed into the /usr directory. --enable-elf-shlibs This creates the shared libraries which some programs in this package use. --disable-evms This disables the building of the Enterprise Volume Management System (EVMS) plugin. This plugin is not up-to-date with the latest EVMS internal interfaces and EVMS is not installed as part of a base CLFS system, so the plugin is not required. See the EVMS website at for more information regarding EVMS. Compile the package: make Install the binaries, documentation, and shared libraries: make DESTDIR=${CLFS} install Install the static libraries and headers: make DESTDIR=${CLFS} install-libs Remove absolute paths from the link destinations: rm -v ${CLFS}/usr/lib/lib{com_err,e2p,ext2fs,ss}.so ln -sv ../../lib/libcom_err.so.2 ${CLFS}/usr/lib/libcom_err.so ln -sv ../../lib/libe2p.so.2 ${CLFS}/usr/lib/libe2p.so ln -sv ../../lib/libext2fs.so.2 ${CLFS}/usr/lib/libext2fs.so ln -sv ../../lib/libss.so.2 ${CLFS}/usr/lib/libss.so Contents of E2fsprogs Installed programs Installed libraries badblocks, blkid, chattr, compile_et, debugfs, dumpe2fs, e2fsck, e2image, e2label, filefrag, findfs, fsck, fsck.ext2, fsck.ext3, logsave, lsattr, mk_cmds, mke2fs, mkfs.ext2, mkfs.ext3, mklost+found, resize2fs, and tune2fs. libcom_err.[a,so], libe2p.[a,so], libext2fs.[a,so], and libss.[a,so] Short Descriptions badblocks Searches a device (usually a disk partition) for bad blocks badblocks blkid A command line utility to locate and print block device attributes blkid chattr Changes the attributes of files on an ext2 file system; it also changes ext3 file systems, the journaling version of ext2 file systems chattr compile_et An error table compiler; it converts a table of error-code names and messages into a C source file suitable for use with the com_err library compile_et debugfs A file system debugger; it can be used to examine and change the state of an ext2 file system debugfs dumpe2fs Prints the super block and blocks group information for the file system present on a given device dumpe2fs e2fsck Is used to check, and optionally repair ext2 file systems and ext3 file systems e2fsck e2image Is used to save critical ext2 file system data to a file e2image e2label Displays or changes the file system label on the ext2 file system present on a given device e2label filefrag Reports on how badly fragmented a particular file might be filefrag findfs Finds a file system by label or Universally Unique Identifier (UUID) findfs fsck Is used to check, and optionally repair, file systems fsck fsck.ext2 By default checks ext2 file systems fsck.ext2 fsck.ext3 By default checks ext3 file systems fsck.ext3 logsave Saves the output of a command in a log file logsave lsattr Lists the attributes of files on a second extended file system lsattr mk_cmds Converts a table of command names and help messages into a C source file suitable for use with the libss subsystem library mk_cmds mke2fs Creates an ext2 or ext3 file system on the given device mke2fs mkfs.ext2 By default creates ext2 file systems mkfs.ext2 mkfs.ext3 By default creates ext3 file systems mkfs.ext3 mklost+found Used to create a lost+found directory on an ext2 file system; it pre-allocates disk blocks to this directory to lighten the task of e2fsck mklost+found resize2fs Can be used to enlarge or shrink an ext2 file system resize2fs tune2fs Adjusts tunable file system parameters on an ext2 file system tune2fs libblkid Contains routines for device identification and token extraction libblkid libcom_err The common error display routine libcom_err libe2p Used by dumpe2fs, chattr, and lsattr libe2p libext2fs Contains routines to enable user-level programs to manipulate an ext2 file system libext2fs libss Used by debugfs libss libuuid Contains routines for generating unique identifiers for objects that may be accessible beyond the local system libuuid