If you want to run fsck on the system for file system check during next reboot,its very simple. Nope, you need not boot your system in recovery mode or via live cd. All you need to do is this:
- login as root
#su -
- Type the following command
#touch /forcefsck
- c) reboot the system
#reboot
During the reboot you can see that the system will go through FSCK on all partitions.
You can accomplish the same using shutdown command when you run it with following -F option as follows:
#shutdown -rF now



