LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-21-2004, 05:56 AM   #1
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,287

Rep: Reputation: 120Reputation: 120
How to boot multiple distro's on CD from CD.


Question in short: How can I modify initrd's?

Longer explanation to that question:
What I want to do:
As you probably know, there are lots and lots of small Linux's for various purposes. I have some time right now to experiment a bit, so I want to try as many as possible.
I want to place 10-20 small distro's on one CD, when I boot from the CD I want a menu from where I choose which distro to run.
I believe this can be accomplished, I'm thinking about the way install-CD's work: at bootup choose an option and a kernel & initrd is selected for that option.
Problem is, how do I modify those initrd's? To make it more complicated, I'm sitting at a Windows-box all day, unpack .iso's work but then what?
(If it's easier I could reboot and run some live-Linux.)

Or am I wrong, will it not work? Is there any other way to do it?

Last edited by pingu; 07-21-2004 at 07:33 AM.
 
Old 07-21-2004, 07:26 AM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
You don't need to modify the initrds of the various distros. You do need the boot information from the isolinux.cfg file of each distro.
I made a multi boot cdrom which uses the grub. RIP linux was used as the host system because it has a grub patch which allows it to boot cdroms.
Not all of the distros out there are cooperative for this project and because Knoppix based distros expect to find a KNOPPIX directory, it would be difficult to have more than one knoppix based distro on this cd. I access this knoppix distro a little differently than the other distros. I renamed the boot.img to knoppix.img and put it in a directory called images. Then you put an entry in the menu.lst similar to this...

title Feather Linux V0.3.7
kernel /boot/memdisk
initrd=/images/knoppix.img

That images directory is handy for accessing other goodies like the ones found on the Ultimate Boot CD.

I made a directory with sub directories which I copied each distro into. Then I made a working directory ( cdbase ) where the multi boot cd is built. This can be a bit time consuming and experimenting will show what does or doesn't work, use a R/W cdrom for this reason.
If you have more than one distro with the same kernel and / or initrd name, rename those for one of the distros. Don't forget to change the reference to that kernel and initrd in the menu.lst .

Grub Based Multi Boot CDROM

On this cd, grub expects to find the kernel and initrd in a directory. Therefore, I put them into the /boot directory which came with RIP.

The version of grub which comes with RIP didn't allow any extras like "default=" or "timeout=" or even blank lines.

Below is my /boot/grub/menu.lst

color light-gray/blue black/light-gray
title *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* R.I.P. *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
root (hd0)
title RIP V7.8
kernel /boot/kernel3
initrd=/boot/initrd3.gz vga=normal devfs=nomount load_ramdisk=1 init=/linuxrc prompt_ramdisk=0 root=/dev/ram0 rw
title Rescue CD V0.2.10
kernel /boot/vmlinuz1 video=i810fb:xres=800 acpi=off root=/dev/ram0 init=/linuxrc nokeymap
initrd=/boot/initrd1
title Feather Linux V0.3.7
kernel /boot/memdisk
initrd=/images/knoppix.img
Puppy Linux V0.8.4
kernel /boot/vmlinuz root=/dev/ram0 ramdisk_size=55296 initrd_archive=ext2 PFILE=pup080-none-262144
initrd=/boot/image.gz
title Slax Linux V4.0.1
kernel /boot/vmlinuz2 max_loop=255 init=linuxrc livecd_subdir=/ load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=7777 root=/dev/ram0 rw
initrd=/boot/initrd2.gz
title Mulinux V14r0
kernel /boot/mulinuz root=/dev/ram0 ramdisk_size=4600 vga=normal max_scsi_luns=1
initrd=/boot/root.gz
title Freedos V9
kernel /boot/memdisk
initrd=/images/freedos.img
title Tomsrtbt Linux
kernel /boot/memdisk
initrd=/images/tomsrtbt.img
title Ranish Tool V2.44
kernel /boot/memdisk
initrd=/images/ranish.img
title Memtest
kernel /boot/memdisk
initrd=/boot/memtest.bin

Once you have the systems loaded into the working directory ( cdbase ) and have the menu.lst setup, you can proceed as follows....

CD into the cdbase and type:
cdrecord dev=0,0,0 blank=fast

mkisofs -J -R -b boot/grub/iso9660_stage1_5 -c boot/boot.cat \
-o /home/bootcd.iso -no-emul-boot -boot-load-size 32 -boot-info-table .
Note: that period ( . ) is important.

cdrecord -v speed=4 dev=0,0,0 -data /home/bootcd.iso

Sometimes these boot cdroms will not boot on all computers. That is mostly hit or miss from what I've seen. If you have that problem and you know that you did everything correctly, your bios may be fussy.

Last edited by homey; 07-21-2004 at 07:28 AM.
 
Old 07-21-2004, 09:13 AM   #3
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,287

Original Poster
Rep: Reputation: 120Reputation: 120
That sounds great!

The reason for why I thought I'd have to change initrd is because I thought the distros were all supposed to run from the root directory.

Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Partitioning a drive for multiple distro's Ravager Linux - Newbie 23 11-02-2004 01:27 PM
Using multiple distro's on one computer sxa Linux - General 3 08-11-2004 06:17 PM
can i boot multiple distro's alongside XP? LinuxWannaBE916 Linux - Newbie 7 03-30-2004 01:22 PM
boot multiple Live CD distro's with grub bob_man_uk Linux - General 1 02-10-2004 09:54 AM
Partitioning for Multiple Distro's perrymans Linux - Newbie 4 04-15-2003 12:04 PM


All times are GMT -5. The time now is 03:09 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration