The e2fsprogs package contains the utilities for handling the ext2 file system. It also supports the ext3 and ext4 journaling file systems.
Approximate build time: 4.4 SBU on a spinning disk, 1.2 SBU on an SSD
Required disk space: 94 MB
8.74.1. Installation of E2fsprogs
The e2fsprogs documentation recommends that the package be built in a subdirectory of the source tree:
mkdir -v buildcd build
Prepare e2fsprogs for compilation:
../configure --prefix=/usr \ --sysconfdir=/etc \ --enable-elf-shlibs \ --disable-libblkid \ --disable-libuuid \ --disable-uuidd \ --disable-fsck
The meaning of the configure options:
-
--enable-elf-shlibs -
This creates the shared libraries which some programs in this package use.
-
--disable-* -
This prevents e2fsprogs from building and installing the
libuuidandlibblkidlibraries, theuuidddaemon, and the fsck wrapper, as util-linux installs more recent versions.
Compile the package:
make
To run the tests, issue:
make check
One test, u_direct_io, is known to fail on some systems.
Install the package:
make install
Remove useless static libraries:
rm -fv /usr/lib/{libcom_err,libe2p,libext2fs,libss}.a This package installs a gzipped .info file but doesn't update the system-wide dir file. Unzip this file and then update the system dir file using the following commands:
gunzip -v /usr/share/info/libext2fs.info.gzinstall-info --dir-file=/usr/share/info/dir /usr/share/info/libext2fs.info
If desired, create and install some additional documentation by issuing the following commands:
makeinfo -o doc/com_err.info ../lib/et/com_err.texinfoinstall -v -m644 doc/com_err.info /usr/share/infoinstall-info --dir-file=/usr/share/info/dir /usr/share/info/com_err.info
8.74.2. Contents of E2fsprogs
Installed programs: badblocks, chattr, compile_et, debugfs, dumpe2fs, e2freefrag, e2fsck, e2image, e2label, e2mmpstatus, e2scrub, e2scrub_all, e2undo, e4crypt, e4defrag, filefrag, fsck.ext2, fsck.ext3, fsck.ext4, logsave, lsattr, mk_cmds, mke2fs, mkfs.ext2, mkfs.ext3, mkfs.ext4, mklost+found, resize2fs, and tune2fs
Installed libraries: libcom_err.so, libe2p.so, libext2fs.so, and libss.so
Installed directories: /usr/include/e2p, /usr/include/et, /usr/include/ext2fs, /usr/include/ss, /usr/lib/e2fsprogs, /usr/share/et, and /usr/share/ss
Short Descriptions
| Searches a device (usually a disk partition) for bad blocks | |
| Changes the attributes of files on an | |
| An error table compiler; it converts a table of error-code names and messages into a C source file suitable for use with the | |
| A file system debugger; it can be used to examine and change the state of an | |
| Prints the super block and blocks group information for the file system present on a given device | |
| Reports free space fragmentation information | |
| Is used to check, and optionally repair | |
| Is used to save critical | |
| Displays or changes the file system label on the | |
| Checks MMP status of an ext4 filesystem | |
| Checks the contents of a mounted ext[234] filesystem | |
| Checks all mounted ext[234] filesystems for errors | |
| Replays the undo log undo_log for an ext2/ext3/ext4 filesystem found on a device [This can be used to undo a failed operation by an e2fsprogs program.] | |
| Ext4 filesystem encryption utility | |
| Online defragmenter for ext4 filesystems | |
| Reports on how badly fragmented a particular file might be | |
| By default checks | |
| By default checks | |
| By default checks | |
| Saves the output of a command in a log file | |
| Lists the attributes of files on a second extended file system | |
| Converts a table of command names and help messages into a C source file suitable for use with the | |
| Creates an | |
| By default creates | |
| By default creates | |
| By default creates | |
| Used to create a | |
| Can be used to enlarge or shrink an | |
| Adjusts tunable file system parameters on an | |
| The common error display routine | |
| Used by dumpe2fs, chattr, and lsattr | |
| Contains routines to enable user-level programs to manipulate an | |
| Used by debugfs |