Home  >  Article  >  Operation and Maintenance  >  How to solve the error when centos starts?

How to solve the error when centos starts?

王林
王林Original
2020-04-03 14:29:233087browse

How to solve the error when centos starts?

Problem:

CentOS startup error "UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY"

As shown:

How to solve the error when centos starts?

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn