The fsck command checks and repairs inconsistencies in file systems. If you run the fsck command without any options, it interactively asks for confirmation before making repairs. This command has four options:
Command and Option |
Description |
---|---|
fsck -m |
Checks whether a file system can be mounted |
fsck -y |
Assumes a yes response for all repairs |
fsck -n |
Assumes a no response for all repairs |
fsck -o p |
Noninteractively preens the file system, fixing all expected (innocuous) inconsistencies, but exits when a serious problem is encountered |