e2fsck
e2fsck is a filesystem check and repair utility for the ext2, ext3, and ext4 filesystems. It is part of the e2fsprogs package and is used to detect and correct inconsistencies in filesystem metadata, including inodes, block bitmaps, directory structures, and link counts. The tool helps ensure filesystem integrity after events such as improper shutdowns, crashes, or disk errors. It can operate in a purely diagnostic mode or perform repairs as needed, often by writing changes back to the filesystem.
Operationally, e2fsck examines the filesystem’s metadata and data structures to identify corruption or inconsistencies. It can
Typical usage involves invoking e2fsck on a device or image, with common options such as -p to
e2fsck is closely related to fsck, serving as the ext family’s specific checker within the broader file-system