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.
[IMG]file:///C:/Users/FASTBO%7E1/AppData/Local/Temp/moz-screenshot-2.jpg[/IMG][IMG]file:///C:/Users/FASTBO%7E1/AppData/Local/Temp/moz-screenshot-3.jpg[/IMG]
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.
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.
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!