Home  >  Q&A  >  body text

linux-kernel - Ubuntu 开机提示kernel panic - not syncing: Attempted to kill init!

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

巴扎黑巴扎黑2739 days ago983

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-04-22 08:57:31

    I also know how to use a USB flash drive. Another method is to use Chroot. I thinkit 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

    reply
    0
  • Cancelreply