fsck(file system check)
fsck(file system check)功能说明:检查文件系统并尝试修复错误。
语 法:fsck [-aANPrRsTV][-t <文件系统类型>][文件系统...]
补充说明:当文件系统发生错误四化,可用fsck指令尝试加以修复。
参 数:
-a 自动修复文件系统,不询问任何问题。
-A 依照/etc/fstab配置文件的内容,检查文件内所列的全部文件系统。
-N 不执行指令,仅列出实际执行会进行的动作。
-P 当搭配"-A"参数使用时,则会同时检查所有的文件系统。
-r 采用互动模式,在执行修复时询问问题,让用户得以确认并决定处理方式。
-R 当搭配"-A"参数使用时,则会略过/目录的文件系统不予检查。
-s 依序执行检查作业,而非同时执行。
-t<文件系统类型> 指定要检查的文件系统类型。
-T 执行fsck指令时,不显示标题信息。
-V 显示指令执行过程。
fsck
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:
Errors were found and corrected.
Reboot suggested.
Errors were found but not corrected.
fsck encountered an operational error.
fsck was called incorrectly.
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.
Serial mode. Check one filesystem at a time.
Specify the filesystem type. Do not check filesystems of any other type.
Check all filesystems listed in /etc/fstab. The root filesystem is checked first.
Display completion (progress) bar.
Suppress normal execution; just display what would be done.
Meaningful only with -A: check root filesystem in parallel with other systems. This option is potentially dangerous.
Meaningful only with -A: check all filesystems listed in /etc/fstab except the root filesystem.
Suppress printing of title.
Verbose mode.