If you are seeing error messages in the syslog or you suspect there are problems with the file system you can check it.

To start a filesystem check and correct all errors automatically run the following command:

This should be done when the partitions are not mounted, otherwise it can lead to data loss.