fsck.ext2
Check an ext2 filesystem by calling e2fsck
TLDR
This command is a name of e2fsck used for ext2 filesystems.Check an ext2 device
$ sudo fsck.ext2 [/dev/sdXY]
Check without writing repairs$ sudo fsck.ext2 -n [/dev/sdXY]
Repair automatically$ sudo fsck.ext2 -p [/dev/sdXY]
SYNOPSIS
fsck.ext2 [options] device
DESCRIPTION
fsck.ext2 is the program fsck runs for an ext2 filesystem. On a normal e2fsprogs install it is a link to e2fsck, and it accepts the same options. Unmount the filesystem first, or check it read-only.There is a separate page for the ext4 name, fsck.ext4. Both names are the same program.
INSTALL
sudo apt install e2fsprogs
sudo dnf install e2fsprogs
sudo pacman -S e2fsprogs
sudo apk add e2fsprogs
sudo zypper install e2fsprogs
brew install e2fsprogs
nix profile install nixpkgs#e2fsprogs
