linux-kernel - Ubuntu 开机提示kernel panic - not syncing: Attempted to kill init!
巴扎黑
巴扎黑 2017-04-22 08:55:31
0
1
960

笔记本本来安装的 ubuntu 14.04 昨天提示可以升级到15.04,然后去通过网络升级。升级完成了三分之二的时候,卡住了,等了一会断电重启,结果悲剧了。
再开机 报错kernel panic - not syncing: Attempted to kill init!。
进不去系统,通过Upan进入安装ubuntu的时候,提示现在系统是ubuntu 15.04。求高手指点有没有什么方法能修复系统。而不是重装系统。如果重装的话,能保留原系统安装的软件和lamp环境吗?
附带一个centos 出现类似问题的解决方法。

巴扎黑
巴扎黑

reply all (1)
Ty80

I also know how to use a USB flash drive. Another method is to use Chroot. Ithinkit should be repairable in this situation. Similar kernel issues have been fixed before:

After the USB flash drive enters the system, you can try:

sudo mount /dev/sda2 /mnt sudo mount --bind /proc /mnt/proc sudo mount --bind /sys /mnt/sys sudo mount --bind /dev /mnt/dev

The network seems to be set up like this

cp -L /etc/resolv.conf /mnt/etc/resolv.conf

Finally

sudo chroot /mnt

Sda2 should be changed to the same disk as Ubuntu.

Then again

sudo apt-get update sudo apt-get upgrade

Try it

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!