How to set active partition in Vista and XP

Posted on December 23, 2008 at 5:54 am

Do you have multiple partitions on your computer with different operating systems installed? If so, you can change the active partition in Windows so that when the computer starts up, it will load the appropriate operating system.

Changing the active partition is a fairly advanced task, so if you are planning on doing this, you probably didn’t need the explanation above! Only change the active partition if there is a operating system residing on that partition, otherwise you will have a non-working computer.

Also, there are a few things to note about marking a partition as active:

  1. A logical drive or extended partition cannot be marked as active, only primary partitions can be changed to active.
  2. You can only have one active partition per physical hard disk. Doing otherwise will cause all kinds of problems.
  3. If you have several physical hard disks on your computer, you can mark a partition as active on each disk, but only the active partition on the first hard disk detected by your BIOS will start up the computer. You can go into the BIOS and change the order to detect hard disks.

Set active partition in Vista and XP

Open Computer Management by going to the Control Panel, clicking on System and Maintenance, and then clicking Administrative Tools.

computer management

You can also just click Classic View and then choose Administrative Tools. Now click on Disk Management under Storage.

disk management

Right-click on the primary partition that you want to mark as active and choose Mark Partition as Active.

mark partition as active

Set active partition using command line

If you screwed something up in Windows and marked the wrong partition as active, you will no longer be able to boot your computer. In the case where you cannot mark a partition as active using Windows, you’ll have to us the command line.

First get into the command prompt using a boot up disk and type diskpart at the prompt.

diskpart set active partition

At the DiskPart prompt, type in list disk. You will see the list of disk currently attached to your computer. Now type in select disk n, where n is the disk number. In my example, I would type select disk 0.

diskpart select disk

Now that we have selected the correct disk, type in list partition to get a list of all the partitions on that disk. To select the partition we want to set as active, type in select partition n, where n is the partition number.

set active partition xp

Now that we have selected the disk and partition, we can mark it as active by just typing the word active and pressing Enter. That’s it! Now the partition is set.

Most people are familiar with using FDISK to mark a partition as active, but that is now an older and out-dated method. You should use DISKPART to manage disk and partitions on a Windows XP and Vista computer. Enjoy!

Enjoyed this post? Subscribe to Online Tech Tips via RSS Feed or via Email and receive free daily productivity tips.

» Filed Under Computer Tips

Add to Delicious Save this page Mixx it Stir it up on Mixx
Reddit Add to Reddit StumbleUpon Stumble this page  

Related Posts

3 Responses to “How to set active partition in Vista and XP”

  1. Rachael said on :

    Thank you, this was very useful! I am transferring files from one drive to another, and this has saved me loads of grief.


  2. Eric said on :

    How do you undo this action. after setting it to active my PC will not boot. I have to boot with the windows disc in.


  3. kjv1611 said on :

    To Eric (though I know this is a wee bit old by now, and therefore probably too late):

    Boot from something like the Ultimate Boot CD or else a live Linux distro, and set the correct partition as active from there - that should take care of your issue, I believe.


Please post your comments/suggestions!