File System Check (LINUX)

The fsck tool checks and repairs file systems that may be become damaged.

fsck [ -sACVRTNP ] [ -t fstype ] filesys [ ... ] [--] [ fsck-specific-options ]

-a Automatically repair the file system without any questions
-r Interactively repair the filesystem (ask for confirmations).
-y For some filesystem-specific checkers, the -y option will cause the fs-specific fsck to always attempt to fix any detected filesystem corruption automatically.

-s Serialize fsck operations.
-t fslist Specifies the type(s) of file system to be checked.
A Walk through the /etc/fstab file and try to check all file systems in one run.
-C Display completion/progress bars for those filesystems checkers (currently only for ext2 and ext3) which support them.
-N Don't execute, just show what would be done.
-P When the -A flag is set, check the root filesystem in parallel with the other filesystems.
-R When checking all file systems with the -A flag, skip the root file system

No comments:

Recent Posts