故障现象:今天早上一开机,就碰到此提示:kernel panic - not syncing: Attempted to kill init,大概意思是内核不同步:试图杀死init进程。
系统环境:Centos5.9。
后来在网上查了下,可能与selinux有关,我想了想,昨天好像配置了mysql好像是需要关闭selinux,然后我就从光盘引导,按F5进入rescue mode,中间一路OK,有个continue最后进入命令行后,要改变下镜像文件位置:
chroot /mnt/sysp_w_picpath
才可以进入shell状态,使用命令。
我先查了selinux的配置文件:
[root@server ~]# grep -i "selinux=" /etc/selinux/config
# SELINUX= can take one of these three values:
SELINUX=enforcing
我用sed将SELINUX值更改为disable:
[root@server ~]# sed -i 's#SELINUX=enforcing#SELINUX=disable#g' /etc/selinux/config
[root@server ~]# grep -i "selinux=" /etc/selinux/config
# SELINUX= can take one of these three values:
SELINUX=disable
重启系统后,正常启动,故障解除!!!!
转载于:https://blog.51cto.com/tianbright/1312212