Kernel panic on boot: run-init: /sbin/init: No such file or directory
11,085
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.
Related videos on Youtube
Author by
Anton
Updated on September 18, 2022Comments
-
Anton almost 2 years
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?
-
ShiftyF97 about 3 yearsIt is not possible (anymore) to install the init package, however, I just had to manually link init to
upstart
if that's still on your system. In a chrooted environment:ln -s /sbin/upstart /sbin/init
andln -s /lib/sysvinit/telinit /sbin/telinit