LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-16-2008, 05:29 PM   #1
tewald
LQ Newbie
 
Registered: Sep 2004
Location: Detroit area
Posts: 5

Rep: Reputation: 0
Dual booting on separate SATA drives


I have no IDE drives on my system. I had two SATA drives with Windows XP Pro on one and data files on the other. I installed a third SATA drive specifically to use for Ubuntu 7.10. However, when I install to the new drive, and then remove the CD as instructed, I go directly to Windows on the reboot.

PLEASE NOTE: I've tried changing the boot order in the BIOS so the Ubuntu drive goes first; the BIOS complies easily, but then on reboot the system hangs at the "Boot from CD?" prompt.

I have read that I should make changes to GRUB, but I can't even access the Linux drive to do so. I do not have RAID turned on, BTW. Also, XP recognizes all 3 disks with no problem.

I would appreciate help with this. Thank you.

Tom Ewald
Detroit area
 
Old 03-16-2008, 05:44 PM   #2
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 59
Where did you install Grub? Did you install it to the first harddrive? By the sounds of it you didn't do the latter. One way you can do this is to install Grub to the hard drive with the Ubuntu on it and then map your windows drive in the Grub menu.lst take a look at this link it will give you a good example of how to do this.

Booting tips

Last edited by mrrangerman; 03-16-2008 at 05:50 PM.
 
Old 03-16-2008, 05:45 PM   #3
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190
Quote:
Originally Posted by tewald View Post
I have read that I should make changes to GRUB, but I can't even access the Linux drive to do so.
Isn't the install CD for Ubuntu a liveCD? Meaning you can boot and run that as a Linux system itself.

While in that Linux system, you can see which partition you have Linux installed in (such as /dev/sdc1 if it is the first partition of the third drive and if naming is following the usual rules) and you can mount that partition and modify files in it including the menu.lst file that tells the stage 2 of grub what to do (once you've managed to get stage 2 of grub actually started on that drive).

Also in that liveCD mode, you can run the command line version of the grub installer. I don't know what the GUI installer for Grub in Ubuntu lets you do. The command line version lets you do what you want. In this case, you want to reinstall GRUB with stage 1 going into the mbr of your third hard drive (meaning it goes in /dev/sdc if drives are named the way I expect from your post).

The last complication is figuring out which number the third drive should have inside menu.lst. If the drives were numbered normally, then the original installer probably numbered it '2', which may be correct. But when the BIOS changes boot sequence for the SATA drives it might also change the numbering of the drives in menu.lst, so your third drive would still be sdc in Linux but when grub gets control from the BIOS it might be '0'.

All of the above assume you want to use the BIOS to control the dual boot, so you want Windows stage 1 loader to stay in the MBR of physical drive 0 and Grub's stage 1 to go in the MBR of physical drive 2.

The more common method is to put Grub's stage 1 in the MBR of drive 0, destroying Windows stage 1, then put something in menu.lst to allow Grub to transfer control to Windows during boot.

Another way is to use DD to make a copy of Grub stage 1 (after figuring out where it was installed or reinstalling it to the partition boot sdector). Copy that with dd to a Linux file, then through whatever media you can access copy that to a file in C:\ of the windows system. Then edit the Windows hidden file boot.ini to tell it to boot Linux through that file.

Last edited by johnsfine; 03-16-2008 at 05:51 PM.
 
Old 03-16-2008, 07:05 PM   #4
tewald
LQ Newbie
 
Registered: Sep 2004
Location: Detroit area
Posts: 5

Original Poster
Rep: Reputation: 0
Johnsfine:

Thanks for your reply. Being as I'm such a newby at this, I'm not sure how to do what you say, but it does sound logical, and it gives me something to aim at. Thanks, again.
 
Old 03-16-2008, 10:35 PM   #5
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190
Especially since I was describing three different (mutually exclusive) ways of setting up the dual boot, I didn't give detailed instructions on the "how to" of each. Hopefully I told you enough for an informed decision of which way you want to do it and basics of what you need to accomplish.

While I was typing all that, mrrangerman gave you that booting tips link (maybe you didn't notice). That page tells you the detailed "how to" for most or all of the individual steps of each of the three different plans I tried to describe.
 
  


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 w separate SATA drives newguy55 Linux - Newbie 7 03-19-2006 01:44 PM
Dual-booting 32 and 64 bit Fedora on separate SATA drives Barry Bingham Fedora 8 02-23-2005 03:10 AM
dual booting mandrake 10.1 and xp on separate drives I_Come_anon3410 Linux - Software 6 12-23-2004 01:13 AM
Dual-booting with two separate hard drives leeman_s Linux - General 3 01-22-2003 11:16 PM
installing on separate drives/dual booting nuzzy Linux - Newbie 3 06-25-2002 05:30 PM

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

All times are GMT -5. The time now is 07:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration