LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-05-2005, 02:13 PM   #1
abijah
LQ Newbie
 
Registered: Apr 2004
Posts: 8

Rep: Reputation: 0
multipe linux OS on 1 machine


Hello All,

We've written a program to predict landslides and now we want to distribute it (for free, what's the point of research if it doesn't help people) and we need to make sure it works on a bunch of OS's. We'd like to turn 1 computer into a test bed for multiple OS's. For example we'd like to have Redhat 9.0, Fedora Core 2, Fedora Core 3, etc. on this machine (on the same physical hard drive) that we can choose between at boot time, and have them share the same ext3 partiton on which resides the /home directory, (they would also share a swap partition).

How do I do this, obviously each OS would get it's own partition but I don't know how to handle the multip "/" directory/partitions.

I'd appreciate any help you could give me.
 
Old 03-05-2005, 07:31 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Having one swap partition won't be a problem. Since you can only boot one OS at a time, one swap is all you need. Create the swap partition, and as you install each distro, point each one to the same swap partition to use when booted.
One /home partition could be a problem.You probably could not use the same user name in each distro. The reason is that each distro will create hidden files in the user directory, which contain config info (user preferences) for each app used. Since each distro may do things a bit differently, you'd get quite a mess if the same user name is used by more than one distro.
However, installing each distro to it's own monolithic partition would solve that problem.
Therefore, I'd suggest that you create one partition for each distro, and one swap to be used by whichever distro is booted.
 
Old 03-05-2005, 07:46 PM   #3
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
testing your program on non-redhat-based distros too (such as slackware and debian) would be really nice...

also, take a look at the Linux Standard Base:

http://www.linuxbase.org/

Quote:
The goal of the LSB is to develop and promote a set of binary standards that will increase compatibility among Linux systems (and other similar systems), and enable software applications to run on any conforming system. In addition, the LSB will help coordinate efforts to recruit software vendors to port and write products for such systems.
 
Old 03-06-2005, 02:13 PM   #4
abijah
LQ Newbie
 
Registered: Apr 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by bigrigdriver
Having one swap partition won't be a problem. Since you can only boot one OS at a time, one swap is all you need. Create the swap partition, and as you install each distro, point each one to the same swap partition to use when booted.
One /home partition could be a problem.You probably could not use the same user name in each distro. The reason is that each distro will create hidden files in the user directory, which contain config info (user preferences) for each app used. Since each distro may do things a bit differently, you'd get quite a mess if the same user name is used by more than one distro.
However, installing each distro to it's own monolithic partition would solve that problem.
Therefore, I'd suggest that you create one partition for each distro, and one swap to be used by whichever distro is booted.
ok can you tell me how to do this, what's a 'monolithic' compartment, and how do I get any one of multiple directories to mount at root, with the others not being mounted, when the appropriate OS is selected through grub?
 
Old 03-06-2005, 02:36 PM   #5
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Monolithic means one partition to hold the entire OS, instead of several partitions with parts of the OS installed over several partitions. So, if you plan to install three OS's, create three partitions large enough to hold each one, with room to increase in size as data accumulates.
Also, create one swap partition, equal to or greater than the amount of ram on the motherboard.
When you configure grub, each OS is listed seperately in the menu, and each will have it's own kernel information like this:

title RedHat_1
kernel (hd0,0)/vmlinuz root=/dev/hda1 vga=0x31a splash=verbose showopts
initrd (hd0,0)/initrd
splashimage /boot/grub/images/smgl-splash.xpm.gz
color black/light-gray white/red

title RedHat_2
kernel (hd0,1)/vmlinuz root=/dev/hda2 vga=0x31a splash=verbose showopts
initrd (hd0,1)/initrd
splashimage /boot/grub/images/smgl-splash.xpm.gz
color black/light-gray white/red

title RedHat_3
kernel (hd0,2)/vmlinuz root=/dev/hda3 vga=0x31a splash=verbose showopts
initrd (hd0,2)/initrd
splashimage /boot/grub/images/smgl-splash.xpm.gz
color black/light-gray white/red

With this configuration, grub would display three RedHat installations, each in it's own partition, and tell grub where the root of each partition is located. From that, grub can find /boot/grub and complete the boot process.
 
Old 03-07-2005, 10:31 AM   #6
abijah
LQ Newbie
 
Registered: Apr 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by bigrigdriver
With this configuration, grub would display three RedHat installations, each in it's own partition, and tell grub where the root of each partition is located. From that, grub can find /boot/grub and complete the boot process.
ok how would I tell grub where the boot partition is... what is the syntax and how do I find out the values?
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sharing internet from a windows 98 machine to a Red Hat Linux machine ritwiksolutions Linux - Newbie 7 03-14-2006 10:20 AM
how to access internet from a linux machine via a linux machine as gateway b0nd Linux - Newbie 5 03-21-2005 11:59 AM
An easy way of deleting lines from multipe files? delawhere Linux - General 2 04-02-2004 11:58 AM
Using SMB to copy files from one linux machine to second linux machine. coppersky Linux - Networking 9 06-24-2003 12:07 PM
PostFix multipe domains (virtual setup) dulaus Linux - Networking 0 10-10-2002 04:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:32 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration