Sometimes we will need to check the integrity of the file system and repair it if there is a problem. Technically, these checks need to be performed regularly to ensure that the file system is running correctly and without errors.
Linux has a powerful command called fsck that can be used to check and repair our server's file system.
To run this command on our server, we must use the Emergency Console, because it cannot be run if the partition is mounted, so we will restart our server and enter Recovery Mode:
Once inside, we will select the root option:
And enter the root password:
Once the password has been entered, the prompt will appear:
root@server:~#And we will run the following (depending on the image you have, it may be /dev/sda1 or /dev/sda2):
fsck /dev/sda1 -yThis will check the sda1 partition—which technically is the only one on Clouding servers. It will ask us whether we want to fix the corrupted inodes. After answering "Y" to everything, we restart:
reboot