If your system crashes or locks up for some reason, the system won't have an
opportunity to cleanly unmount your filesystems. When this happens, the
filesystems are left in an inconsistent (unpredictable) state. When the system
reboots, the fsck program will detect that the filesystems were not
cleanly unmounted and will want to perform a consistency check of
filesystems listed in /etc/fstab.
An important note -- for a filesystem to be checked by fsck, it must
have a non-zero number in the "pass" field (the last field) in /etc/fstab.
Typically, the root filesystem is set to a passno of 1, specifying that it
should be checked first. All other filesystems that should be checked at startup time
should have a passno of 2 or higher.
Sometimes, you may find that after a reboot fsck is unable to
fully repair a partially damaged filesystem. In these instances, all you need
to do is to bring your system down to single-user mode and run
fsck manually, supplying the partition block device as an
argument. As fsck performs its filesystem repairs, it may ask you
whether to fix particular filesystem defects. In general, you should say
y (yes) to all these questions and allow fsck to do
it's thing.