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
Related commands
- chkdskCheck/repair a disk
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