2003-02-05 08:26:28

by Narsimha Reddy CH

[permalink] [raw]
Subject: How to install two linux OSes on the same PC

Hi All,

I want to do two different linux installations rh 7.2 and rh
8.0 on the same pc with single hard disk. I installed the rh 7.2 in
partitions say /dev/hda5 ( /) , /dev/hda6 (/home) , /dev/hda7 (
/usr) ,
/dev/hda8 ( /tmp),... /dev/hda11 etc.

But how can I install the rh 8.0 in partitions say /dev/hda12
( as "/" ) ... etc ?? Since the installer won't allow as there
already exists a "/" partition for the rh 7.2 and tries to override
it with the root partition of rh 8.0. So I tried giving a different
lable to the root partition of rh 8.0 say /root1 and other partitions
as /root1/usr, /root1/home, /root1/tmp etc. But here also the installer
is looking for the partition named "/" and without that the installation
is not happening.


Please give your suggestions on how to resolve this problem.


At present my partition table with single installation (rh 7.2) is,

[root@creddy-pc root]# fdisk -l

Disk /dev/hda: 255 heads, 63 sectors, 2434 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 261 2096451 6 FAT16
/dev/hda2 262 2434 17454622+ 5 Extended
/dev/hda5 262 522 2096451 6 FAT16
/dev/hda6 523 653 1052226 83 Linux
/dev/hda7 654 1175 4192933+ 83 Linux
/dev/hda8 1176 1371 1574338+ 83 Linux
/dev/hda9 1372 1436 522081 82 Linux swap
/dev/hda10 1437 1501 522081 83 Linux
/dev/hda11 1502 1566 522081 83 Linux
[root@creddy-pc root]#


TIA,
- Narsimha Reddy CH


2003-02-05 09:15:20

by Bryan Andersen

[permalink] [raw]
Subject: Re: How to install two linux OSes on the same PC

I'm not remembering much about the RH install, but have you tried using
a console durring the early part of the installand repointing the mount
points to where you want them? This is a question that is best for
RedHat's own lists. I know this can be done as I've done it in the
past. It's been awhile since I've admined RedHat systems for
developers. I'm only admining Debian systems now.

- Bryan

Narsimha Reddy CHALLA wrote:
> Device Boot Start End Blocks Id System
> /dev/hda1 * 1 261 2096451 6 FAT16
> /dev/hda2 262 2434 17454622+ 5 Extended
> /dev/hda5 262 522 2096451 6 FAT16
> /dev/hda6 523 653 1052226 83 Linux
> /dev/hda7 654 1175 4192933+ 83 Linux
> /dev/hda8 1176 1371 1574338+ 83 Linux
> /dev/hda9 1372 1436 522081 82 Linux swap
> /dev/hda10 1437 1501 522081 83 Linux
> /dev/hda11 1502 1566 522081 83 Linux
> [root@creddy-pc root]#
>
>
> TIA,
> - Narsimha Reddy CH
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>


2003-02-05 20:58:54

by Dave Vehrs

[permalink] [raw]
Subject: Re: How to install two linux OSes on the same PC

On Wed, 2003-02-05 at 15:06, Narsimha Reddy CHALLA wrote:
> I want to do two different linux installations rh 7.2 and rh
> 8.0 on the same pc with single hard disk. I installed the rh 7.2 in
> partitions say /dev/hda5 ( /) , /dev/hda6 (/home) , /dev/hda7 (
> /usr) ,/dev/hda8 ( /tmp),... /dev/hda11 etc.
>
> But how can I install the rh 8.0 in partitions say /dev/hda12
> ( as "/" ) ... etc ?? Since the installer won't allow as there
> already exists a "/" partition for the rh 7.2 and tries to override
> it with the root partition of rh 8.0. So I tried giving a different
> lable to the root partition of rh 8.0 say /root1 and other partitions
> as /root1/usr, /root1/home, /root1/tmp etc. But here also the installer
> is looking for the partition named "/" and without that the installation
> is not happening.

