Bootable Resue CD problems
hi there,
I am attempting building a linux "resucue" cd.
I am using the Linux 2.4.18 kernel, and Syslinux (isolinux) 1.67 to boot.
My syslinux cfg file looks like this:
----------------------
default bootcd
display bootcd.msg
label bootcd
kernel vmlinuz
append initrd=initrd.gz ramdisk_size=12288 init=/linuxrc rw root=/dev/ram
----------------------
Now, when "initrd.gz" is loaded initially it, does all the fun stuff like mount proc, find the cd-rom, etc.
Then, what is supposed to happen is, the linuxrc file from initrd.gz is supposed to created a new root filesystem from another compressed ramdisk from the CD (rootfs.gz).
Here is the script to do that
---------------------------------------------------------------
if [ -r /mnt/cdrom/isolinux/rootfs.gz ]; then
echo "preparing ramdisk..."
/mnt/cdrom/fs/bin/mke2fs -q -i 16384 -m 0 /dev/ram0
mkdir /ram
mount /dev/ram0 /ram
cd /ram
/mnt/cdrom/fs/bin/gunzip /mnt/cdrom/isolinux/rootfs.gz
cd /
umount /ram
umount /mnt/cdrom
umount /proc
echo "all done"
exit
fi
---------------------------------------------------------------
linuxrc gets that far, but after it decompresses the rootfs.gz file,
it "should" run the /etc/inittab file from the rootfs.gz fs, but instead I get:
preparing ramdisk...
mke2fs v ... blah blah blah
/dev/ram0 is mounted: will not make new filesystem here!
gunzip: /mnt/cdrom/isolinux/rootfs.gz read only filesystem.
all done.
Kernel Panic: Attempted to kill init.
Does anyone have any idea at all what may be causing this ?
Last edited by SpookMonkey; 04-02-2002 at 01:02 PM.
|