Function: Checks and repairs Linux file systems. It can check one or more Linux file systems simultaneously.
Syntax: fsck [-sACVRP] [-t fstype] [–] [fsck-options] filesys […]
Options:
-t : Specifies the file system type. This parameter is not required if the type is already defined in /etc/fstab or supported by the kernel.
-s : Executes fsck commands sequentially, one after another.
-A : Checks all partitions listed in /etc/fstab.
-C : Displays the complete progress of the check.
-d : Prints the debug results of e2fsck.
-p : When used with -A, allows multiple fsck checks to run concurrently.
-R : When used with -A, skips checking the root (/) partition.
-V : Enables verbose output mode.
-a : Automatically repairs errors found during the check.
-r : Prompts the user for confirmation before repairing any errors found.