Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old October 11th, 2006   #1
gn2
Chocolate-Covered Ubuntu Beans
 
gn2's Avatar
 
Join Date: Jul 2006
Location: Bonnie Scotland
Beans: 2,306
Ubuntu 8.04 Hardy Heron
Dual Boot on Two Drives

EDIT:This thread is now largely irrelevant, as 7.04 has an "Advanced" button at the Grub installation stage, which when pressed gives the option to enter a different location for Grub to be written to.

__________________________________________________ __________________________________________________ __________________________________________________ ___________




Generally in Ubuntu EDIT: up to6.10? the usual way to install a dual-boot system involves overwriting the Master Boot Record of the Windows hard drive.

On one hard drive this is pretty much unavoidable.

However,

If you are dual-booting with TWO hard drives it is not necessary to write Grub over the MBR if you can access a "Boot Device Selection Menu" by pressing F8
(or whatever key depending on BIOS)

You can thus keep both installations entirely separate.

To do it this way:

Disconnect the Windows drive and install Ubuntu and Grub on the second drive. Reconnect first drive after installing Ubuntu.

Windows on master, Ubuntu & Grub on slave if using two IDE drives.

(This method will also work on SATA drives, or a mix of SATA & IDE)

Press F8 (or whatever key depending on BIOS version) at boot time to bring up the Boot Device Selection Menu.

Choose OS by selecting which drive to boot from.

Select desired default OS by re-arranging boot order in BIOS.

Only need to press F8 to select non-default OS.

Re-boots are as quick as using traditional Grub-in-MBR option.

Always disconnect other OS's drive if re-installing.

This process will also work for adding Windows to an Ubuntu system

Access to files on either drive can be configured later on, once you've got a safe installation organised.


Edit: The following information will allow dual-booting on two drives with all BIOS versions, with a little editing of Grub. Thanks are due to Anaconda and Bulldog


Yep all good and so, but..

it would be even better if the hd with ubuntu is the master and windows hd is the slave.

Everything would work just like in your example (no grub in windows drives mbr), but you wouldn't have to do anything in the bios, and in all bios:s it propably even isn't possible to select the booting drive..

But if you have ubuntu in master, then when you boot you would go to grub, and you can select which os is booted. The only thing you would have to do is edit /boot/grub/menu.lst and add windows to your grub..

title Windows NT/2000/XP (loader)
map (hd0,0) (hd1,0)
map (hd1,0) (hd0,0)
rootnoverify (hd1,0)
makeactive
chainloader +1

remapping hd:s when booting to windows from slave drive is nesessary, because windows wants to think it is in the master drive..

and if you remove either hd from your machine, the other one would work normally like in your example...
__________________
____________
anaconda

gn2: The end result is the same, Grub is kept off the Windows MBR.

Bulldog has also made posts advocating this method.

Definitely a very good thing.


GUI Grub Editor Info: http://www.ubuntuforums.org/showthread.php?t=228104.
__________________
Want Linux to come pre-installed? Don't buy Windows!
Linux Pre-installed Vendor Database
Spread the word.....

Last edited by gn2; October 5th, 2008 at 03:24 AM.. Reason: Updated due to change in 7.04 Grub install option now available.
gn2 is offline   Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

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

Forum Jump


All times are GMT -4. The time now is 05:50 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry