You are on page 1of 14

How to dual boot Windows XP and Windows 7 (XP installed first)

Got your hands on the Windows 7 beta and want to dual boot it alongside Windows XP? Here's our step-by-step tutorial to get you up and running with Microsoft's latest OS.

Scenario: You want to install Windows 7 on your PC alongside your XP installation, on the same drive. You have already installed XP. Tutorial Summary: We're going to shrink the Windows XP partition on the hard disk and create enough space for an installation of Windows 7 Beta Home Premium. There are two easy methods of doing this - using the GPartEd Live CD and the DISKPART utility on the Windows 7 DVD. On some systems, depending on the primary storage controller, We'll then install Windows 7 and use the EasyBCD utility to modify Windows 7's bootloader to get XP loading properly. This tutorial was tested on a VMWare Workstation 6 virtual machine.
Create Free Space for Windows 7

We assume that before you start this tutorial, you have backed up the drive (partitions and data) that will host the two operating systems. Your first step will be to modify the Windows XP system partition to make space for Windows 7 using GParted The GParted Live CD ISO is available here burn it to CD and boot the system from the disc. The version we used was 0.3.7-7. When you boot from the GParted LiveCD, depending on your system, you should just need to select the auto-configuration boot option.

Option 1 - Using GPartEd

During boot, press Enter three times to accept the defaults for keymap, language and graphics settings. When the main GUI loads, right-click on the main Windows XP NTFS partition (depending on your setup, probably /dev/hda1) and select Resize/Move.

Use the slider to reduce the partition size and free up enough room to install Windows 7 (at least 10GB) and click Resize/Move.

The changes havent actually been made, theyve just been scheduled to run. To commit the changes and resize the partition, click Apply. GParted will ask to confirm the changes hit OK and away you go.
Option 2 - Using DISKPART

Boot the machine from the Windows 7 DVD. Select the appropriate language and then "Next". On the Windows 7 "Install now" page, press SHIFT + F10 to launch a Windows PE 2.0 command window. Then type in DISKPART and press enter to get into the DISKPART utility.

Now type in LIST VOLUME - this gives you a readout of the volumes available on the system. Select the main Windows XP volume by typing in SELECT VOLUME 0 (in most cases it will be Volume 0 - in our lab in was Volume 1).

Now type in SHRINK. Windows 7 will reduce the size the selected Volume by around 50%. Type "exit' to get out of DISKPART and then "exit' again to close the command window.

Now Install Windows 7

If you used the GParted LiveCD to shrink the XP partition, you'll need to reboot the system from the Windows 7 install DVD. If you've used DISKPART then you just need to click "Install now" and continue the installation. There will be two install options - Upgrade and Custom - select Custom. Once the install gets to the install location, there should be at least two options: a partition marked as Primary and Unallocated space. Select the unallocated space and click Next. The install will then commence. The Windows 7 boot manager will take over the system completely. Managing the Bootloader Once Windows 7 is installed and the system reboots, youll be presented with a boot menu with two options: Windows 7 and "Earlier Version of Windows, which is Windows XP. At this stage, the dualbooting is working perfectly, but if you want to make any changes to the bootloader then you'll start to encounter some differences between the way in which Vista and Windows 7 handle operating systems on different partitions. If you boot into windows 7 and open Windows Explorer, you'll see that there's only one disk partition - the Windows XP partition isn't there. This has the advantage that changes made to the Windows 7 OS have almost no chance of modifying Windows XP, but it does make things tricker if you want to change anything in the bootloader as we will see.

In previous dualbooting tutorials we make use of a utility called EasyBCD by NeoSmart Technologies, which is a very useful frontend GUI for BCDEDIT - the application which lets you view and modify the bootloader in Windows Vista. It also works fine for modifying the Windows 7 bootloader.

Once Windows 7 is installed, call up the browser and navigate to the EasyBCD download page download the latest version (1.7.2 at the time of writing), install and launch the application. On the "View Settings" window you can see the entries already present in the bootloader. The main difference between the two entries is the drive which they are loaded from. Windows 7 is loaded from C:, whereas Windows XP is loaded from \Device\Harddisk\Volume1. Now go into "Change Settings". Under "Entry-B ased Settings" you get the option to modify the "Earlier version of Windows" entry, but in the "Drive" drop-down menu you only have the option of C:\ or Boot. Neither of these correspond to where Windows XP is installed, so if you make any changes and click "Save Settings" you'll break the bootloader entry for Windows XP and it won't boot. There are a few options to get around this. Firstly, leave the boot entry alone - it works fine with the default settings.

