E2fsprogs

Last updated
e2fsprogs
Developer(s) Theodore Ts'o
Stable release
1.47.1 [1]   OOjs UI icon edit-ltr-progressive.svg / 20 May 2024;6 months ago (20 May 2024)
Repository
Written inC
Operating system Linux, Unix-like
Type File system utilities
License GPL
Website e2fsprogs.sourceforge.net

e2fsprogs (sometimes called the e2fs programs) is a set of utilities for maintaining the ext2, ext3 and ext4 file systems. Since those file systems are often the default for Linux distributions, it is commonly considered to be essential software.

Contents

List of utilities

Included with e2fsprogs, ordered by ASCIIbetical order, are:

badblocks
search a device for bad blocks
blkid
locate/print block device attributes
chattr
change file attributes on a Linux file system
debugfs
used to manually view or modify internal structures of the file system
dumpe2fs
which prints superblock and block group information.
e2freefrag
report free space fragmentation information
e2fsck
an fsck program that checks for and corrects inconsistencies
e2image
save critical ext2/ext3/ext4 filesystem metadata to a file
e2label
change the label on an ext2/ext3/ext4 filesystem
e2scrub
check a filesystem "online" (i.e. without having to unmount it) in the case where the filesystem is on an LVM LV
e2undo
replay an undo log for an ext2/ext3/ext4 filesystem
e4defrag
online defragmenter for ext4 filesystem
filefrag
report on file fragmentation
findfs
find a filesystem by label or UUID
findsuper
quick hacked up program to find ext2 superblocks
logsave
save the output of a command in a logfile
lsattr
list file attributes on a Linux second extended file system
mke2fs
used for creating ext2, ext3 and ext4 file systems
resize2fs
which can expand and shrink ext2, ext3 and ext4 file systems. On-line support was added in 2006. [2]
tune2fs
used to modify file system parameters

Many of these utilities are based on the libext2fs library.

Usage

Despite what its name might suggest, e2fsprogs works not only with ext2, but also with ext3 and ext4. Although ext3's journaling capability can reduce the need to use e2fsck, it is sometimes still necessary to help protect against kernel bugs or bad hardware.

fsck time/Inode Count(ext3 vs. ext4) E2fsck-uninit.svg
fsck time/Inode Count(ext3 vs. ext4)

With ext4 the e2fsck runtime should come down considerably, as can be seen from the graph.

As the userspace companion for the ext2, ext3, and ext4 drivers in the Linux kernel, the e2fsprogs are most commonly used with Linux. However, they have been ported to other systems, such as FreeBSD and Darwin.

See also

Related Research Articles

XFS is a high-performance 64-bit journaling file system created by Silicon Graphics, Inc (SGI) in 1993. It was the default file system in SGI's IRIX operating system starting with its version 5.3. XFS was ported to the Linux kernel in 2001; as of June 2014, XFS is supported by most Linux distributions; Red Hat Enterprise Linux uses it as its default file system.

ReiserFS is a general-purpose, journaling file system initially designed and implemented by a team at Namesys led by Hans Reiser and licensed under GPLv2. Introduced in version 2.4.1 of the Linux kernel, it was the first journaling file system to be included in the standard kernel. ReiserFS was the default file system in Novell's SUSE Linux Enterprise until Novell decided to move to ext3 for future releases on October 12, 2006.

ext2, or second extended file system, is a file system for the Linux kernel. It was initially designed by French software developer Rémy Card as a replacement for the extended file system (ext). Having been designed according to the same principles as the Berkeley Fast File System from BSD, it was the first commercial-grade filesystem for Linux.

ext3, or third extended filesystem, is a journaled file system that is commonly used with the Linux kernel. It used to be the default file system for many popular Linux distributions but generally has been supplanted by its successor version ext4. The main advantage of ext3 over its predecessor, ext2, is journaling, which improves reliability and eliminates the need to check the file system after an improper, a.k.a. unclean, shutdown.

Journaled File System (JFS) is a 64-bit journaling file system created by IBM. There are versions for AIX, OS/2, eComStation, ArcaOS and Linux operating systems. The latter is available as free software under the terms of the GNU General Public License (GPL). HP-UX has another, different filesystem named JFS that is actually an OEM version of Veritas Software's VxFS.

