Problem:
CentOS startup error "UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY"
As shown:
Solution:
1. Enter the root user password and press Enter, the command line prompt appears
2. Detect and repair disk /dev/mapper/vg_centos6.9 -root, enter the command:
# fsck -y /dev/mapper/vg_centos6.9-root
The -y option means to automatically enter yes when detecting each file
3. Reboot and restart the server after it is completely repaired
Note: Sometimes it may be necessary to repair multiple times according to the prompt information, and when using the fsck command to scan the file system, it must be performed in single-user mode or repair mode.
Recommended related tutorials: centos tutorial
The above is the detailed content of How to solve the error when centos starts?. For more information, please follow other related articles on the PHP Chinese website!