Secondly, if you really do feel the need to change the entries, you can assign a drive letter to the Windows XP partition via Windows 7 Disk Management. Right-click on Computer and select "Manage", then click on "Disk Management" in the left-hand window. On the primary drive there will be two partitions - one defined as C:\ and the other without a drive letter. Right-click on the other partition (this is where Windows XP is installed) and select "Change drive letter or path". Choose a drive letter from the drop-down list and click OK. You'll now have a drive visible within Windows Explorer. Go back into EasyBCD and into the "Change Settings" window. Change the "Earlier version of Windows" entry to something else, make sure that you select the correct drive letter in the "Drive" drop-down list and click "Save Settings". Reboot the machine and the boot menu will reflect the changes you've made. The third option is to use BCDEDIT to change the "Earlier version of Windows" entry so that you don't have to assign a drive letter and can keep the original bootloader entry. To do this, launch a Command Window with elevated access - go to Start, All Programs, Accessories, right-click on Command Prompt and select "Run as administrator". Accept the UAC prompt. Type in BCDEDIT and press Enter. This will display a list of the currently-configured bootloader. You'll see that "Earlier Version of Windows" is handled by the Legacy OS Loader,

which has an identifier of [ntldr]. To change the description (which is what you see in the boot menu), type in the following command: bcdedit /set [ntldr] Description "Windows XP" Press Enter and the changes are committed. Obviously the description can be anything, but you have to include the quotation marks. Type in BCDEDIT again to make sure that the changes have taken hold, and then reboot. The boot menu will be updated with the modified entry. If you decide that dual-booting Windows 7 and XP is not for you, then it's fairly easy to wind back the clock using EasyBCD. All you have to do is remove the Windows 7 boot manager in EasyBCD go to Manage Bootloader, select Uninstall the Vista Bootloader and then Write MBR. At the moment EasyBCD isn't aware of a distinction between Vista and Windows 7, but using this option still works fine. Restart the machine and thats it the XP boot loader is the only one left on the system and XP loads. You can then delete the Windows 7 partition and use GPartEd to re-extend the partition to take up the entire disk, or the EXTEND command in Vista DISKPART.

Dual Boot Windows 7 with XP/Vista in three easy steps


Windows 7 has proved to be quite the drastic improvement over Vista, enough that it even has XP stragglers crawling out of the woodwork to check it out. Your chance to test drive the release candidate is now running thin, in fact, if you havent tried the new OS until now you are better off postponing your plans for a week and installing the real thing. The final version of Windows 7 has already been sent to partners and is scheduled to debut publicly later this week on October 22. Even if you have pre-ordered Microsofts latest OS, installing it on top of your existing copy of Windows may feel a bit premature if you haven't been running the beta or RC as your main installation. Thankfully, setting up a dual boot configuration is both easy and practical. If youre looking for a quick and dirty, yet thorough how-to on getting Windows 7 to run alongside your installation of XP or Vista, read on. Step 1: Create/Obtain an Installation Disc

Yes, were all aware most motherboards these days allow you to boot from a USB flash drive, but setting that up is a guide in itself. Were going to assume that you either already have a Windows 7 DVD, or have an ISO file. If the former is true, feel free to skip ahead to Step 2. To create a Windows 7 disc, pop a blank DVD into your burner, and burn it as an image file with any of the countless apps that can handle ISOs. Our personal favorite is ImgBurn, but to name some others: Burn4Free CD and DVD, CDBurnerXP and Ashampoo Burning Studio Free. Step 2: Create a New Partition Editors note: Before continuing Id like to take a moment to acknowledge the fact that data corruption is a possibility. Even though this guide is absolutely harmless, random software anomalies can and do occur do yourself a favor and backup your precious data before proceeding. Moving on to more pressing matters, we will need to create unallocated disk space by resizing an existing partition in your current hard drive, and then create a new partition on that free space for Windows 7 to run on. Most of you who are reading this will probably only have one existing partition, dedicated to the operating system youre currently using. With that in mind, to help you in the process of creating a new partition well be looking at two separate approaches. While Windows Vista has built-in utilities to resize active partitions, XP does not, and thus we must resort to using a third party application (GParted). Create a New Partition on Windows Vista If you are currently running Windows Vista as your primary operating system, we can use its built-in tools to modify your hard drive partitions. You can also use a third-party tool called GParted, which we are recommending to Windows XP users (see below). You can skip to the XP section and follow the exact same directions if you prefer the GParted route for any reason. On Windows Vista, click Start and enter diskmgmt.msc into the search bar. A window titled Disk Management should open displaying basic information about the drives attached to your PC. Right click the partition on Disk 0 and select Shrink Volume.