fsck System tool for checking the consistency of a file system

The system utility fsck is a tool for checking the consistency of a file system in Unix and Unix-like operating systems, such as Linux, macOS, and FreeBSD. The equivalent programs on MS-DOS and Microsoft Windows are CHKDSK, SFC, and SCANDISK.

In the maintenance of file systems, defragmentation is a process that reduces the degree of fragmentation. It does this by physically organizing the contents of the mass storage device used to store files into the smallest number of contiguous regions. It also attempts to create larger regions of free space using compaction to impede the return of fragmentation. Some defragmentation utilities try to keep smaller files within a single directory together, as they are often accessed in sequence.

fstab is a system file commonly found in the directory /etc on Unix and Unix-like computer systems. In Linux, it is part of the util-linux package. The fstab file typically lists all available disk partitions and other types of file systems and data sources that may not necessarily be disk-based, and indicates how they are to be initialized or otherwise integrated into the larger file system structure.

<span class="mw-page-title-main">Theodore Ts'o</span> American computer scientist, free software developer

Theodore Yue Tak Ts'o is an American software engineer mainly known for his contributions to the Linux kernel, in particular his contributions to file systems. He is the secondary developer and maintainer of e2fsprogs, the userspace utilities for the ext2, ext3, and ext4 filesystems, and is a maintainer for the ext4 file system.

<span class="mw-page-title-main">PhotoRec</span> Open source data recovery software

PhotoRec is a free and open-source utility software for data recovery with text-based user interface using data carving techniques, designed to recover lost files from various digital camera memory, hard disk and CD-ROM. It can recover the files with more than 480 file extensions . It is also possible to add custom file signature to detect less known files.

The following tables compare general and technical information for a number of file systems.

ext4 is a journaling file system for Linux, developed as the successor to ext3.

chattr is the command in Linux that allows a user to set certain attributes of a file. lsattr is the command that displays the attributes of a file.

dm-crypt is a transparent block device encryption subsystem in Linux kernel versions 2.6 and later and in DragonFly BSD. It is part of the device mapper (dm) infrastructure, and uses cryptographic routines from the kernel's Crypto API. Unlike its predecessor cryptoloop, dm-crypt was designed to support advanced modes of operation, such as XTS, LRW and ESSIV, in order to avoid watermarking attacks. In addition to that, dm-crypt addresses some reliability problems of cryptoloop.

Btrfs is a computer storage format that combines a file system based on the copy-on-write (COW) principle with a logical volume manager, developed together. It was created by Chris Mason in 2007 for use in Linux, and since November 2013, the file system's on-disk format has been declared stable in the Linux kernel.

In computer operating systems, mkfs is a command used to format a block storage device with a specific file system. The command is part of Unix and Unix-like operating systems. In Unix, a block storage device must be formatted with a file system before it can be mounted and accessed through the operating system's filesystem hierarchy.

Tux3 is an open-source versioning filesystem created by Daniel Phillips. He introduced the filesystem as a public replacement for his Tux2 filesystem which had encountered licensing issues due to the filing of several patents. Phillips had previously created the Htree directory indexing system which eventually became an official feature of ext3. The technical details of Tux3 were first publicized in an email on 23 July 2008.

<span class="mw-page-title-main">Partclone</span> Partition clone and restore tool

Partclone is a partition clone and restore tool. It provides utilities to back up and restore partitions and is designed for higher compatibility of the file system library. It is developed by the NCHC Free Software Labs in Taiwan. It is the default backup application in Clonezilla, FOG, Redo Rescue and Rescuezilla which is simply a front end to partclone. It supports many file systems and has good performance, as it skips portions of the file system marked as free space.

Ext2Fsd is a free Installable File System driver written in C for the Microsoft Windows operating system family. It facilitates read and write access to the ext2, ext3 and ext4 file systems.

<span class="mw-page-title-main">Partition-Saving</span> Disk imaging utility

Partition-Saving is a disk imaging utility for Linux, Windows and DOS environments that can save disk partitions in one of the several supported disk image formats.

References

  1. "Update release notes, etc., for the 1.47.1 release". 20 May 2024. Retrieved 21 May 2024.
  2. "Add support for on-line resizing to resize2fs · tytso/E2fsprogs@bf69235". GitHub .