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:

  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: sudo mount /dev/sda1 or your dist partition /mnt

  4. Run command: sudo chroot /mnt

  5. Then run: sudo nano /etc/resolv.conf

    Edit in file

    nameserver 8.8.8.8
    
  6. sudo apt-get install init

After reboot your system, It will work fine.