Name
fsck
Synopsis
fsck [options
] [filesystem
]..
.
System administration command. Call the filesystem checker for the appropriate system type to check and repair unmounted filesystems. If a filesystem is consistent, the number of files, number of blocks used, and number of blocks free are reported. If a filesystem is inconsistent, fsck prompts before each correction is attempted. fsck’s exit code can be interpreted as the sum of all conditions that apply:
- 1
Errors were found and corrected.
- 2
Reboot suggested.
- 4
Errors were found but not corrected.
- 8
fsck encountered an operational error.
- 16
fsck was called incorrectly.
- 128
A shared library error was detected.
Options
- --
Pass all subsequent options to filesystem-specific checker. All options that fsck doesn’t recognize will also be passed.
- -s
Serial mode. Check one filesystem at a time.
- -t fstype
Specify the filesystem type. Do not check filesystems of any other type.
- -A
Check all filesystems listed in /etc/fstab. The root filesystem is checked first.
- -C
Display completion (progress) bar.
- -N
Suppress normal execution; just display what would be done.
- -P
Meaningful only with -A: check root filesystem in parallel with other systems. This option is potentially dangerous.
- -R
Meaningful only with -A: check all filesystems listed in /etc/fstab except the root filesystem.
- -T
Suppress printing of title.
- -V
Verbose mode.
Get Linux in a Nutshell, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.