Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-19-2007, 12:21 AM   #1
LQ Newbie
Registered: Feb 2007
Posts: 6

Rep: Reputation: 0
dual booting with two hard drives

I just installed ubtubu on one of my old IDE hard drives. I've been using a SATA hard drive to run windows. I unplugged the sata hard drive (just to make sure I wouldn't mess anything up) and plugged in the IDE hard drive and installed linux,. I'm trying to figure out a way that I can have both my hard drives plugged in at the same time and have an option to boot either linux on my IDE drive, or windows on my sata drive, without having to choose in bios. Any help, links, would be greatly appreciated. Thanks!
Old 02-19-2007, 12:52 AM   #2
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740
ubtubu??---You mean Ubuntu, I hope......

There are several ways to do this:
Put GRUB (the most common linux bootloader) on the MBR of the Windows drive--set the bios to boot this drive
Put GRUB on the MBR of the Linux drive--set the bios to boot this drive
Put Grub on a floppy--set the system to boot from floppy, and then the first HD (set this to be the Windows drive)

Installing GRUB will be a bit tricky when you are changing BIOS settings. Keep in mind that GRUB will setup according to what it believes to be drive 1 and drive 2.

Here is ONE possible scenario with the easiest recovery is something goes wrong:
  1. set the BIOS to boot the Linux drive (I'm guessing GRUB is already there) This should make the Windows drive #2.
  2. Edit the grub config file to include a windows entry--something like this:
title  Windows
rootnoverify (hd1,0)  tells Grub that Windows in on drive 2, partition 1
map (hd0) (hd1)
map (hd1) (hd0)  these two lines are required to trick Windows into thinking it is on drive 1
chainloader +1
To edit the GRUB config file, go to /boot/grub and open the file "menu.lst" using an editor such as gedit or nano. You must be running as root (or use sudo)

This method keeps the Windows loader on the Windows drive, so you can always get back to that by switching the BIOS.
Old 02-19-2007, 01:18 AM   #3
LQ Newbie
Registered: Feb 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Haha yes I do mean Ubuntu. thanks for your reply pixellany. I put the code that you posted and it worked! Thanks for your help


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
Questions about dual booting, dual hard drives, and partitioning Raybrandt Linux - Newbie 4 04-22-2006 09:19 PM
Dual Booting With 2 Hard Drives superdude_876 Linux - Software 6 01-05-2006 11:53 PM
Dual Booting SuSE 9.2 & XP Pro/dual hard drives The_Bug Linux - General 3 01-04-2006 06:44 PM
Dual Booting with two Hard Drives Memzback Linux - Newbie 3 04-13-2004 11:25 AM
dual booting with two hard drives? free_eire Mandriva 3 02-03-2004 08:28 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:43 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration