红联Linux门户
Linux帮助

Kernel panic - not syncing Attempted to kill init

发布时间:2015-10-15 15:24:48来源:linux网站作者:北雨南萍

将linux按单用户模式启动时,出现如下错误:
Kernel panic - not syncing: Attempted to kill init!

Kernel panic - not syncing Attempted to kill init
​查了一下,有两种可能:
一种情况是是grub的配置里面,root指向有问题,
还有一个可能是内核没有硬盘的驱动造成的


对于第一种情况,解决方法如下:
系统启动的时候,按下‘e’键进入grub编辑界面,编辑grub菜单,
选择“kernel /vmlinuz-2.6.23.1-42.fc8 ro root=/dev/vogroup00/logvol00 rhgb quiet” 一栏,
按‘e’键进入编辑,在末尾增加enforcing=0,
即:
kernel /vmlinuz-2.6.23.1-42.fc8 ro root=/dev/vogroup00/logvol00 rhgb quiet enforcing=0
按‘b’键继续引导,OK顺利前进。


对于第二种情况,解决方法如下:
按e进入如下界面

Kernel panic - not syncing Attempted to kill init
​​
移动到第2个选项,再按e进入编辑
在后面输入 selinux=0

Kernel panic - not syncing Attempted to kill init

按回车。
返回到原来界面,

Kernel panic - not syncing Attempted to kill init

再按b,就可以启动了。


小技巧:让Linux服务器在kernel panic时自动重启:http://www.linuxdiyf.com/linux/48.html

Linux kernel panic解决方法:http://www.linuxdiyf.com/linux/4739.html