LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

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

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
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.ext4(8), tune2fs(8), mkfs.ext4(8)

RESOURCES

Copied to clipboard
Kai