How to dual boot Vista and XP (with Vista installed first) -- the step-by-step guide

Send to a friend Print

Help more people find out about this story

Del.icio.us
StumbleUpon

James Bannan29 May 2007353 days ago.

So you've discovered Vista isn't quite ready for prime-time and now you want to put XP back on your PC. Here's how to dual-boot Vista and XP, if Vista is already installed.Now updated with a new version of EasyBCD.

Updated 29 May 2007 with a new version of EasyBCD.


Scenario: You want to install Vista on your PC alongside your XP installation, on the same drive. You have installed Vista already. (If you have XP installed first, check out our earlier tutorial on how to dual boot Vista and XP with XP installed first.)

Tutorial Summary: We're going to use the DISKPART on the Vista DVD to shrink the Vista partition on the hard disk and create enough space for an installation of Vista. We'll then install XP, repair the Vista bootloader which will be overwritten during the XP installation, and then use the EasyBCD utility to configure Vista's bootloader to boot the XP partition.

This is an updated tutorial, based on our first Windows Vista/XP dual-booting workshop. The main difference is that EasyBCD has been updated, but the processes are essentially unchanged.

This tutorial was tested on a VMWare 6 Workstation and an AcerPower SK50 system.

Prepare Windows Vista

This tutorial assumes that Vista has been installed on a partition which takes up 100% of the hard drive, so we need to create some space. Boot off the Vista DVD. Hit Next from the start screen and then select “Install now”. (If Vista came preinstalled on your machine and you don't have a Vista install DVD, you can use the Gnome Partition Editor Gparted to do it. Our earlier tutorial on dual-booting XP and Vista if you've installed XP first describes how to use it.)

 

Install VistaInstall Vista

 

Don’t type in your product key and untick “Automatically activate Windows when I’m online”, then hit “Next”, and “No” when asked whether you want to enter the key.

Vista Product KeyVista Product Key

 

When prompted to choose the edition of Vista you’re installing you can actually select any of them as we’re not doing a Vista install at this point. Also tick “I have selected the edition of Windows that I purchased” and hit “Next”.

Vista VersionVista Version

 

Accept the license terms and hit “Next” again, then choose a Custom installation.

On the screen where you’re asked where you want to install Windows, you should see a single large partition marked Primary – this is where Vista is already installed.

Vista PartitionVista Partition

 

Press SHIFT + F10. This is a Windows PE 2.0 shortcut to open up a command window – very useful trick.

Command ToolCommand Tool

 

Type in DISKPART and press Enter. This opens the Microsoft DiskPart application. You need to select the active disk, so type in:

list disk

The primary disk is generally Disk 0, so type in:

select disk 0

DISKPART DiskDISKPART Disk

 

Now we need a list of volumes on this disk, so type in:

list volume

In this case Volume 0 is the one we want, so type in:

select volume 0

DISKPART VolumeDISKPART Volume

 

Now type in:

shrink

DISKPART ShrinkDISKPART Shrink

 

DiskPart will go off and reclaim as much of the drive as it can – you should get at least 50% of the space back.

Now type

EXIT

and

EXIT (again)

to quit the command window and get back to the install screen. Click Refresh and the partition window will update – you should now see the original Primary partition plus a brand new partition.

New PartitionsNew Partitions

This is where we will install Windows XP. Eject the DVD, restart the machine (just hit the reset button) and boot off the Windows XP CD.

Now, install Windows XP

When the Windows XP setup reaches the point where you’re prompted where it is to be installed, you’ll see that while XP can see the space we created earlier, it can also see the partition with Vista on it.

XP PartitionXP Partition

 

You should be able to see the space you reclaimed on the disk earlier which has become "unallocated space".

Create a second partition using the Windows XP installer screen above by selecting the free space on the drive and pressing "C" to create a partition (if prompted, choose NTFS as the file system.)

Irritatingly, XP assigns a drive letter to this partition (C:) which means that it will use the next available drive letter after all the other physical drives have been taken into account.

This means that the system drive of the XP installation won’t be C:.

From XP’s perspective this isn’t really a problem – it’s smart enough to figure out where everything should go – but some applications make assumptions about where they should install to, and can’t cope with a non-standard Windows configuration.

