pankaj takawale
2007-Jan-15 15:07 UTC
[syslinux] network booting initrd -mount: error 6 mounting ext3
Hi all, Im network booting initrd-2.6.9-22.EL.img from pxelinux. <snip from init script> echo Creating root device mkrootdev /dev/root umount /sys echo Mounting root filesystem mount -o defaults --ro -t ext3 /dev/root /sysroot mount -t tmpfs --bind /dev /sysroot/dev echo Switching to new root switchroot /sysroot echo UMOUNTING initrd-dev umount /initrd/dev </snip> I receive error while mounting : mount -o defaults --ro -t ext3 /dev/root /sysroot mount: error 6 mounting ext3 mount: error 2 mounting none Switching to new root switchroot: mount failed: 22 UNMOUNTING initrd-dev umount /initrd/dev failed: 2 Kernel panic - not syncing: Attempted to kill init! My pxelinux configuration looks like kernel vmlinuz-2.6.9-22.EL append initrd=initrd-2.6.9-22.EL.img root=/dev/ram keeppxe I can see that ext3 modul was successfully loaded using insmod utility. Please advice how to make initrd n/w booting. pankaj ____________________________________________________________________________________ Yahoo! Music Unlimited Access over 1 million songs. http://music.yahoo.com/unlimited
Luciano Miguel Ferreira Rocha
2007-Jan-15 16:11 UTC
[syslinux] network booting initrd -mount: error 6 mounting ext3
On Mon, Jan 15, 2007 at 07:07:12AM -0800, pankaj takawale wrote:> Hi all, > > Im network booting initrd-2.6.9-22.EL.img from > pxelinux. > <snip from init script> > > echo Creating root device > mkrootdev /dev/root > umount /sys > echo Mounting root filesystem > mount -o defaults --ro -t ext3 /dev/root /sysroot > mount -t tmpfs --bind /dev /sysroot/dev > echo Switching to new root > switchroot /sysroot > echo UMOUNTING initrd-dev > umount /initrd/dev > > </snip> > > I receive error while mounting : > mount -o defaults --ro -t ext3 /dev/root /sysroot > > mount: error 6 mounting ext3 > mount: error 2 mounting none > Switching to new root > switchroot: mount failed: 22 > UNMOUNTING initrd-dev > umount /initrd/dev failed: 2 > Kernel panic - not syncing: Attempted to kill init! > > My pxelinux configuration looks like > kernel vmlinuz-2.6.9-22.EL > append initrd=initrd-2.6.9-22.EL.img root=/dev/ram > keeppxeWell, you're trying to boot /dev/ram, what did you expect? root=/dev/ram represents initrd, but you're not using initrd, but the new initramfs format. -- lfr 0/0 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://www.zytor.com/pipermail/syslinux/attachments/20070115/c31ad295/attachment.sig>
pankaj takawale
2007-Jan-16 15:44 UTC
[syslinux] network booting initrd -mount: error 6 mounting ext3
Just an update: I built initrd by compilining linux 2.4 kernel and added debug messages in kernel code. With this initrd & vmlinuz - I receive error like "Kernel panic: init not found" I found that execve is returning error EIO - I/O error while executing /bin/sh. I have injected sh into bin folder of initrd. I can see that root filesystem is mounted successfully. Please advice. ____________________________________________________________________________________ Any questions? Get answers on any topic at www.Answers.yahoo.com. Try it now.