How to solve the problem of unexpected when CentOS 6.5 starts after power off
This article introduces how to solve the problem of unexpected after CentOS 6.5 power outage, the content is very detailed, interested friends can refer to, hope to be helpful to you.
After a sudden power outage on the server, the error shown in the following figure occurs. It is determined that the file system is corrupted.
Solution:
1. Enter the password of the root user and enter enter
2. Execute the following command to repair the disk
Fsck-y / dev/mapper/VolGroup-lv_root
Note: I encountered "/ dev/mapper/VolGroup-lv_root", yours is not necessarily this Oh, pay attention to the picture above, the directory before the error message "unexpected inconsistency run fsck manully"
3. Restart
Reboot
Fsck
Fsck (file system check) is used to check and maintain inconsistent file systems. If the system is powered off or there is a problem with the disk, you can use the fsck command to check the file system.
Summary
The "Control-D" at the end of the error message restarts the system and is of no use at all
Search a lot of results said to execute the following command to check the partition of root users, do not need, look at the error message "unexpected inconsistency run fsck manully" before the directory on it.
Mount | grep'on /'
If the virtual machine of CentOS is installed in the system, the virtual machine will also have this problem!
There may be hard disk errors in multiple partitions or directories, so you may have similar errors after a reboot and need to continue to fix them.
On how to solve the CentOS 6.5 power outage after the start-up unexpected problem to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.