This was also the case with our tutorial on dualbooting Ubuntu and XP, where Ubuntu had been installed first. However in that scenario, even though the XP system drive had a non-standard drive letter, it couldn’t read the Linux partitions so there was no danger of the two systems overlapping. This is not the case with Vista/XP.

Nonetheless, install XP as normal – there’s no need to do anything differently.

IMPORTANT NOTEafter the initial file copy, Windows XP reboots and loads up the GUI-based component of the install. You may get the following error: “A disk read error occurred – press Ctrl-Alt-Del to continue”. This is caused by a corrupt bootloader – click here to see how to fix this problem.

When the system reboots it won’t bring up a boot menu. Although XP recognises the Vista partition it doesn’t recognise Vista itself.

The Windows XP bootloader gets installed to the MBR and Vista can no longer boot.

When XP loads, open up Windows Explorer and you’ll see something interesting – a C: and (in this case) an E: drive.

The C: drive contains Windows Vista, and as Windows XP can read NTFS partitions, it can browse and modify Vista’s file structure.

More importantly, applications which have installation paths hard-coded into their install scripts rather than using Windows system parameter variables could easily dump files into C: when they should be installing to E:. This isn’t such a great situation.

Two DrivesTwo Drives

Restoring Vista and dual booting

Because you can’t use the Windows XP bootloader to boot Vista, we have to reinstate Vista’s bootloader to the MBR and configure it to manage both operating systems.

Compared with scenarios involving Ubuntu where you have to reinstall the GRUB bootloader, getting Vista up and operational again is very easy.

Boot from the Vista DVD and on the screen where you’re prompted to “Install now”, select “Repair your computer”.

Repair VistaRepair Vista

 

The next screen searches for local Vista installations – there should only be one, so click Next.

Choose VistaChoose Vista

 

This loads the System Recovery Options screen. Select the first option – Startup Repair. This looks for problems which would prevent Vista from loading (like a missing bootloader) and automatically fixes them.

Startup RepairStartup Repair

 

If you click on “Click here for diagnostic and repair details” and scroll to the bottom of the list, it shows that the problem detected and repaired was a corrupt boot sector (according to Vista, anyway).

Repair DiagnosticsRepair Diagnostics

 

Click Close and then Finish, and the system will restart and boot into Vista.

Now we need to enable dualbooting with XP, and EasyBCD is the best application to achieve this.

Download and install EasyBCD.

Launch the app and go to Add/Remove Entries.

Under “Add an Entry” and under the Windows tab and select in the Version drop-down list “Windows NT/2k/XP/2k3”.

Change the Drive to E:\ and the name to “Windows XP”, then click “Add Entry” and “Save”.

Vista & XP - EasyBCDVista & XP - EasyBCD

 

Reboot the system and you’ll have two entries in the Vista bootloader, and can boot into either operating system.

Vista BootloaderVista Bootloader

Removing Windows XP

If you eventually decide that dualbooting XP as the second OS isn’t all it’s cracked up to be, it’s pretty easy to undo the changes made.

Use EasyBCD to remove the Windows XP boot entry, and then go into Computer Management (right-click on Computer, Manage) and go to Disk Management.

Right-click E: drive (the Windows XP partition) and select Delete Volume.

Right-click the newly-created partition and select Delete Partition.

Then right-click the C: drive (the Vista system partition) and click Extend Volume – this opens up the Extend Volume Wizard.

 

Extend Volume WizardExtend Volume Wizard

The wizard gives you a readout on how much space is actually available to extend the partition – enter in how much you want to use and press Next. Vista will extend the system partition to reclaim the disk and Windows is well and truly gone.

Fixing the corrupt bootloader

If the Windows XP bootload corrupts during the install, performing a reinstall won’t fix it, nor will going into the XP Recovery Mode and attempting to repair the MBR.

Luckily, the install was up to the stage where all you need to do is be able to boot from the Windows XP partition, and the install will pick up from where it left off.

To achieve this, follow the procedure outlined above to restore the Vista bootloader (under "Restoring Vista and Dualbooting").

