UBUNTU系统开机报错处理

UBUNTU系统开机报错处理

问题描述:
UBUNTU系统开机报错处理
After restoring and rebooting, I get the error:
run-init: /sbin/init: No such file or directory
Kernel panic - not syncing: Attempted to kill init!
问题处理:
UBUNTU修复工具:
sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair

1- boot your linux distribution on USB or CD
2- live boot your system on the USB or CD key
3- in command line type: mount /dev/sda1(or your dist partition) /mnt
4- chroot /mnt
5- nano /etc/resolv.conf (in this file, put this line: nameserver 8.8.8.8)
6- apt-get install init

ldd是list, dynamic, dependencies的缩写, 意思是, 列出动态库依赖关系。
ldd /sbin/init使用命令查看依赖的库文件是否都存在