Simple clear advice in plain English

Set up and troubleshoot a dual-boot system

If you use several operating systems on the same PC, a good solution is to install each of them and choose which to use on start-up. Here's how to get the best of both worlds

Many of us need to use more than one operating system from time to time. Perhaps you like to use Linux for day-to-day tasks while leaving Windows XP in place to run games, or you might want to check out the new features in the Windows 7 beta without damaging an existing copy of Vista.

Often the simplest way to run a second operating system is to use virtualisation software, such as the free Virtualbox or Microsoft’s Virtual PC. For demanding tasks, though, this method just isn’t fast enough. What you need is to dual boot: to install both and choose which to use when the PC starts up.

This can be hard to set up, though, and if you make a mistake there’s always a chance that the computer will refuse to run anything at all. In this back to basics article we’ll explain how to set up and troubleshoot dual-boot systems.

Adding Vista to XP
One of the most common dual-boot setups is to run Windows XP and Vista alongside one another on one disk. This can be very simple to set up, but the method depends on what you’re starting with.

If you’re starting with a Windows XP computer and adding Vista, the process of dual booting is simple. If there’s room on the disk for a new primary partition then add one, or if not make room first using a tool such as Sourceforge's Gparted.

If you’re unclear about the difference between primary and logical partitions, see 'Partition types' at the end of this article. Install Vista into the new partition and it will automatically create a boot menu with two options: ‘Earlier version of Windows’ and ‘Microsoft Windows Vista’.

By default the menu will wait 30 seconds and, if nothing is chosen during that time, start Vista. You can change both the time limit and the default, however.

In Vista, start a command prompt with administrator privileges: press Start, type cmd, right-click the cmd.exe program shortcut that appears and choose Run as administrator. To alter the time limit to 5 seconds type:
bcdedit /timeout 5

To change the default option you need to know what each is called. Type bcdedit /enum and a list will appear. Look for the paragraph that lists the XP boot settings and find the identifier: this will normally be {ntldr}. Use the bcdedit command to make this the default: bcdedit /default {ntldr}

Adding XP to Vista
The only real problems with this setup appear if you install XP after Vista rather than the other way around. This is because, whereas Vista was designed to look out for an XP installation and accommodate it, XP’s setup program will simply ignore Vista and set itself up as the only option. In order to recover from this you’ll need a Vista installation DVD.

If you find that after installing Windows XP your copy of Vista is inaccessible, restart the PC and boot from your Vista installation disc. Choose English UK at the first screen and at the second click the ‘repair your computer’ link.

The setup program may find the problem and offer to repair it automatically: if so, choose ‘Repair and restart’. If not, click Next at the list of operating systems and choose to open a command prompt. Next, type:

bootrec.exe /fixmbr
bootrec.exe /fixboot

These commands will remove XP from the hard disk’s Master Boot Record (MBR) and reinstate the Vista loader. When you restart the computer Vista should become available.

Sometimes after doing this Windows XP will disappear from the boot options and Vista will start immediately. If this happens you could boot Vista and use the bcdedit command to reinstate a Windows XP entry in the boot menu.

For a less fiddly approach, though, download the EasyBCD tool. This is a free graphical interface for bcdedit that makes the process far quicker.

Once installed, run EasyBCD. Click Add/Remove Entries from the menu, select the Windows tab and set the Type dropdown to ‘Windows 2K/NT/XP/2K3’. Give the entry a name, then click the Add Entry button and then Save. On restarting the PC you should see a new option for Windows XP.

Reader Comments

   

Add your comment

All fields must be completed. Your email address will not be displayed or used to send marketing messages.

All messages will be checked by moderators before appearing on the site.

See our Privacy Policy for more information.

Related articles

virtualbox-hardware-options-4

Disable hardware acceleration in VirtualBox to fix problems

Disabling unsupported virtualisation options in VirtualBox may fix problems if the program is not working

Security shield illustration

How to use the Command Prompt

Lurking under Windows is the little-known world of the command line. We explain how to use this to fix faults and make your PC much more secure

Loose cables graphics cards or memory modules can cause problems

Solve problems with your computer

Are you frustrated when your PC beeps, gives an error message and doesn't do what you want it to? We explain what these problems are and how to fix them

Question & Answer

Q.Why are some of the keys on my keyboard doing strange...

> Read the answer

Q.Is my phone’s Bluetooth any use?

> Read the answer

Q.Can I switch boot drives so that I can work on older...

> Read the answer

Best deals on the web

img

Apple iMac 21.5" (MC309)

£926.40- Buy it now

img

Dell Inspiron 620 ST Intel Core i3-2100 3.10GHz / 3GB / 500GB / DVDRW / Win 7 Home Premium

£329.00- Buy it now

img

ZooStorm 7877-1023

£386.38- Buy it now

Latest issue & subscription deals

Poll

Are you concerned about viruses that target mobile phones?

Jargon Buster

Computing terms explained in plain English

Bittorrent

A technology for downloading files. Allows even very large files to be downloaded quickly.

Great shopping deals from Computeractive