kernel panic bin/sh no such file or dir
while booting my linux system I'm Getting ..
exec of init (/sbin/init) failed!!!: 2 umount /inited/dev failed: 2 kernel panic - not syncing: Attemped to kill init! and in rescue mode I checked all things seems to be ok ... fstab, grub.conf, initrd file. but when i do chroot /mnt/sysimage it gives chroot: cannot execute /bin/sh: No such file or directory I've also checked with reinstalling grub and making ld.so.cache again but doesn't work. pls suggest what are the possible solutions. |
Have you changed any kernel or initrds lately.. although not being able to chroot should partly cast aside this assumption.
This sounds like a fs error possibly.. how about that.. what fs is it.. ext3/4? Have you fsck -VC it? Was it working before.. because it sounds like something got trashed (or deleted).. but since you can't even chroot.. I suspect a fs error.. but I could be wrong. |
/mnt/sysimage is mainly used for installs, unless you have set it up that way.
/ is not where you think it is. So your line kernel somekernel root=somedrive is wrong, When the kernel is loaded, the system mounts / and then runs /sbin/init. Now it is finding what you call / but it is not /, because /sbin/init or /bin/sh cannot be found. Post your grub.conf and we can get you out of this. |
here is grub.conf
default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title Red Hat Enterprise Linux AS (2.6.9-42.ELsmp) root (hd0,0) kernel /vmlinuz-2.6.9-42.ELsmp ro root=LABEL=/1 rhgb quiet initrd /initrd-2.6.9-42.ELsmp.img title Red Hat Enterprise Linux AS-up (2.6.9-42.EL) root (hd0,0) kernel /vmlinuz-2.6.9-42.EL ro root=LABEL=/1 rhgb quiet initrd /initrd-2.6.9-42.EL.img I dont think there is something wrong in grub.conf because I've already matched with other servers. |
Quote:
|
But I m not able to understand why it is giving
chroot: cannot execute /bin/sh: No such file or directory is there any prob in bin/sh ?? |
checked with root=/dev/sda3 (my / drive) in grub.conf .. but still giving same error ..
I tried with making new initrd file but it says /lib/module .. no such file or dir. I tried copying bash also (may be the bash giving the error ) .. cp /usr/bin/bash /mnt/sysimage/bin/bash .. but was not useful. |
Is it looking for /bin/bash in the initrd? or when exactly does it ask for /bin/bash?
|
No I just googled it .. copying
It is just saying chroot cannot execute /bin/sh: No such file or directory while booting it gives exec of init (/sbin/init) failed!!!: 2 umount /inited/dev failed: 2 kernel panic - not syncing: Attemped to kill init! |
Quote:
In post #3, I pointed out Quote:
|
All times are GMT -5. The time now is 09:07 AM. |