Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run-init: /sbin/init: No such file or directory Kernel panic - not syncing: Attempted to kill init! #509

Closed
nelteren opened this issue Nov 15, 2014 · 8 comments

Comments

@nelteren
Copy link

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!

And cannot proceed.
On the original host /sbin/init is also missing and other debian hosts it is also missing. Booting is no problem then.
What went wrong?

I use I use Relax-and-Recover 1.16 / Git
Linux s03.net-products.nl 2.6.32-5-amd64 #1 SMP Sat May 5 01:12:59 UTC 2012 x86_64 GNU/Linux

Local.conf
OUTPUT=ISO
BACKUP=NETFS
BACKUP_URL=nfs://xxx.xxx.xxx.xxx/rear/s03.net-products.nl/odd

(I have a destination for odd and even days)

os.conf
OS_VENDOR='Debian'
OS_VERSION='4.3.5-4'

@gdha gdha self-assigned this Nov 16, 2014
@gdha
Copy link
Member

gdha commented Nov 17, 2014

could it be that it was required to rebuild the initial ramdisk? And, maybe that did not happen - check the recover log file (after booting rear recover ISO image)

@gdha
Copy link
Member

gdha commented Feb 6, 2015

@nelteren have a look at http://ubuntuforums.org/showthread.php?t=2163328 - might be your problem

@jsmeix
Copy link
Member

jsmeix commented Sep 21, 2016

No feedback since more than one year => closing it.
If needed it can be reopened.

@jsmeix jsmeix closed this as completed Sep 21, 2016
@jeankoffi543
Copy link

jeankoffi543 commented Apr 19, 2017

First thing to do is:
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

after reboot your system. It will work fine. Enjoy

@gdha
Copy link
Member

gdha commented Apr 19, 2017

@jeankoffi543 So init was not present? Why was it not restored?

@jeankoffi543
Copy link

@gdha i don't know why. But i know that init depends of insserv, update can remove insserv.
There is many problem to this error. Reinstall init would solve this.

@jsmeix
Copy link
Member

jsmeix commented Jul 18, 2017

Since ReaR v 2.1 the new default.conf setting
REBUILD_INITRAMFS="yes"
rebuilds the initramfs/initrd in any case during "rear recover"
in the recreated system to be on the safe side.
I guess that avoids issues as this one.

@karnasoneji
Copy link

apt-get install init

Solved the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants