LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

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]
copy
Check without writing repairs
$ sudo fsck.ext4 -n [/dev/sdXY]
copy
Repair automatically
$ sudo fsck.ext4 -p [/dev/sdXY]
copy

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
copy
sudo dnf install e2fsprogs
copy
sudo pacman -S e2fsprogs
copy
sudo apk add e2fsprogs
copy
sudo zypper install e2fsprogs
copy
brew install e2fsprogs
copy
nix profile install nixpkgs#e2fsprogs
copy

SEE ALSO

e2fsck(8), fsck(8), fsck.ext2(8), tune2fs(8), dumpe2fs(8), mkfs.ext4(8)

RESOURCES

Copied to clipboard
Kai