Dual Boot Vista and Linux

Posted on February 2nd, 2007 by Jason

Requirements:
- 2 Hard Drives
- Linux Install CD
- Vista Install DVD
- Computer powerful enough to run Vista
Why this is nessissary
Vista comes with a more difficult to work with bootloader. If you install Vista, then Grub, it wipes out the Vista Bootloader. It used to be that you could just tell Grub what to do to boot into Windows, but Windows no longer boots on it’s own: It needs its *special* bootloader!

This may seem convoluted, but in order to counteract this, I keep the Windows Bootloader on the Windows drive. However, I then make that drive the 2nd drive and install the Grub bootloader on the 1st drive. This makes the computer boot Grub first, which can either go right into Linux or it can boot into the 2nd drive, remapping the drives so that the Windows Bootloader can take over, thinking that it is on the 1st drive.
Before you start!
Read this entire manual so you have an idea of what you are doing.
Step 1: Install Windows Vista
Install everything taking up the entire contents of the first disk. Reboot to make sure Windows boots normally.

Note: if you are going to install multiple Windows operating systems, install them BEFORE installing Vista ONTO this drive, but do not take up all of the disk space!
Step 2: Swap Drives
Powerdown. Physically swap drives. My system is hotswap so this is easy. If you have Master/Slave pins, switch the Master with the Slave. If you are using SATA, switch connections between the two drives. I don’t care how you do it, just make the computer think the first drive is the 2nd drive and visa versa.
Step 3. Install Linux
I have tried this with both Gentoo and Kubuntu. Works great. Go through the linux setup, installing to the FIRST DRIVE. This drive WOULD have been the 2nd drive, but now it is the 1st because we swapped the drives around.
When it asks what Bootloader you want, select GRUB!
Step 4. Configure GRUB
Follow your distributions manual on configuring grub.conf for the linux partition (kubuntu automatically will do this for you). However, for the Windows partition you must configure it as so:

# Windows Vista
title=Windows Vista
rootnoverify (hd1,0)
map (hd1) (hd0)
map (hd0) (hd1)
chainloader +1
Step 5. Install GRUB to the MBR
Run “grub” to open the grub terminal:

grub> root (hd0,0)
grub> setup (hd0)
grub> quit

Reboot after you are finished setting up your system. It should let you pick between either Linux or Vista.

Tags: , , , , , , , , , , , ,

Related posts

7 Responses to “Dual Boot Vista and Linux”

  1. Grub not picking up Vista - Ubuntu Forums on 13 Jul 2007 at 9:32 am #

    [...] Grub not picking up Vista I searched the forum and found this: http://www.pctipsbox.com/dual-boot-vista-and-linux/ check it out. __________________ CSMonkey Blog CSMonkey TV Remote: desktop TV remote for IVTV [...]

  2. Freespire 2.0 Released - Page 8 - Forums on 15 Aug 2007 at 11:44 am #

    [...] –it even has problems with other windows products Grub & Vista BSD bootloader.. http://www.pctipsbox.com/dual-boot-vista-and-linux/ http://apcmag.com/5046/how_to_dual_b…talled_ first EasyBSD is probably the easiest way.. [...]

  3. StumbleUpon » Your page is now on StumbleUpon! on 30 Aug 2007 at 8:51 am #

    [...] Your page is on StumbleUpon [...]

  4. Konstantin on 11 Mar 2008 at 1:39 am #

    Hello. I wish I read your manual before I have installed Ubuntu and Vista.Vista was installed first on one hd, then Ubuntu on other hd. Now I don’t know how to boot into the Vista. I have though no problems booting in Ubuntu. Could you help?

    Thanks in advance

  5. Andrew on 14 Mar 2008 at 5:37 pm #

    Bit of a limited tutorial – not everyone has two drives. (Laptops, for instance.)

  6. Alex on 06 Apr 2009 at 8:51 pm #

    I just wanted to say that the two hard drives really are unnecessary. I am currently dual booting windows vista and ubuntu on a laptop just fine. Windows boots from the grub without any problems, just install windows first, otherwise you have to recover the grub to access the ubuntu partition.

  7. Suart on 05 May 2009 at 12:05 am #

    Thank you,solved my problem,using the grub commands
    never knew or found them, before reading your article,and I have read many.
    Well Done
    Cheers.

Leave a Reply