fsck.ext4
Check an ext4 filesystem by calling e2fsck
TLDR
This command is a name of e2fsck used for ext4 filesystems.Check an ext4 device
$ sudo fsck.ext4 [/dev/sdXY]
Check without writing repairs$ sudo fsck.ext4 -n [/dev/sdXY]
Repair automatically$ sudo fsck.ext4 -p [/dev/sdXY]
SYNOPSIS
fsck.ext4 [options] device
DESCRIPTION
fsck.ext4 is the program fsck runs for an ext4 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.The ext2 name is fsck.ext2. Both names are the same program. fsck.exfat is a different tool, for exFAT.
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
