LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-09-2004, 10:54 AM   #1
geogecko
LQ Newbie
 
Registered: Dec 2003
Posts: 19

Rep: Reputation: 0
Exclamation Dual Booting 2 Linux Installations


Hi.

I have 2 hd's installed in a PC. I have two seperate Red Hat 9.0 installs on each of them, however, I have major problems trying to access which one I want to use.

Is there a way to make a selection while GRUB is running? I've tried to use the install disk in order to create a new bootloader (using the update selection), and then listing the two installs in the list of installations, however, when I don't install anything else, I get a warning message saying that my bootloader will not be updated because I did not change any packages in the kernel.

Any ideas? I've even tried to change the bootloader to LILO or no bootloader at all, and get the same problems...

J.
 
Old 01-09-2004, 11:21 AM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
you only need one boot loader...

i would recomend setting up the hard drive as follows...
hda: 1 swap partiton, 1 /boot partiton , and the main linux install partiton., and a /home partiton

hdb: only the main linux partiton.

you can get the linuz install on hdb to use the swap and home and boot from hda.

i would recoment you read a grub tutorial before attempting this.
 
Old 01-09-2004, 11:25 AM   #3
geogecko
LQ Newbie
 
Registered: Dec 2003
Posts: 19

Original Poster
Rep: Reputation: 0
Got a good GRUB tutorial in mind?

I'm pretty new to Linux, I just started using it about 2 months ago.

Do you think there is a way to do this without destroying the installs that are currently on the disk? Or will at least one of them have to be re-done?

J.
 
Old 01-09-2004, 11:40 AM   #4
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
there is no reason why you would HAVE to destroy one... but it would be easyer to do.

if you are willing to re-install one drive, here is what i would do....

Install Redhat 9 (but keep BOTH hard drives plugged in so the install program can see them both)

ohh, this is not neccesery, but it would boost performance if the 2 hard drives were on different IDE cables... but you may need to edit your /etc/fstab to tell linux where your cdroms have moved to (no big deal) /dev/hda = primary master hdb = pimary slave, hdc = secondry master hdd = secondry slave.

ANYWAY... dureing the install, when you get to the part about partitoning, select MNAUALL PARTITON.

lets say for example you want to keep the install on the secondry master un-touched. and you are installing to primary master (or wherever u put the disks)

select ONE drive, and completely remove ALL partitons on it.. then cheate one partiton, that uses up the whole drive, select it to be formated as ext3, and mounted as '/'

Now select the Swap Partiton from the install you are not going to touch, and set that to be mounted as 'swap' and the same again with 'boot' make sure both /swap and /boot are set as 'DO NOT FORMAT'

then go on with the install.

if all goes to plan, when you boot, you should boot into the old linux install....
from there you will need to add to your /boot/grub/grub.conf to add the newly installed operating linux.... basically copy what there for the old linux install, and copy it again at the end of the file but changing the part that says where 'root' or '/' is located.

im no GURU.... and ive nver dont this before, but theory says it should work...
i would recomend you hunt down an expert and get a second opinion on
my instructions.

as for a grub tutorial.. search google.com/linux there are many to choose from.

is there any part of that u dont understand ?
not knowing how new you are to linux im not sure if i over/under simplified anything.. hehe.
 
Old 01-09-2004, 11:47 AM   #5
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
oops, i should also add that before trying anything as drastic as that, bake a backup of your /boot/grub/grub.conf and have a play around with it.... here is my grub.conf

Quote:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hda2
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=0
splashimage=(hd0,0)/grub/splash.xpm.gz
title Fedora Core 1 (Linux) (2.4.22-1.2115.nptl)
root (hd0,0)
kernel /vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ hdd=ide-scsi rhgb
initrd /initrd-2.4.22-1.2115.nptl.img
if i were attempting what u are attempting, i would add the lines...

Quote:
title Fedora Core 1 (Linux) HARD DISK B (2.4.22-1.2115.nptl)
root (hd1,0)
kernel /vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ hdd=ide-scsi rhgb
initrd /initrd-2.4.22-1.2115.nptl.img
that may work, i just changed the location of root.

but.. this is a lazy way... you only need one /boot and one swap partiton.
having two is wasting disk space.

as for the home directory... you only need one right ?
unless there is a real reason you want two..
you may want to delete the /home directory in the newer install.. in replace it with
a symbolic link to the old / home directory. (you would need to set /etc/fstab to mount the ond install on bootup of the new install... but thats also very easy)
 
Old 01-09-2004, 11:48 AM   #6
geogecko
LQ Newbie
 
Registered: Dec 2003
Posts: 19

Original Poster
Rep: Reputation: 0
I think I can follow all of that. Let me give it a try. The second install hasn't been customized that much, so it wouldn't kill me to re-do it. I'll see what happens.

Thank you for your help.

J.
 
Old 01-11-2004, 02:10 PM   #7
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
you welcome...
but i still recomend you get an expert to give you a second opinion, as like ive said, to my knoledge it should work... (but ive never done it that way before)
 
Old 01-14-2004, 11:29 AM   #8
geogecko
LQ Newbie
 
Registered: Dec 2003
Posts: 19

Original Poster
Rep: Reputation: 0
qwijibow.

Thanks for the advice. I followed it, and also found another howto to get the details. Basically what you said worked, however, once I installed to the second disk again, it still was booting from the second disk somehow, then in the howto article, it talks about how to install GRUB as the bootloader back to the original disk. I'll post the howto for anyone elses benefit. Thanks again!!!

http://freeos.com/articles/3482/

J.
 
  


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
Dual boot image Via Ftp- installations Guignol Linux - Software 0 11-01-2005 08:06 AM
Dual Booting XP and Linux... DiZASTiX Linux - General 6 07-20-2003 10:34 AM
dual linux booting salparadise Linux - Software 2 04-24-2003 03:18 AM
Dual booting linux rhl_one Linux - General 2 04-18-2003 10:51 AM
Dual-booting Linux hank@$3800 Linux - Newbie 1 07-08-2002 09:48 PM


All times are GMT -5. The time now is 01:03 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration