Linux启动报错UNEXPECTED INCONSISTENCY解决方法(转)

标签:
杂谈 |
将VMware虚拟机文件拷贝到新机器上后,启动CentOS时报错“unexpected inconsistency;RUN fsck MANUALLY”,本文主要介绍CentOS等Linux系统启动时候出现该错误的解决方法。
http://lovesoo.org/wp-content/uploads/2012/08/linux1.png
1.
首先在命令行输入(可选)
mount | grep ''on /''
得到root用户所在分区/dev/your_partition
2.
然后在命令行输入
fsck -y /dev/root
#fsck -y /dev/your_partition
#检测并修复磁盘/dev/root,-y 选项指定检测每个文件是自动输入yes
3.
输入reboot进行重启,仍然报错
4.
继续在命令行输入修复命令
fsck -y /dev/sda1
5.
重启后,继续报错Starting
auditd: FAILED
网上搜索的解释是“The auditd daemon will fail to start if its logfile is readable by anyone but root”,即由于root没有写auditd日志文件的权限,导致auditd启动失败
输入如下命令:
chown root.root /var/log/audit/audit.log
chmod 600 /var/log/audit/audit.log
6.
重启,成功进入系统