Linux fsck Command
Linux Command大全
The Linux fsck (full English spelling: file system check) command is used to check and repair Linux file systems and can check and repair one or more Linux file systems at the same time.
Syntax
fsck [-sACVRP] [-t fstype] [--] [fsck-options] filesys [...]
Parameters :
- filesys : device name (eg./dev/sda1) Mount point (eg. / or /usr)
- -t : Specify the type of the file system, if in /etc/If it is already defined in fstab or supported by the kernel itself, this parameter does not need to be added
- -s : Execute fsck instructions sequentially to check
- -A : For/etc/Check all partitions listed in fstab
- -C : Display the complete check progress
- -d : Print e2debug results of fsck
- -p : At the same time, there are -When A condition is met, multiple fsck checks are executed together
- -R : At the same time, there are -Omit when A condition is met / Do not check
- -V : Detailed display mode
- -a : If there is an error in the check, it will be automatically repaired
- -r : If there is an error in the check, the user will answer whether to repair
Online Examples
Check the msdos file system /dev/hda5 Is it normal? If there is an exception, it will be automatically repaired:
fsck -t msdos -a /dev/hda5
Note This command can be combined with /etc/For a better understanding, refer to the inter-references of fstab.
Linux Command大全