This allows the system to boot into Vista, and then you can use EasyBCD to create an XP boot entry and boot into that to continue on with XP's installation. (For details on using EasyBCD, also see the section "Restoring Vista and Dualbooting".)

 

Read more stories about

Post your comment


Reader Comments

RSS feed Email alert

anon12182918 (New user):

Are you dumb? You can get a Mac Pro tower with 2 Intel Xeon 4-core CPUs, 8 slots of RAM (up to 32 GB), up to 4 graphics cards, 4 hard drive slots, and even raid card compatibility...you're way behind the times.

harlz86 (New user):

Congratulations gentlemen on absolutely out-nerding any pc vs mac argument ever entered into the world wide web. not only was it an argument about wether or not they would install side by side, or which was better but the argument took a twist i have not seen, is a mac a pc. dont get me wrong. im a techie, i hate macs and have mates who are mac techs (if you could call them that) but never has an argument about what is better ever been performed so well, so dramatically. you guys even managed to call an APC ADMIN a f*****.. not to mention the guy who dribbled on about no viruses on a mac. pfft thats because a mac aint worth hacking (p.s. they are out there...) all this aside i dont see how loading xp and vista together turned into an argument that sounds more like a "my dad could beat your dad in a fight" school playground sort of argument. but gentlement well done and thankyou for showing me that most of the people online with ennough time to research this sort of stuff are actually all keyboard warriors.

p.s. the only way this argument is ever going to be solved is if bill gates and that skinny sixty year old from apple punch it out in a ring. nerd versus nerd. girly arms flailing, tears rolling. thats the only way a winner will be found.

old noob (New user):

your not the only 1

when trying to install xp on a pre installed vista machine
I have made 43gig unallocated space but can not see the disk
WINDOWS XP PROFEEIONAL SETUP
Setup did not find any hard disk drives installed in your computer.

running sata drive on a rca410L/800-M2 MB



wie (New user):

Where did you put the ntldr boot.ini and ntdetect.com files on the Vista partition?

vshut (New user):

I am a novice at this as are others that have posted their comments. I am also frustrated with some of Vista's operations. There are a lot of good comments and troubleshooting ideas in this forum but is there a revised instruction guide for installing XP with Vista already installed with all the helpful hints and troubleshooting ideas. With only the one computer which is used for work, I cannot afford to be without it if something goes wrong. Is it better to pay and take it to someone who is more proficient in computers so my downtime is minimised. I know I can read through all the comments, which I have read about half now, but it I miss something crucial, there goes my computer until I get it restored.

Good comments from you all. Keep up the good work.

cris (New user):

I have ah vista os but japanese, then I would like to install an xp I have already a partition but when i install the xp the system said that i dont have a hard drive. why?

Michael (New user):

I pulled up this web site because I'm in the process of buying a new computer. I know it will come pre installed with Vista so I am already checking out what the process will be to dual boot.

The question I want to ask which is better dual booting the way it comes and add XP, or formatting the hard drive installing XP Pro as my main partition then putting Vista as the second partition? I don't mind doing it if it's something that will make a difference.

I read both guides (partitioning Vista to XP and partitioning XP to Vista), I've scanned through most of every ones comments on both pages and haven't seen anyone ask this yet.

I've dual booted many drives in the past with 2000 and XP (even tri booted before with Linux for someone) But I have no experience with Vista at all besides hearing all the horror stories of how many problems people are having. So any advice would be appreciated.

Thanks,
Michael


apong168 (New user):

Boot and load your Vista DVD. Repartition into 2 partitions and format. Install Vista into the first partition. Then Boot your Win XP CD and install windows into the second partition. Windows XP will boot. To boot Vista, boot Vista DVD and choose Repair (StartUP. Restart and you will see on your screen Windows Vista and Windows XP. Choose anyone and boot. And you will have a Dual Boot Vista and XP

petemason99 (New user):

Here,s my story:-

I recently had issue with my dual boot system ntldr missing etc.

I eventually managed to solve the problem by installing easyBCD in my vista system.

With this app it is very simple to change the default boot op sys. Also the timeout. Ie time u get to change to other op sys. Also name of op sys.

But most importantly for me and I hope u, it showed that XP (my default op sys) was trying to boot from a deleted partition. This can easily be changed to the correct drive. Go into change settings, and under "choose op sys to change associated settings" Choose the faulty op sys and hopefully u will see that it is trying to boot from the wrong drive. Just type in letter of drive:\, ie D:\

I think my problems arose from deleting partitions with partition magic. I also made a restore to a previous HDD image (using ghost 2003) just before i had the issue.

Unfortunately easy BCD only works on Vista, but for anybody having this issue on a single boot op sys with XP, the missing ntldr problem on startup can be fixed by going into the microsoft recovery console, and type in fixboot at the prompt.

Finally, if u really can`t find ntldr and NTDETECT on the XP partition (although I find hard to believe that they have been lost) u can easily copy and paste them directly from folder i386 in an XP installation disk. Paste them directly in the root of the XP partition. U can perform this while running your Vista sys. Hope this helps. Pete.


petemason99 (New user):

Here,s my story:-

I recently had issue with my dual boot system ntldr missing etc.

I eventually managed to solve the problem by installing easyBCD in my vista system.

With this app it is very simple to change the default boot op sys. Also the timeout. Ie time u get to change to other op sys. Also name of op sys.

But most importantly for me and I hope u, it showed that XP (my default op sys) was trying to boot from a deleted partition. This can easily be changed to the correct drive. Go into change settings, and under "choose op sys to change associated settings" Choose the faulty op sys and hopefully u will see that it is trying to boot from the wrong drive. Just type in letter of drive:\, ie D:\

I think my problems arose from deleting partitions with partition magic. I also made a restore to a previous HDD image (using ghost 2003) just before i had the issue.

Unfortunately easy BCD only works on Vista, but for anybody having this issue on a single boot op sys with XP, the missing ntldr problem on startup can be fixed by going into the microsoft recovery console, and type in fixboot at the prompt.

Finally, if u really can`t find ntldr and NTDETECT on the XP partition (although I find hard to believe that they have been lost) u can easily copy and paste them directly from folder i386 in an XP installation disk. Paste them directly in the root of the XP partition. U can perform this while running your Vista sys. Hope this helps. Pete.


petemason99 (New user):

I recently had issue with my dual boot system ntldr missing etc.

I eventually managed to solve the problem by installing easyBCD in my vista system.

With this app it is very simple to change the default boot op sys. Also the timeout. Ie time u get to change to other op sys. Also name of op sys.

But most importantly for me and I hope u, it showed that XP (my default op sys) was trying to boot from a deleted partition. This can easily be changed to the correct drive. Go into change settings, and under "choose op sys to change associated settings" Choose the faulty op sys and hopefully u will see that it is trying to boot from the wrong drive. Just type in letter of drive:\, ie D:\

I think my problems arose from deleting partitions with partition magic. I also made a restore to a previous HDD image (using ghost 2003) just before i had the issue.

Unfortunately easy BCD only works on Vista, but for anybody having this issue on a single boot op sys with XP, the missing ntldr problem on startup can be fixed by going into the microsoft recovery console, and type in fixboot at the prompt.

Finally, if u really can`t find ntldr and NTDETECT on the XP partition (although I find hard to believe that they have been lost) u can easily copy and paste them directly from folder i386 in an XP installation disk. Paste them directly in the root of the XP partition. U can perform this while running your Vista sys. Hope this helps. Pete.


xtreme1 (New user):

Please help! I am trying to install a second xp os on a second hdd, but xp does not seem to allow me to install on a second hdd. I also tried using P Magic 8, but it also only allows installing on the first hdd. I tried disconecting hdd1, but for some reason xp says boot failed. I would prefer not to format the partition on hdd 2 as it will take me nearly one week to reinstall all my programs. any ideas welcome. i feel like i am at a toilet with a bent penny :) - cheers Rod

am321 (New user):

I followed the steps up until I had to install WinXP. The bluescreen always shows up with messages: "A problem has been detected and windows has been shut down to prevent damage to your computer...... Technical information:***STOP: 0x0000007B (0xF78D6528,0xc0000034,0x00000000,0x00000000)
The c