LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 02-11-2004, 06:40 PM   #1
BarkingBonefish
Member
 
Registered: Feb 2004
Posts: 52

Rep: Reputation: 15
Dual boot dilemma - XP/Linux on separate drives


I know this has been discussed before, but I cannot seem to decipher what it is all about. Here is my configuration need, and how far I have gotten, plain and simple:

The machine is a Dell C840 with a 60GB primary drive and a 40GB modular (secondary) drive. My intent was Red Hat WS on the secondary drive, but without GRUB in the MBR, as I wanted to be able to remove the secondary drive when needed, and still be able to boot Windows XP.

So, I run through a standard install of the retail RH9, on the secondary drive. I do an advanced bootloader config, and install GRUB on the secondary drive in the boot partition. According to my reading, this was the way to go. Using this route, I got no hardware boot incompatibility warning, so I assumed that GRUB would load from here using the BIOS drive boot select utility.

I was wrong. When selecting the secondary drive for boot, from BIOS, I get a "GRUB" in the top left corner, and a spinning drive (which obviously can't find the boot sector).

Then I read in this and other forums that the Windows bootloader is actually loading instead of GRUB, and I need to link the XP bootloader to GRUB, then it will run. I have seen some examples for LILO, but I am not afraid to say it all sounds like Latin to this newbie.

I was never warned during the RH9 install to create a boot disk, or anything else. Now I have RH9 installed, and can't get it up, let alone figure out how to get this or that file onto the root of my WinXP drive, and/or mod the boot.ini file (which I do know how to do, if someone would just tell me what to type in there).

Your help will be greatly appreciated.

Thanks,

BB
 
Old 02-11-2004, 06:47 PM   #2
bnice
Member
 
Registered: Feb 2004
Location: Sacramento, CA
Distribution: Slack 9.1, slackware-current
Posts: 284

Rep: Reputation: 30
you should install grub to the MBR of the second drive to boot like you are describing.

can you boot from your install cd?
 
Old 02-11-2004, 06:50 PM   #3
BarkingBonefish
Member
 
Registered: Feb 2004
Posts: 52

Original Poster
Rep: Reputation: 15
I have an install CD, but booting the drive from it will require some assistance. My boot is /dev/hdc1/.

Will your suggestion keep my Windows bootloader intact and unharmed?

Do I need to remove the other hard drive prior to doing this reinstall?

If so, let me know what to do. I have all my disks in front of me right now.

Cheers.

Last edited by BarkingBonefish; 02-11-2004 at 06:56 PM.
 
Old 02-11-2004, 06:57 PM   #4
bnice
Member
 
Registered: Feb 2004
Location: Sacramento, CA
Distribution: Slack 9.1, slackware-current
Posts: 284

Rep: Reputation: 30
yes, windows is safe.

when your install cd boots, what is the first thing it stops at?

I'm looking for a prompt to pass additional parameters to the kernel.

does it have such a thing?
 
Old 02-11-2004, 06:58 PM   #5
BarkingBonefish
Member
 
Registered: Feb 2004
Posts: 52

Original Poster
Rep: Reputation: 15
I get the original install screen #1, and the prompt is "boot:"
 
Old 02-11-2004, 07:08 PM   #6
bnice
Member
 
Registered: Feb 2004
Location: Sacramento, CA
Distribution: Slack 9.1, slackware-current
Posts: 284

Rep: Reputation: 30
at that prompt, type:
Code:
mount root=/dev/hdc1 ro
this will either boot you to your completed installation, a good thing(TM)
or else give you an error like "invalid image [tab for a list]"
if it does error, look at the list and insert an image name:

Code:
mount imagename root=/dev/hdc1 ro
if that works, you should be able to set up grub properly
 
Old 02-11-2004, 07:16 PM   #7
BarkingBonefish
Member
 
Registered: Feb 2004
Posts: 52

Original Poster
Rep: Reputation: 15
I got a different message:

Could not find kernel image: mount

No list available, and prompt is back to boot:
 
Old 02-11-2004, 07:21 PM   #8
BarkingBonefish
Member
 
Registered: Feb 2004
Posts: 52

Original Poster
Rep: Reputation: 15
I am now in Linux Rescue.

Nevermind that, which got me no where.


Last edited by BarkingBonefish; 02-11-2004 at 07:23 PM.
 
Old 02-11-2004, 07:21 PM   #9
bnice
Member
 
Registered: Feb 2004
Location: Sacramento, CA
Distribution: Slack 9.1, slackware-current
Posts: 284

Rep: Reputation: 30
OK, what is the next stage? (it's been a long time since RH for me)
 
Old 02-11-2004, 07:25 PM   #10
BarkingBonefish
Member
 
Registered: Feb 2004
Posts: 52

Original Poster
Rep: Reputation: 15
I tried going in there. It asked me if I wanted to mount, which I said yes to. Then I got a prompt I have not seen before....something like SB#-.05:, so I shut it down again.
 
Old 02-11-2004, 07:26 PM   #11
BarkingBonefish
Member
 
Registered: Feb 2004
Posts: 52

Original Poster
Rep: Reputation: 15
Confirming.

I am sitting at at prompt

sh-2.05b#

Last edited by BarkingBonefish; 02-11-2004 at 07:36 PM.
 
Old 02-11-2004, 07:44 PM   #12
bnice
Member
 
Registered: Feb 2004
Location: Sacramento, CA
Distribution: Slack 9.1, slackware-current
Posts: 284

Rep: Reputation: 30
Quote:
Originally posted by BarkingBonefish
Should I just pull the primary drive, boot from CD, and start the whole install process again?
Maybe. you shouldn't have to pull the drive, just make sure you install to the MBR of the drive you have your installation on- not /dev/hda or hd0,0

if you are adventurous, check out this web page from Red Hat It does a better job than I could

basically, you need it edit /etc/grub.conf to boot your linux drive, and then install to the MBR of that drive. Then when you switch boot devices in BIOS, it should work.
 
Old 02-11-2004, 07:50 PM   #13
bnice
Member
 
Registered: Feb 2004
Location: Sacramento, CA
Distribution: Slack 9.1, slackware-current
Posts: 284

Rep: Reputation: 30
it looks like you can mount your filesystem from the boot prompt by typing:

linux root=/dev/(where ever you installed)
 
Old 02-11-2004, 07:52 PM   #14
BarkingBonefish
Member
 
Registered: Feb 2004
Posts: 52

Original Poster
Rep: Reputation: 15
The Red Hat install would not give me the option to install the GRUB into the MBR of the secondary drive. It gave me option of MBR of other drive, or boot partition of secondary drive.

Does one have to create an mbr during install? I was under the impression that /boot was the proper sector.
 
Old 02-11-2004, 08:15 PM   #15
bnice
Member
 
Registered: Feb 2004
Location: Sacramento, CA
Distribution: Slack 9.1, slackware-current
Posts: 284

Rep: Reputation: 30
nope, MBR's already there.

Depending on the partition scheme of RH, /boot is either just a directory, or at most a seperate partition.. The actual bootloader, grub, is installed to the MBR.

The file that tells grub how to act is /etc/grub.conf

You should be able to start anaconda from the sh: prompt, that's the setup program and at least make a boot floppy.

You can look here for an excellent guide to grub.
 
  


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 with 2 separate hard drives and OS lfierro Linux - Newbie 8 12-11-2004 02:37 PM
FC3 Dual Boot/Separate Drives StarSage Fedora - Installation 2 11-12-2004 08:53 AM
Dual Boot on Separate Hard Drives? theonlylivinggo Linux - Newbie 6 02-26-2004 04:15 PM
dual boot w/ separate hard drives? aveach Linux - General 2 09-15-2003 03:33 PM
How to dual boot XP and Linux in separate drives TomCruise2002 Linux - Newbie 1 09-22-2002 11:51 AM


All times are GMT -5. The time now is 11:44 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration