Kernel panic on boot: run-init: /sbin/init: No such file or directory
I'm trying to reboot a system Ubuntu 14.04 LTS 64bit. When I boot up, it gives me the message found below.
Kernel panic on boot: run-init: /sbin/init: No such file or directory.
How can I fix it and restore the original sbin/init?
Solution 1:
Follow these steps:
-
Boot your linux distribution on USB or CD
-
Live boot your system on the USB or CD key
-
In command line type:
sudo mount /dev/sda1
or your dist partition/mnt
-
Run command:
sudo chroot /mnt
-
Then run:
sudo nano /etc/resolv.conf
Edit in file
nameserver 8.8.8.8
-
sudo apt-get install init
After reboot your system, It will work fine.