hi all,
i m using linux kernel 2.6.11.1,and initrd created from mkinitrd.
but when im bootingin the system,i get the below mentioned problems
Code:
Red hat Nash version starting
Mounted /prod filesystem
Mounting sysfs
Creating /dev
Starting udev
Creating root device
Mounting root filesystem
Switching to new root
exec of init (/sbin/init) failed !!!:2
umount /initrd/dev failed :2
Kernel panic - not syncing: Attempted to kill init !
is there any specific problem with exec of init,why does it fail.
my linuxrc script is as follows
Code:
#!/bin/nash
mount -t proc /proc /proc
setquiet
echo Mounted /proc filesystem
echo Mounting sysfs
mount -t sysfs none /sys
echo Creating /dev
mount -o mode=0755 -t tmpfs none /dev
mknod /dev/console c 5 1
mknod /dev/null c 1 3
mknod /dev/zero c 1 5
mknod /dev/hdc1 b 22 1
mkdir /dev/pts
mkdir /dev/shm
echo Starting udev
/sbin/udevstart
echo -n "/sbin/hotplug" > /proc/sys/kernel/hotplug
#echo "Loading jbd.ko module"
#insmod /lib/jbd.ko
#echo "Loading ext3.ko module"
#insmod /lib/ext3.ko
/sbin/udevstart
echo Creating root device
#mkrootdev /dev/root
umount /sys
umount /sys
echo Mounting root filesystem
mount -o defaults --ro -t ext2 /dev/hdc1 /sysroot
echo Mounted root xxxxxxxx
mount -t tmpfs --bind /dev /sysroot/dev
echo Switching to new root
switchroot /sysroot
echo switchroot successfull
umount /initrd/dev
~