LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Kernel Panic - exec of init failed - HELP (https://www.linuxquestions.org/questions/linux-general-1/kernel-panic-exec-of-init-failed-help-718804/)

tlombardi 04-13-2009 11:19 AM

Kernel Panic - exec of init failed - HELP
 
Hellow guys,

I have a machine installed with centOS which is not booting and giving me a Kernel Panic as follows:

no fstab.sys, mounting internal defaults
Switching to new root and running init.
unmounting old /dev
unmounting old /proc
unmounting old /sys
exec of init (/sbin/init) failed!!!: No such file of directory
Kernel panic - not syncing: Attempted to kill init!

I have tried booting in linux rescue mode and trying "chroot /mnt/sysimage" but i am getting the error:

chroot: cannot run '/bin/sh' : No such file or directory

I am using the same linux installer CD i used to install the machine i think. At least uname -r command returns the same kernel version as i have installed.

Any ideas why this is happening or I could fix my system?

Regards,

Tonio

AlucardZero 04-13-2009 11:32 AM

Sounds like /bin and /sbin, at least, are gone. You'll have to boot from a live CD, mount the disk, and see what's there and what's not (don't have to chroot). You can copy the binary directories over from another installation, or you may have to reinstall. By the way, the error before the "Attempted to kill init" line is the real error.


All times are GMT -5. The time now is 12:48 PM.