If you only want to fsck the root filesystem (as asked), use tune2fs and adjust either "Maximum mount count" or "mount count". For example:
Code:
# df /dev/sda2
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 1511856 417368 1017688 30% /
# tune2fs -l /dev/sda2|grep -i mount\ count
Mount count: 16
Maximum mount count: 29
# tune2fs -C 47 /dev/sda1
tune2fs 1.42.6 (21-Sep-2012)
Setting current mount count to 47
# tune2fs -l /dev/sda1|grep -i mount\ count
Mount count: 47
Maximum mount count: 29
To quote from
man tune2fs:
Code:
-C mount-count
Set the number of times the filesystem has been mounted. If set to a
greater value than the max-mount-counts parameter set by the -c option,
e2fsck(8) will check the filesystem at the next reboot.
On an aside, I've been noticing that I have been getting default
Maximum mount count of "-1" (disabling reboot fsck's) on more recently buillt filesystems. I have not tried to track down why (ext4?).