Monday, 8 June 2009

Forcing fsck on reboot in Ubuntu

Recently I run into problem in my Ubuntu 9.04. As I experienced some strange behaviour of my free-disk-space counter, I wasn't sure if everything is going okay in my system. Naturally you wan to do disk check in this kind of situatins.. but how to do that correctly in Ubuntu?
Remember that that disk check that is triggered sometimes on system boot? But how to trigger that manually? The answer is:

sudo touch /forcefsck
sudo reboot