Linux fsck command
Linux fsck command is used to check and repair the Linux file system, you can check one or more Linux file systems simultaneously.
grammar
fsck [-sACVRP] [-t fstype] [--] [fsck-options] filesys [...]
Parameters:
- filesys:. device name (eg./dev/sda1),mount point (eg / or / usr)
- -t: given type of file system, or kernel itself has been defined to support if the / etc / fstab is not required in this parameter plus
- -s: sequentially one by one to check the fsck command execution
- -A: For / etc fstab in partition / listed all the check-ups
- -C: Display a complete check progress
- -d: print debug result of e2fsck
- -p: -A condition at the same time there is, there are multiple fsck checks performed together
- -R: -A Condition when both have omitted / not checked
- -V: Detailed display mode
- -a: If the check is wrong automatically repair
- -r: Check if the answer is wrong by the user repair
Examples
Check msdos file system / dev / hda5 is normal, if there is an exception automatically fixes:
fsck -t msdos -a /dev/hda5
Note that this command can be used to understand and / etc / fstab cross-referencing operation.