Using
-c 2 with tune2fs sets the number of mounts after which the filesystem will be checked by e2fsck to 2. It does not force a check on each re-boot.
I'm not sure what the windows chkdsk does but maybe using something like
e2fsck -c to check for bad blocks is the same thing.
In the Slackware boot script /etc/rc.d/rc.S the following is used to test for the check flag:
Code:
if [ -r /etc/forcefsck ]; then
FORCEFSCK="-f"
fi
The following is used to check the root file system:
Code:
/sbin/fsck $FORCEFSCK -C -a /
This is used to check the others:
Code:
/sbin/fsck $FORCEFSCK -C -R -A -a