Sunday, May 10, 2009

Harddrive force check by fsck

You may want to force the file system check on your Linux hard drive. File system check routine usually scheduled and it is not recommended to change it. But if the power failure occurs and you want to be sure that everything is ok with the file system, you may do such trick. Give such command under `root':
# touch /forcefsck && reboot
It will create the empty file `forcefsck' and reboot your system. Just after restart it begin the check routine and automatically delete this file. Checked by openSuSE11.0 with ext3 file system.

No comments: