linux开机提示kernel  panic - not  syncing attempted to kill init

    原文件忘记在那里看见的了,所以自己按照自己解决问题的方式记录下来了。

    在更换硬盘模式或者是更换主板后开机提示:

mount failed:No such file or directory kernel panic - not syncing: Attempted to kill init!

    用一张linux(我用的是contos 5.3)系统盘进入rescue模式,进入后在

sh-3.2#: chroot /mnt/sysp_w_picpath

sh-3-2#: cp /boot/initrd-2.6.18-238.12.1.el5.img /tmp

sh-3-2#: rm  -f /boot/initrd-2.6.18-238.12.1.el5.img

sh-3-2#: mkinitrd -v /boot/initrd-2.6.18-238.12.1.el5.img  2.6.18-238.12.1.el5

sh-3-2#: reboot

如果要查看系统版本:请使用uname -a或者是 uname -r。