Vista + Linux/Ubuntu Dual Boot


One of the most teething problems involving Vista is that because of the way Microsoft have changed the booting process, the traditional boot.ini method no longer works. After scouring over the Internet and helping a friend over this, here a simple approach to dual booting.

In this scenario, I’ve considered that Ubuntu Feisty Fawn was installed first to an ext3 partition. Next,Vista was installed to a NTFS partition(note that here ‘m using only 1 hdd, multiple partitions). The Vista install process will overwrite GRUB, leaving you no way of booting into Ubuntu. So after the Vista install, boot into Ubuntu using the live CD.

At the Ubuntu desktop, we are now oing to edit the GRUB menu.lst file. GRUB is the boot loader for Ubuntu. Right now, GRUB doesn’t know where to look and find Vista. A small edit of the menu.lst file will fix this.

sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_bak

This will create a backup of the original menu.lst file — a file we are now about to change.

Again at the ~$ prompt, type this:

sudo gedit /boot/grub/menu.lst

Near the top of this file, you will see a command line that looks like this:

timeout 3

I suggest changing that ‘3′ to somthing like ‘10′. This(in seconds) refers to time the boot menu will be displayed you want to choose which OS you would like to boot.

Near the bottom of this file, you will find a line that looks like this:

## ## End Default Options ##
And immediately below that, you will see ‘title’ command lines for the various Ubuntu kernel options you currently have available. We are going to now add a new, small ‘title’ section.

Immediately below that ## End Default Options ## line, add the following text:

title Windows Vista
root (hd0,1)
makeactive
chainloader +1

Please note you are adding this text ABOVE all other Ubuntu title mentions in the file.

Be sure to press the ‘Save’ icon so that you save these changes!

That’s it. You’re done. When you next boot the machine, don’t touch a thing and it will default boot into Windows Vista.
PS: If you still are not able to boot into Vista, try changin (hd0,1) to (hd0,2). Thanks to Subbu and Rajesh for helping me out with trying this out.

If you enjoyed this post, make sure you subscribe to my RSS feed!
Possibly Related posts:
Many, who do a dual boot with any Linux and
I had this problem with a wubi install. Ubuntu would
This is the problem that affected me the most in
If there's a better system repair kit than the Gentoo-based
Ending months of rumors, Hewlett-Packard appears to have released its

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

3 Comments

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>