How I run multiple Knoppix versions from a CD-Step by Step
Hi folks,
Hopefully I won't make any glaring mistakes here, :D , please forgive me if I do.
Here's my scenario: Using Bart's multiple boot image CD as my model ( http://www.nu2.nu/bootcd/#multimemdisk ), I wanted to run multiple Knoppix versions (or Knoppix derivatives, i.e., Morphix, Pilot Linux, etc.) from a single CD.
My biggest problem was that when I booted my CD, the same version of Knoppix always booted, even though I have different "image" files from the different Knoppix versions that my menu pointed to.
I came to the conclusion from some other posts ( http://www.knoppix.net/forum/viewtopic.php?t=4229 ) that there was, evidently, some configuration changes that had to be made to the linuxrc file in order to be able to launch the version of Knoppix that I really wanted to launch...instead of the same one irregardless of the menu choice! After a little trial and error I figured out what, specifically, had to be changed within the linuxrc file...and how to do it.
In the root directory of my cd, I left the default directory of Knoppix called Knoppix. Since, by default, Pilot Linux runs from a directory named Knoppix, I renamed it Pilot.
In order to get Pilot Linux to launch from the directory called Pilot, I made the following changes to the linuxrc file:
From: if test -d /cdrom/knoppix
To: if test -d /cdrom/pilot
I also changed,
From: if test -n "$FOUND_KNOPPIX" -a -f /cdrom/KNOPPIX/KNOPPIX; then
# DEBUG
# echo "6" > /proc/sys/kernel/printk
insmod -f /modules/cloop.o file=/cdrom/KNOPPIX/KNOPPIX
To: if test -n "$FOUND_KNOPPIX" -a -f /cdrom/pilot/KNOPPIX; then
# DEBUG
# echo "6" > /proc/sys/kernel/printk
insmod -f /modules/cloop.o file=/cdrom/pilot/KNOPPIX
To modify the linuxrc file, you need to:
mount boot.img boot -t msdos -o loop=/dev/loop0
cp boot/miniroot.gz .
gunzip miniroot.gz
mount miniroot /pathtowherethe/minirootfileis -t ext2 -o loop=/dev/loop1
vi linuxrc (and make your changes)
umount /pathtowherethe/minirootfileis
gzip -9 miniroot
stick it back into boot.img and off you go.....
I hope this helps and wasn't too confusing. I'm pretty new to Linux, but if I can answer any further questions I'll try. Good luck!
Craig