Rajeev Bansal wrote on 06-12-07 09:22: > Hi All, > > I am trying to boot up 2.6.20-15 Kernel ( Ubuntu Kernel) using my > custom initramfs. But I am getting Kernel Panic when I boot using my > Init script. I am mentioning my init script below. I have followed the > FC7 init script, I really don't know many things which are being used in > that. > > In this Init script everything goes fie till I execute setuproot, while > running setuproot it complains; > > setuproot: moving /dev failed: No such file or directory > no fstab.sys, mounting internal defaults > setuproot: error mounting /proc: No such file or directory > setuproot: error mounting /sys: No such file or directory > > And it gives Kernel Panic after executing switch_root, I am not sure why > switch_root is not executing the /sbin/init, is it due to it couldn't > find it? > 2 > Kernel Panic message: > > [ 47.972305] kjournald starting. Commit interval 5 seconds > [ 48.037871] EXT3-fs: mounted filesystem with ordered data mode. > [ 48.110173] Kernel panic - not syncing: Attempted to kill init! > > I really don't know its a problem of busybox or in my Init script. > > #!/bin/nash > > mount -t proc /proc /proc > setquiet > echo Mounting proc filesystem > echo Mounting sysfs filesystem > mount -t sysfs /sys /sys > echo Creating /dev > mount -o mode=0755 -t tmpfs /dev /dev > mkdir /dev/pts > mount -t devpts -o gid=5,mode=620 /dev/pts /dev/pts > mkdir /dev/shm > mkdir /dev/mapper > echo Creating initial device nodes > mknod /dev/null c 1 3 > mknod /dev/zero c 1 5 > mknod /dev/systty c 4 0 > mknod /dev/tty c 5 0 > mknod /dev/console c 5 12
Whoaaa! Shouldn't that be mknod /dev/console c 5 1 ...?! bjd -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page