Run the following command to recover the file system:# fsck -y
If the server has large disk capacity and the file system is seriously damaged, the file system recovery takes a long period of time. During the recovery, do not perform any operations on the server, otherwise, the file system cannot be recovered.
View information displayed on the screen. Check whether file systems in all partitions are available and the damaged file system is repaired. You need to run the fsck -y
command repeatedly until no error message is displayed and no repair is required.
Run the following command to synchronize files and restart the operating system.
# init 6