LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-09-2012, 11:50 AM   #1
LDel001
LQ Newbie
 
Registered: May 2012
Posts: 2

Rep: Reputation: Disabled
How to dual boot 2 different linux installs? -- Need help...


I tried googling this first... and if I were at home I would take a chance, however, this is in my place of work, and I don't want to mess the whole server up.

We have a server running RHEL 5.3, and I need to dual boot RHEL 5.5...

I have the disk here, and I know that /dev/sda7 is where I want to install the OS.

Is there a step by step guide on how I can do this, without killing the other installation, and while still using the same grub install, so that I can dual boot?

This isn't normally my job, I am new to linux installs, and I really don't want to just jump head first into this.
 
Old 05-09-2012, 12:25 PM   #2
pointer2null
Member
 
Registered: Mar 2012
Location: Bristol, UK
Distribution: CentOS, Debian
Posts: 32

Rep: Reputation: Disabled
I'd try it out on a spare machine first but have a look at this article on GRUB. It's the linux bootloader.

Else google "linux dual boot grub tutorial"
 
Old 05-09-2012, 01:57 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,541

Rep: Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496
I don't use Red Hat but it would seem that it would not be that difficult. If you do intend to install the entire new system to one partition the only major thing you would need to do is install the bootloader correctly. If both version of Red Hat you are using, use Grub Legacy it should not be difficult. You could install the new Red Hat Grub to the master boot record and it should detect any other system on the computer and create an entry in the boot menu. Or you could install Grub to the partition (sda7) you are installing the new version of Red Hat to and create a menu entry in the /boot/grub.conf file on your old system.

If you don't understand the above, do some reading on Grub.
 
Old 05-10-2012, 02:14 AM   #4
zXi
LQ Newbie
 
Registered: May 2012
Posts: 28

Rep: Reputation: Disabled
Whoa.. Just wanted to confirm about your comment on "I have the disk here, and I know that /dev/sda7" I am assuming that the present Linux 5.3 is already on /sda.. If this is the case.. Please DO NOT install in the same sda...

Do add another Hard disk for sdb and carry out your installation. Insert the CD/DVD and when the selection comes to install on drive just select the new drive you have added. And when the grub selection comes, The RHEL 5.5 will tell you that it has detected another linux distribution and would you like to add it to the grub.conf. Select yes please and carry on...

To figure out, if you have installed RHEL 5.3 in sda, just type df -h and see if /dev/sda[1 or 2 or3] represents /boot.

HTH,
zXi
 
Old 05-10-2012, 03:16 AM   #5
LDel001
LQ Newbie
 
Registered: May 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
dev/sda1 is /boot

So can I use sda7 for the additional install?
 
Old 05-10-2012, 05:39 AM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by zXi View Post
Whoa.. Just wanted to confirm about your comment on "I have the disk here, and I know that /dev/sda7" I am assuming that the present Linux 5.3 is already on /sda.. If this is the case.. Please DO NOT install in the same sda..
Would you like to explain why? There is no problem with installing more than one Linux distro on one harddisk (back in the times when I was distro hopping I had around 14 or so on one disk).
 
Old 05-10-2012, 05:54 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by LDel001 View Post
...this is in my place of work, and I don't want to mess the whole server up.

We have a server running RHEL 5.3, and I need to dual boot RHEL 5.5...

This isn't normally my job, I am new to linux installs....
A server that is being used at your employer is NOT the place to be learning Linux installation, dual-boot, etc. I would use another computer to get familiar with the process.
 
Old 05-10-2012, 09:42 AM   #8
zXi
LQ Newbie
 
Registered: May 2012
Posts: 28

Rep: Reputation: Disabled
Quote:
Originally Posted by TobiSGD View Post
Would you like to explain why? There is no problem with installing more than one Linux distro on one harddisk (back in the times when I was distro hopping I had around 14 or so on one disk).
Quite true, except the part that LDel001 has mentioned that /dev/sda7 is already partitioned under extended. If the same had been a free disk lying around, then we would hit the issue of primary partitions emptied out. To support my theory here.:

I have workstation running Linux VMS, where I have tried what @LDel001 said, and I selected sda7 to install Rhel5.5 where [sda1..7 had been partitioned by Rhel 5.3, first install].

During creating the disk layout, I had to select custom layout for installing on sda7 and when selected a new partition for /boot, it threw the error "Could not allocate requested partitions: Partitioning failed: Could not allocate partitions as primary partitions. Not enough space left to create partition for /boot."

Added that we have free disk that had NOT been partitioned and if we still have less than 4 primary partitions in first install, we could as well install. Provided LDel001 has to delete sda7 which has to confirmed in LDel001's workplace.

Again, quoting @pixellany "A server that is being used at your employer is NOT the place to be learning Linux installation, dual-boot, etc. I would use another computer to get familiar with the process."

HTH,
zXi
Attached Thumbnails
Click image for larger version

Name:	disk1.JPG
Views:	11
Size:	60.0 KB
ID:	9642   Click image for larger version

Name:	disk2.JPG
Views:	9
Size:	60.7 KB
ID:	9643   Click image for larger version

Name:	disk3.JPG
Views:	9
Size:	58.3 KB
ID:	9644  
 
Old 05-10-2012, 09:58 AM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Thanks for the explanation, and I totally agree with pixellany's statement, don't mess with a production system. Nonetheless I fail to see where the wanted usage of sda7 for installation implies that all primary partitions are already used.
 
Old 05-10-2012, 02:59 PM   #10
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Why are we concerned about primary vs. logical partitions??---Linux is totally happy on a logical
 
Old 05-10-2012, 03:49 PM   #11
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,820

Rep: Reputation: 229Reputation: 229Reputation: 229
Let's see what you've got...

Could you open a terminal on the system of interest and run the command "fdisk -l" and post it here?

I too think it would be greatly to your advantage to take some old PC and to install RHEL with the same partition scheme as on your server, then installing RHEL again as a dual-boot.

As a cabinet maker I remember a byword of our trade, that it is better to measure many times and to cut once than to suffer the consequences of measuring incorrectly, making the wrong cut and having no recourse.

Last edited by thorkelljarl; 05-10-2012 at 03:51 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Linux installs but doesn't boot -- WTF !!!!!! MBA Whore Linux - Software 5 08-18-2006 10:23 PM
Installing dual Boot 98/Linux - WONT 'LILO' Dual Boot !? L1nux3d Linux - Laptop and Netbook 15 02-11-2006 05:36 AM
Dual Linux Installs RanDrake10 Linux - General 2 12-19-2004 07:32 PM
hOw to dual boot linux suse with a dual boot win98/xp pc walterkai SUSE / openSUSE 1 12-14-2004 05:04 PM
Preparing for dual boot installs class_struggle Linux - Newbie 4 11-29-2003 04:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:38 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