This should present you with drive capacity information as well as the option to enter an amount you'd like to shrink your partition by. The recommended minimum partition size for Windows 7 is 16GB, so enter a figure of that size or larger and then hit Shrink.

You should now see unallocated space on your hard drive in the capacity you specified, situated just after your now resized original partition. Before creating a new partition and assigning a letter to it, be a perfectionist and reassign your optical drives to the next letter down from what they are now, so that your new empty partition can have whatever letter follows your first partition (probably D).

Right click the newly unallocated space and select New Simple Volume... which ought to open a wizard screen.

On your way through the wizard you'll be asked to define the capacity for your new volume to be; let it occupy the entire size of the unallocated space you've created, assign it the letter that you've just freed, quick format the volume using the NTFS file system and default allocation unit size (volume label can be anything, just name it Windows 7).

You should now see a healthy primary partition with the capacity and label previously defined replace the unallocated space. With that, you can move on to Step 3. Create a New Partition on Windows XP If you've read the previous section explaining how to create a new partition using Vistas built-in tools you will undoubtedly notice that the following additional steps are not required in that situation. Here, the overall process is essentially the same, but we'll be using GParted instead of the Windows Disk Management utility. Windows XP users will ultimately have to rely on a third party tool like this. Download the latest copy of GParted here, and then burn it to a disc just like you did with the Windows 7 ISO -- GParted will fit on a CD. After you've downloaded and burned your image of GParted, put it in your optical drive and reboot. Shortly after booting off the disc you'll have to choose your preferred language, keymap and screen resolution.

Once the partition software has loaded, right click the partition you're going to resize (you probably only have one and it's likely on dev/hda1) and select Resize/Move.

This should present you with drive capacity information and the option to enter a new size you'd like your partition to be. The recommended minimum partition size for Windows 7 is 16GB, so ensure that your new partition will meet that requirement.

You should now see unallocated space on your hard drive in the capacity you specified, situated just after your resized partition. Right click the newly unallocated space and select New. This ought to open a window requesting the amount of free space you'd like preceding and following the new partition as well as the new partitions size. Fill in 0 for both the free space preceding and following to occupy the entire unallocated space. Designate it a Primary Partition and format it using NTFS.

You should now see a healthy primary partition with the capacity you defined replace the unallocated space. Click apply up top to initialize the operation. You can now move on to Step 3. Install Windows 7 + Tips With the Windows 7 DVD in your optical drive, reboot and press any key to boot from the disc when prompted. The installation wizard that will greet you is pretty straightforward. Despite that, there is one critical thing to note: Make absolutely sure that you choose the Custom (advanced) installation option, so you're able to select the freshly created partition. Be careful, you run the risk of installing over your old operating system along with all of your data if you select the wrong partition.

After defining all configuration parameters Windows will continue on with the installation process for roughly 15-30 minutes and then prompt you for more basic input. Pat yourself on the back! You've successfully installed Windows 7 alongside your previously existing instance of Windows and you'll be able to check out Microsofts most recent operating system.

Troubleshooting Tips: Make sure you shutdown/reboot your PC from within Windows cleanly if you're having issues when attempting to alter your partition with GParted. Can't boot off the GParted or Windows 7 disc? Take a look in your BIOS and ensure that your boot sequence is configured properly. You'll want the optical drive to take precedence over your hard drives so you can boot off the CD. Want to undo your dual boot configuration? Read our guide for Removing a Windows 7 partition. While aimed at users running beta versions of Windows you can potentially follow the same guidelines as explained in that article to remove your older XP or Vista installations in favor of a new Windows 7 installation as well.

You might also like