e2fsk

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.

2 comments

  1. 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 😉

  2. This command is completely unharmfull. I will edit my post and add some more information.
    Thanks for your comment!

Leave a Reply

Your email address will not be published. Required fields are marked *