I believe the problem is related to Redhat's use of partition labels
by default on 7.x and 8.x. Makes it easy if the drives master/slave
changes but causes problems for other things like this.

For example, my /etc/fstab looks like:
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext2 defaults 1 2
LABEL=/home /home ext3 defaults 1 2
/dev/hda3 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0

Attempting to boot a system with two drives (or multiple partitions on
the same drive) configured like this will confuse the system. So the
first step would be to change the LABEL= lines to /dev/<device> (i.e.
/dev/hda1 /boot ......etc.)

Next issue is how you want to boot the two systems. One boot partition
or two? With one boot, make a copy of what is already there, then
install the new system, allowing it to overwrite the old. Then merge
the two boot partitions by hand. They will already be a different
kernels, etc. so it shouldn't be too hard.

Then I would recommend booting the second system or mounting its drives
in the first temporarily and making similar changes to its fstab that we
did to the first.

Then reboot and I believe it should work....

Good luck,

Dave V.

--
David E Vehrs, System Engineer Aspen Systems
[email protected] 3900 Youngfield Street
Tel: +01 303 431 4606 Wheat Ridge CO 80033, USA
Fax: +01 303 431 7196 http://www.aspsys.com

2003-02-07 07:59:14

by Narsimha Reddy CH

[permalink] [raw]
Subject: Re: How to install two linux OSes on the same PC

Thanks a lot for your help. It really worked with disk driud. It
cleverly managed the name conflicts of lables i.e. for first
installation the root is "/" and for the second installation the root
lable is "/1". After editing the /etc/lilo.conf of first installation
and updating the MBR with /sbin/lilo appropriately, I can boot both of them.

Regards,
- Narsimha


Narsimha Reddy CHALLA wrote:

>Hi All,
>
> I want to do two different linux installations rh 7.2 and rh
>8.0 on the same pc with single hard disk. I installed the rh 7.2 in
>partitions say /dev/hda5 ( /) , /dev/hda6 (/home) , /dev/hda7 (
>/usr) ,
>/dev/hda8 ( /tmp),... /dev/hda11 etc.
>
> But how can I install the rh 8.0 in partitions say /dev/hda12
>( as "/" ) ... etc ?? Since the installer won't allow as there
>already exists a "/" partition for the rh 7.2 and tries to override
>it with the root partition of rh 8.0. So I tried giving a different
>lable to the root partition of rh 8.0 say /root1 and other partitions
>as /root1/usr, /root1/home, /root1/tmp etc. But here also the installer
>is looking for the partition named "/" and without that the installation
>is not happening.
>
>
>Please give your suggestions on how to resolve this problem.
>
>
>At present my partition table with single installation (rh 7.2) is,
>
>[root@creddy-pc root]# fdisk -l
>
>Disk /dev/hda: 255 heads, 63 sectors, 2434 cylinders
>Units = cylinders of 16065 * 512 bytes
>
> Device Boot Start End Blocks Id System
>/dev/hda1 * 1 261 2096451 6 FAT16
>/dev/hda2 262 2434 17454622+ 5 Extended
>/dev/hda5 262 522 2096451 6 FAT16
>/dev/hda6 523 653 1052226 83 Linux
>/dev/hda7 654 1175 4192933+ 83 Linux
>/dev/hda8 1176 1371 1574338+ 83 Linux
>/dev/hda9 1372 1436 522081 82 Linux swap
>/dev/hda10 1437 1501 522081 83 Linux
>/dev/hda11 1502 1566 522081 83 Linux
>[root@creddy-pc root]#
>
>
>TIA,
>- Narsimha Reddy CH
>-
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to [email protected]
>More majordomo info at http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at http://www.tux.org/lkml/
>
>
>
>


--
Narsimha Reddy CH
Storage Area Networking, HCL Technologies
Contact +91-044 2372 8366 ext 1128

http://san.hcltech.com
http://www.hcltech.com