LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (http://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   exec of init (/sbin/init) failed!!! 2 (http://www.linuxquestions.org/questions/linux-kernel-70/exec-of-init-sbin-init-failed-2-a-517370/)

raklo 01-08-2007 05:42 AM

exec of init (/sbin/init) failed!!! 2
 
hi all,
when i m booting a kernel 2.6.11.1 based system,on grub bootloader,i m getting the error message
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 !

the linuxrc script,(inside the initrd image is )

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                                                                            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
~

as my partition(/dev/hdc1) has already been formatted with ext2 fs,i have disabled the insmod of ext3.ko and jbd.ko.

wht is the problem with the system

ANY INPUT IS APPRECIATED
regards
rakesh

iquest 05-28-2007 10:02 AM

mount error
 
when I try to boot our Linux ES 4 it does not seem to mount filesystems the error is as follows;

mount: error 2 mounting none
WARNING: cant access (null)
umount /initrd/dev failes
Kernel panic - not syncing: Attempted to kill init!


All times are GMT -5. The time now is 09:01 PM.