Setting up GRUB for dualboot with Windows XP on Ubuntu 9.04

If you have two hard drives on your PC, the first one being installed with Windows XP, and the second one with Ubuntu 9.04, you wouldn’t want to always edit the BIOS boot entry order to be able to switch from Windows to Ubuntu or from Ubuntu to Windows. Since your primary disk (/dev/sda) is windows and your secondary disk (/dev/sdb) assuming both are in the primary IDE, you just edit the GRUB on Ubuntu (/dev/hdb) and set the primary BOOT disk to the BIOS as the disk with Ubuntu so that when your computer boots, Ubuntu will be the default one. Here are the steps.

1. Set the BIOS primary boot disk to your secondary disk (the one with Ubuntu)

2. Start booting your Ubuntu OS.

3. Open a terminal `Applications -> Accessories -> Terminal`

4. Edit the GRUB entries, type sudo pico /boot/grub/menu.lst

5. Find the entry similar to this.. (usually at the bottom part)

# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
rootnoverify (hd0,0)
savedefault
chainloader +1

6. change it to
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
map (hd1) (hd0)
map (hd0) (hd1)
rootnoverify (hd1,0)
savedefault
chainloader +1

7. Save and restart your PC
CTRL + O (save) and CTRL + X (exit from pico)
sudo shutdown -r now

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s