胆战心惊-Kernel Panic -- not syncing: attempted to kill init

简介: 关闭了Redhat,重新启动,就遇到Kernel Panic -- not syncing: attempted to kill init,并有这样的提示:CPU has been disabled by guest os. Power off or resset。

关闭了Redhat,重新启动,就遇到Kernel Panic -- not syncing: attempted to kill init,并有这样的提示:CPU has been disabled by guest os. Power off or resset。

 

对于linux我还是不熟悉,但是按照windows一般的操作,进入bios,然后找新的启动设置,Redhat是装在虚拟机上,我设置了光驱,但是还是不行。

于是就google上找答案,我看到了一篇:http://hi.baidu.com/sleepycat2008/item/15e430ff699cc7733d198bcf,如下:

 

 

出现:Kernel Panic -- not syncing: attempted to kill init 然后就停那里不走了。在网上查了好多资料都不可以。从昨天到今天整了近20个小时,本来想还不如重做个系统得了,但是没有得到客户授权,还是不能乱搞滴~有一些方案是编辑grub,不过试了N种都不行。就决定放弃了。后来在csdn 还是51cto上看到一个方法最终可以了。其间的过程还真是一波三折..
   首先要进入系统,然后才能编辑/etc/sysctl.conf.那就找系统盘引导吧。不巧的是,这个品牌机的光驱是cd的,又没有多余的sata口,而机房只有centos 5.3 5.4 dvd 盘,根本没法驱动,汗~。后来意外发现debian 5.0的cd盘。反正都是同样的内核,死马当活马医吧。出现安装界面时,选择rescue mode ,然后一大堆的下一步之后终于看到命令行界面了嘿嘿 !
    不过令我纳闷的是vi命令不能用。。按理说debian应该是支持vi编辑命令的(主要我还是菜鸟)。后来只好用nano命令了。cd 到etc目录发现下边没有sysctl.conf这个文件。抱着试试的态度,nano sysctl.conf 新建一个吧,在里边输入 kelnel panic=30 kernel sysrq=1 保存退出。重启,终于跳出那个报错,看到了 久违的login界面啦,哈哈...这其中还有很多原理,我不懂,我知道自己还是菜鸟级别,想学好linux也不是一朝一夕的事。不过还要给自己庆祝下,终于把这个问题解决了。呵呵,就像国足3:0韩国,虽然只是一场比赛,但是那一刻足以让我们欢呼 YES!

 

这个就跟我想做的操作一样,我失败了,又google,终于找到了一个跟我出现问题一样的,我记得我关闭Redhat之前修改了selinux的参数,而下面这边跟我相吻合,按照其中的步骤,完美解决,只是过程中有几个快捷键的使用跟我不太一样。原文如下:

 

http://hehaibo.iteye.com/blog/749860

今天在装某个软件的时候,修改了selinux参数。修改selinux 的某个参数值为Disable。导致 linux系统不能启动。出现如下错误 Kernel panic -not syncing:Attempted to kill init!

 

后经过向群友请教和自己操作和互联网搜索,终于找到了解决办法。

在linux启动界面出现时,按f2进入如下界面:

 

 

 

按e进入如下界面

 移动到第2个选项,再按e进入编辑

 

在后面输入 selinux=0

按回车。

返回到原来界面,

再按b,就可以启动了。

 

相关文章
|
网络安全 Windows
解决adb报错“failed to create fdevent interrupt socketpair: Invalid argument“问题
解决adb报错“failed to create fdevent interrupt socketpair: Invalid argument“问题
293 0
解决adb报错“failed to create fdevent interrupt socketpair: Invalid argument“问题
成功解决An error ocurred while starting the kernel
成功解决An error ocurred while starting the kernel
|
C语言
解决Dev-C++ [Error] ‘for‘ loop initial declarations are only allowed in C99 or C11 mode
Dev-C++ [Error] ‘for‘ loop initial declarations are only allowed in C99 or C11 mode
495 0
解决Dev-C++ [Error] ‘for‘ loop initial declarations are only allowed in C99 or C11 mode
|
Linux 虚拟化
【Centos】 kernel panic-not syncing:VFS:Unable to mount root fs on unknown block
背景: VMware虚拟机下 原因: 在命令执行(update)途中,强制中断并直接运行poweroff命令关机。再次开机出现如图所示故障指示: 根据提示信息分析,可能因为执行更新命令未完成导致系统内核信息混乱。
3892 0