如何解决“内核恐慌-不同步-试图杀死init" -不删除任何用户数据 [英] How to solve "Kernel panic - not syncing - Attempted to kill init" -- without erasing any user data

查看:788
本文介绍了如何解决“内核恐慌-不同步-试图杀死init" -不删除任何用户数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在我们的Ubuntu服务器中更新libc,但是它失败了,现在当我重新启动服务器时,我收到一条错误消息:

I was trying to update libc in our Ubuntu server but it failed and now when I reboot the server I get a error message:

内核崩溃-无法同步-试图杀死init!

Kernel panic - not syncing - Attempted to kill init!

它只是挂起.

该问题的解决方案是什么?该服务器可供10个人使用,因此我不想重新安装以擦除其数据.

What is the solution to this problem? The server is used by 10 people so I don't want to reinstall erasing their data.

推荐答案

如果完整消息是:

kernel panic - not syncing: Attempted to kill inint !
PId: 1, comm: init not tainted 2.6.32.-279-5.2.e16.x86_64 #1

那您应该先禁用selinux,然后再重新启动系统.

then you should have disabled selinux and after that you have rebooted the system.

更简单的方法是使用实​​时操作系统并重新启用它

The easier way is to use a live OS and re-enable it

vim /etc/selinux/config
    ...
    SELINUX=enforcing
    ...

第二种选择是通过添加 selinux = 0

Second choice is to disable selinux in the kernel arguments by adding selinux=0

vim /boot/grub/grub.conf
    ...
    kernel /boot/vmlinuz-2.4.20-selinux-2003040709 ro root=/dev/hda1 nousb selinux=0
    ...

source 内核恐慌-不同步:试图杀死inint!

这篇关于如何解决“内核恐慌-不同步-试图杀死init" -不删除任何用户数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