To start a ‘fsck’ (for Windows users: a ‘checkdisk’ for Linux), you may execute the following command in your shell:
touch /forcefsck
fsck will run at next boot.
This command creates a file called ‘forcefsck’ in the root folder (‘/’). At boot time, fsck checks whether this file exists. When it does, fsck checks the harddisk.
It would be a great benefit if you’d explain the code a bit. Cause the “force” word in the code makes me think that I am executing something which may be harmful to my system 😉
This command is completely unharmfull. I will edit my post and add some more information.
Thanks for your comment!