Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Linux fsck Command

Linux fsck Command

Linux Command Reference Linux Command Reference

The Linux fsck (short for file system check) command is used to check and repair Linux file systems; it can check one or more file systems at the same time.

Syntax

fsck [-sACVRP] [-t fstype] [--] [fsck-options] filesys [...]

**Parameters **:

Example

Check whether the msdos file system on /dev/hda5 is normal, and automatically repair it if there are problems:

fsck -t msdos -a /dev/hda5

**Note **This command can be understood by referring to /etc/fstab.

Linux Command Reference Linux Command Reference