fsck – Is Forcing fsck Safe?


My ubuntu system just froze, and I was forced to run the REIUSB commands. Now, in windows, you can run chdsk. I've read about "touch /forcefsck", but I have also read that's is dangerous to check a mounted filesystem.

Will "touch /forcefsck" check the disks mounted? Is "touch /forcefsck" safe? Will it automatically fix the errors? Where will my corrupt file go?

Thanks in advance!

Best Answer

touch /forcefsck simply creates a file /forcefsck. This file will cause the system to run fsck on the next reboot before the filesystem is mounted. Its similar to when you try to run chkdsk in Windows and it says it can't but it will do it on the next reboot.

So its pretty safe and with any luck it will fix your problem.