Forcing Filesystem Check Ubuntu

So tonight my long download finally completed, and I had about 36 updates that were pending to go through, so naturally I just tried to do an apt-get update/upgrade, and wouldn't you know about half way through the process, I got a failure to commit data to disk. And during restart I got an error that the disk was dirty.

Of all the things! So what I recommend people do, when you manually shutdown the machine, force the machine to fsck! Run the following from terminal:
sudo touch /forcefsck
This will place an empty file in / called forcefsk and restart your computer normally. This will force the system to fsck the disk during startup.

0 comments: