Linux

fsck

DestructiveCheck filesystem

fsck /dev/sdX

Checks/repairs a filesystem (must be unmounted).

Examples

  • fsck -y /dev/sdb1Auto-answer yes during repair

Syntax

fsck [-y] <device>

Before you run it

Running on a mounted FS can corrupt data; unmount first.

Used when you see

Linux disk health check
3
fsck the filesystem while unmounted
See the whole flow →

Related commands

Check it once more before you run it

Some commands cannot be undone if one flag is wrong. An on-device reference works with no connection. Free to install, no ads.

Get it free on the App Store