PDA

View Full Version : multiple knoppixes on one cd?



mikedb
08-13-2003, 02:00 PM
somewhat of a simple (or maybe not) question....

i looked around and didnt see any posts like this so here goes... whats the chance or possiblity of being able to put 2 remasters on one cd and allow for picking one or the other on boot?

ie Id like... to put the following two on one cd...

Knoppix-lite
Nice small remaster Size: 207Mb
Download: ftp://ftp.es.debian.org/pub/miniKnoppix

http://www.localareasecurity.com/
Local Area Security Knoppix is a 'Live CD' distribution based on Knoppix but with a strong emphasis on security tools and small footprint

maybe i should use something like the following? im not sure how to pull it off. or if its possible?
Corporate Modboot
...all the tools you need on one Bootable CD-Rom...
http://www.nu2.nu/corpmodboot/

many thanks in advance for any advice anyone can provide.

garyng
08-13-2003, 02:08 PM
I do similar things, though not on CD but HD. Since all KNOPPIX does is the following in the linuxrc :

insmod /modules/cloop.o file=/cdrom/KNOPPIX/KNOPPIX

I have changed this line to

insmod /modules/cloop.o file=/cdrom/KNOPPIX/$CLOOP_FILE

and just pass in CLOOP_FILE using the 'cheat code' method while booting.

You don't any other tools, just create multiple clooped file under the directory that you are going to 'mkisofs'.

mikedb
08-13-2003, 11:57 PM
hum, makes sense but where do i change the linuxrc

from
insmod /modules/cloop.o file=/cdrom/KNOPPIX/KNOPPIX
to
insmod /modules/cloop.o file=/cdrom/KNOPPIX/$CLOOP_FILE

isnt linuxrc in the /cdrom/KNOPPIX/KNOPPIX cloop file? are you saying i have to somehow mount the compressed image file with loopback or something and make those changes?

sorry, forgive my ignorance.

thanks in advance

mikedb
08-14-2003, 01:02 AM
i answered my own question... i know what you were thinking rtfm right? well ok maybe not, but stupidly i should have searched first... a quick look popped up

http://www.knoppix.net/forum/viewtopic.php?t=3297&highlight=
and
http://www.knoppix.net/forum/viewtopic.php?t=2784

which for those as lazy as i am and happen to read this says essentially.....

mount boot.img boot -t msdos -o loop=/dev/loop0
cp boot/miniroot.gz .
gunzip miniroot.gz
mount miniroot mroot -t ext2 -o loop=/dev/loop1
vi linuxrc
umount mroot
gzip -9 miniroot
stick it back into boot.img and off you go.....

it works like a champ. and now thanks to this + http://www.nu2.nu/corpmodboot/ i have a bootable cd that has 22 some bootalbe os'es and 50 some cool tools. life as a geek is good. :)

Craig Caughlin
09-03-2003, 01:08 AM
Hey mikedb,
Can you tell me what line(s) in the linuxrc file you modfied in order to run several flavors of Knoppix on a single CD?...this is exactly what I'm trying to do, but I can't figure out what I need to change and modify!

Thanks,
Craig

mikedb
09-03-2003, 01:47 AM
hum, i think i just used vi and did a search for

/cdrom/KNOPPIX/KNOPPIX

and replaced with whatever... ie

/cdrom/KNOPPIX/KNOPPIX_someother_cloop_file

If i remember correctly there were only 2 or maybe 3 places to change it and it was about 1/2 or 2/3 the way down the file.

(sorry i dont have the file with me right now to confirm or deny, but thats my best guess...)

let me know your results or if you need more help. im interested to hear