Disk and Storage

fsck

Checks and repairs filesystems.

fsck runs filesystem-specific checkers to find and repair consistency problems.

Syntax
fsck [options] device

Arguments explained

  • Options adjust output or behavior.
  • Arguments name the files, services, hosts, or values the command should work with.

Common examples

Check a partition
sudo fsck /dev/sdb1

Checks the filesystem on /dev/sdb1.

Force check
sudo fsck -f /dev/sdb1

Forces a check on supported filesystems.

fsck Command
FieldDetails
Commandfsck
CategoryDisk and Storage
Primary useChecks and repairs filesystems.
Syntaxfsck [options] device