fsck: Check & Repair File System (UNIX, Linux)

fsck is used to check and repair file systems.  The filesystems can be a device name (e.g.  /dev/hdc1, /dev/sdb2) or a mount point (e.g.  /, /usr, /home).  Normally, the fsck program will try to handle filesystems on different physical disk drives in parallel to reduce the total amount of time needed to check all of the filesystems.

The exit code returned by fsck is the sum of the following conditions:
0 – No errors
1 – File system errors corrected
2 – System should be rebooted
4 – File system errors left uncorrected
8 – Operational error
16 – Usage or syntax error
32 – Fsck canceled by user request
128 – Shared library error

# fsck

You May Also Like

Leave a Reply?