Skip to contentSkip to conversation

How to install two linux OSes on the same PC

DISCUSSION Narsimha Reddy CHALLA 3 participants 4 messages Feb 5, 2003 – Feb 7, 2003

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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

Quoted 21 lines · Narsimha Reddy CHALLA
   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/

#2 lore raw
In reply to Narsimha Reddy CHALLA
Quoted 5 lines · Narsimha Reddy CHALLA

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.

Quoted 8 lines

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.

Signature · 4 lines
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
#3 lore raw
In reply to Narsimha Reddy CHALLA

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

Quoted 52 lines · Narsimha Reddy CHALLA

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/

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

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