-----BEGIN PGP SIGNED MESSAGE-----
On Friday 17 Jan 2003 10:18 am, [EMAIL PROTECTED] wrote:
> I'm trying to mount of a software RAID drive as root. (Mandrake 8.2,
> GNU/Linux 2.4.18-6mdkenterprise) I'm using a custom built initial ramdisk.
What's the contents of the ramdisk ?
> The error message I get during boot time follows:
>
> Mounting root filesystem
> EXT3-fs: unable to read superblock
> mount: error 22 mounting ext3 flags Freeing unused kernel memory: 264k
> freed
> kernel panic: No init found. Try passing init= option to kernel.
I've been battling that on my Netstrada 7000 (thanks Jon!). I think I've
sussed it out to be that the Mandrake 9 installer forgets for some reason to
put the RAID modules into the initrd. I hacked mkinitrd on my other SMP box
(also Mandrake 9) to load the correct modules and then hacked mkbootdisk to
call the hacked mkinitrd.
If you want I can send you my hacked mkinitrd, you'd just need to replace the
aic7xxx module it's told to load with whatever is appropriate for you.
The output from my (hacked) mkinitrd with the -v flag for verbose is (NB: I've
removed the final 2 lines of output from mke2fs so the end of the quote is
the end of the linuxrc script):
- --------------------------8< snip snip 8<--------------------------------
./mkinitrd -v ./initrd.img 2.4.19-16mdksmp
Using modules: ./kernel/drivers/scsi/scsi_mod.o
./kernel/drivers/scsi/aic7xxx/aic7xxx.o ./kernel/drivers/scsi/sd_mod.o
./kernel/drivers/md/xor.o ./kernel/drivers/md/raid5.o ./kernel/fs/jbd/jbd.o
./kernel/fs/ext3/ext3.o
Using /tmp as temporary directory.
/sbin/nash -> /tmp/initrd.Zptmtv/bin/nash
/sbin/insmod-DIET -> /tmp/initrd.Zptmtv/bin/insmod
Loading module scsi_mod with options
Loading module aic7xxx with options
Loading module sd_mod with options
Loading module xor with options
Loading module raid5 with options
Loading module jbd with options
Loading module ext3 with options
Contents of RCFILE:
#!/bin/nash
echo "Loading scsi_mod module"
insmod /lib/scsi_mod.o
echo "Loading aic7xxx module"
insmod /lib/aic7xxx.o
echo "Loading sd_mod module"
insmod /lib/sd_mod.o
echo "Loading xor module"
insmod /lib/xor.o
echo "Loading raid5 module"
insmod /lib/raid5.o
echo "Loading jbd module"
insmod /lib/jbd.o
echo "Loading ext3 module"
insmod /lib/ext3.o
echo Mounting /proc filesystem
mount -t proc /proc /proc
echo Creating root device
mkrootdev /dev/root
raidautorun /safedev/md0
echo 0x0100 > /proc/sys/kernel/real-root-dev
umount /proc
echo Mounting root filesystem
mount --ro -t ext3 /dev/root /sysroot
pivot_root /sysroot /sysroot/initrd
echo Remounting devfs at correct place if necessary
handledevfs
- --------------------------8< snip snip 8<--------------------------------
Good luck!
- --
Chris Samuel Wollongong, NSW
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iQEVAwUBPidaP41yjaOTJg85AQGMOwf/aJM4cQZUp9w0v01f1d0F+0hIoy4UFsuG
icG1b0NIwAx6l6+GlCqmm+vNFyeQko63U6vsXOPUx2nPgJKNxOKZQCM+jRJsAbQ8
mbV6+A4v43Pe9C88WfgEd6+FLRi2JAj+344F1KWDhUhMbzH1zk/Gk9ekq9Uo5MZw
U0XI32dGI9LTXdcw4rtcImvsVtUFUW287B3Ac4FBR9QQA9HNN5T2gs8EDgiZoJ8I
lIxiG5F7JrDYvLQFEWzwBRvCYpq+XEVe9q4YiJWonxXPXvNtXTwFu6Nib05J/XRX
O22mJyxyEr7RXPGsTTw5Ls7v4F4v0WjE/eXEuoAmj/XCf1zHq7eANQ==
=+Dmw
-----END PGP SIGNATURE-----
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug