www.thpc.info   TweakHomePC    www.thpc.info

Dual-booting all versions of Windows and Linux
 
   Dual-Boot Centre      9x Speed Tweaks      How do I ...      9x Updates      9x Utilities      Downloads      PC Safety      Site Map      Link  
 
 
 

Here: Home > Dual-Boot > Dual-Boot Windows Vista with other Operating Systems >

Install Dual-Boot of Windows XP + Vista on a Windows Vista computer (Vista installed first)

Last reviewed: June 2011

Updated for EasyBCD version 2.1. Do not use these instructions with earlier versions of EasyBCD.

On this page:

Introduction

This guide shows how to safely create a natural dual-boot of Windows Vista and Windows XP on a computer with Windows Vista already installed. You can then run either of those two Windows by selecting one from a menu during bootup. No data loss will occur and a third-party boot utility is not used.

In this procedure you need to shrink the Windows Vista drive to make room for Windows XP unless you install XP on a second hard disk. Using a second disk simplifies the procedure but it's not necessary. The example shown here uses a single hard disk. 32 and 64-bit versions of Windows Vista Home Premium & Basic, installed on a single NTFS partition, were used in testing. The operating system added was Windows XP Home SP2 or Professional SP2. The computers used were (1) a 32-bit Dell Optiplex with Pentium 4 (2.26GHz), 2.0 GB RAM, 160 GB ATA hard disk, and (2) AMD Athlon 64-bit (2.4GHz), 2.0 GB RAM, 1 TB SATA hard disk.

Following these instructions correctly should always succeed. However, any change to your computer should not even be considered unless your have a rescue plan. This guide also contains that rescue plan - just in case!

This procedure is suitable for experienced computer users.

[top of page]

Important Installation Notes

Full Installation CD/DVDs. The Windows you are adding cannot be installed from Recovery or Repair CDs or DVDs provided by some OEMs. You need the full installation or setup version to install a Windows.

EasyBCD. The highly-acclaimed EasyBCD is a free editing utility that allows any user to easily edit the Windows Vista boot menu (the BCD or Boot Configuration Data). Some settings, not used here, are very advanced. EasyBCD works in Windows Vista, but also in Windows XP if you first install Microsoft's .NET 2.0 Framework (new window).

Shrinking a Windows Vista drive. You should use Shrink in Windows' Disk Management to resize the Windows partition. If the free space achieved is inadequate, you can read Shrink the Windows Vista Partition for instructions on completing this task successfully. Use the free GParted Live CD to gain disk space only if you absolutely must - read the page Use GParted to Resize the Windows Vista Partition to learn how and, before you use GParted, read Repair Windows Vista Startup (below).

Formatting. All partitions should be created before you start installing any operating system (OS). The partition should be Formatted when installing that OS to ensure compatible file system versions. Avoid formatting Windows partitions with GParted or any other third-party partitioning utility.

Restore Points and Windows XP. While not essential, it's best practice to apply a fix to prevent Windows XP removing Restore Points created by Vista. Read Fix Restore Points Problem in XP (below).

[top of page]
 

Details: Install Windows XP when Windows Vista is already Installed

Installing other operating systems on your Windows Vista computer may invalidate your warrantee.

It's important to follow the instructions exactly as stated and you should have a properly working Windows.


Make your preparations

  1. Backup important data before making any changes to a partition. You can burn files to a CD, clone an image of your hard disk, copy files to a USB flash/pen/thumb drive, or use an USB external drive (a good choice)
  2. Plan and create your new partitions carefully before you install.
  3. Download Microsoft's .NET 2.0 Framework (Dotnetfx.exe - free - required by XP to run EasyBCD).
    Download Neosmart's EasyBCD 2.1 (free - edit Vista boot loader).
    Optional: Download NeoSmart's free Windows Vista System Recovery Disk if your Vista DVD is missing!
  4. Download any essential device drivers for your older Windows.
  5. If you intend using a second hard disk, make sure that disk is in place before you start.
  6. Disconnect all unnecessary external devices before you start.

Make free space and create new partitions

This part is best completed BEFORE you start installing any other operating system.
Remember, you should never alter the starting position of a partition that contains an OS you wish to keep.

The single 160 GB disk usually used in testing initially had: Windows Vista (150 GB, Primary, NTFS). The Windows Vista drive was shrunk leaving about 30 GB Unallocated space at the end of the disk (to the right). After repartitioning it had: Windows Vista (120 GB, Primary, NTFS), XP (30 GB, Primary, NTFS). You can use a second hard disk for Windows XP - the procedure will be similar to that described here.

Always note the size of each partition and also label each (this guide uses vsta and w_XP).

If installing on a 2nd or 3rd hard disk:

  • You should have no trouble using Vista's Shrink in Disk Management to create Free space.
  • Restart Windows when finished.
  • Then skip from here to Now Install the Operating System ...

If installing on the first hard disk:

  1. Restart computer correctly (close all programs before you Restart computer).
  2. Open Disk Management in Windows Vista (right-click Computer, select Manage, click Disk Management).
    • Right-click your CD/DVD drive(s), select Change drive letter and paths..., and click Change.
      Change the drive letter to K (get it out of the way!).
    • Right-click the Windows Vista Volume (probably C:), and select Properties.
      In the General tab, enter vsta as the label for the Windows Vista volume, and click Apply.
  3. In Disk Management in Windows Vista
    • Right-click the vsta volume, and click Shrink Volume.
      • In Enter the amount of space to shrink in MB: enter enough for XP.
      • Click the Shrink button (it may take some time!).

      If Shrink does not give you sufficient Unallocated space, read Shrink the Windows Vista Partition for instructions on how to complete this task successfully. Then return here.
       
    • Right-click the Unallocated space and select New Simple Volume.... Click Next.
      • In Simple volume size in MB:, select all Unallocated space you created. Click Next.
      • In File system, select NTFS in the drop-down.
      • In Volume label, enter w_XP.
      • Tick to enable the Perform a quick format check box, and click Next.
      • Click Finish button.
    • If you have a very large hard disk, you can create an extra NTFS partition for data.
      (Disk Management will automatically create Logical partitions when those become necessary).
  4. Restart to Windows Vista two times.
    • Open Disk Management and check that the change made is correct.

Use the free GParted Live CD to gain adequate disk space only if you absolutely must - read the page Use GParted to Resize the Windows Vista Partition to learn how, and read Repair Windows Vista Startup (below) before you use GParted.

[top of page]
 

Now Install Windows XP in this Windows Vista Dual-Boot

The link below shows how to install Windows XP in this dual-boot and how to use EasyBCD 2.1 with it.

The Windows Vista boot menu will then boot Windows Vista or Windows XP when selected.

Congratulations!
You have created a natural dual-boot of Windows XP and Windows Vista when Windows Vista was installed first.

Footnote:
EasyBCD 2.1 creates an NST folder on the root of the Windows Vista partition when it adds an operating system to the Windows Vista boot loader. This NST folder contains file(s) vital to booting added OSs. It must not be deleted.

[top of page]

Fix Restore Points Problem in XP

Windows XP does not understand some of the disk management techniques used by Windows Vista. Every time XP is booted, it destroys Vista's and Vista's Restore Points and all except the most recent backup files from Complete PC Backup - read Microsoft's Knowledge Base article 926185. The problem does not affect Windows 2000.

A small addition to XP's registry avoids this problem by making the Windows Vista partition inaccessible when, and only when, XP is running. You must, however, use extreme care to ensure you enter the correct drive letter in the following corrective procedure. You must never enter the drive letter used by XP - that would prevent XP from starting! This fix is applied when XP is booted and not from any other Windows.

  1. Download this tiny xp_rstr_fix.reg file, xp_rstr_fix.zip, and unzip it to XP's Desktop.
  2. Startup to Windows XP. It must be XP and not any other version of Windows.
  3. Note the drive letter allocated to the Vista partition in Windows Explorer.
  4. Right-click xp_rstr_fix.reg on the Desktop and select Edit. Look at this line in xp_rstr_fix:
    "\\DosDevices\\Z:"=dword:00000001
    • Carefully change that Z to the drive letter allocated to the Vista partition
      (make sure you do not remove the \\ before the letter or the : after the letter).
    • Save the file back to the Desktop as xp_rstr_fix2.reg
    • Right-click xp_rstr_fix2.reg on the Desktop, click Merge, and click OK.
  5. Reboot to Vista, and create a new Restore Point (right-click Computer > Properties > System Protection).
  6. Delete the two .reg files on XP's Desktop when you're finished.

When XP is booted, you will be denied access to the Vista partition and the partition will appear to be unformatted (RAW) even though the contents have not been changed. It will still be allocated a drive letter in XP. When you boot to Vista you will have access to all your drives including the Windows XP partition.

This is the full xp_rstr_fix.reg file: (the blank line is required)

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices\Offline]
"\\DosDevices\\Z:"=dword:00000001

[top of page]

Repair Windows Vista Startup

You will not have any problem if you follow the instructions as stated above. However you might encounter some freak occurrence like a power failure during installation. Windows Vista will boot again if you execute the following procedure.

  1. Bootup a Windows Vista installation DVD or even from NeoSmart's free Windows Vista System Recovery Disk.
    It must be a 64-bit version if a 64-bit Windows is installed.
    • Press a key when you see Press any key to boot from a CD or DVD.
    • Select your Language and then Time....
    • Select Repair your computer (bottom left of the Install now screen).
      An automatic check of your system will run.
    • Click Repair and restart
      Windows Vista should boot normally (very likely). If not, continue here.
  2. Bootup from the Windows Vista installation DVD again
    • Select Repair your computer again.
    • In System Recovery Options, select Windows Vista, and click Next.
    • Click Startup Repair.
    • Click Finish when it's complete, and then Restart.
    • You must let CheckDisk run if requested.
      Windows Vista should boot normally.

If still stuck for a solution, boot again from the installation DVD, select Repair your computer, highlight Windows Vista, get to a Command Prompt, use DIR command (DIR C: or DIR D: etc.) to identify drive letter allocations (sizes and Labels will help), and type in:
bootrec /FixMbr
bootrec /FixBoot
bootrec /RebuildBcd
X:\boot\bootsect.exe /nt60 C:
  (where X: is your DVD drive letter, and C: is the installation drive for Windows Vista).
EXIT, and click Restart. Remove the DVD.

[top of page]

Related Reading How do I ...


Please remember that you alone are responsible for the consequences of changes you make to your computer hardware or software.

www.thpc.info was formally TweakHomePC at www.tweakhomepc.virtualave.net
Copyright © LarryM 1998-2011 thpc@mail.com