«

»

How To: Mark Partition As Inactive

If you managed to go into Disk Management in Windows XP and somehow click “Mark Partition as Active” accidentally, this could render your computer unbootable. If you are so lucky that you haven’t rebooted yet, here is one possible solution to the problem: mark the partition as inactive using the DISKPART tool:

  1.  Open up a command prompt and type DISKPART.
  2. Type LIST DISK
  3. Type SELECT DISK n (where n is the number of the old Win98 drive)
  4. Type LIST PARTITION
  5. Type SELECT PARTITION n (where n is the number of the active partition you wish to make inactive)
  6. Type INACTIVE
  7. Type EXIT to exit DISKPART
  8. Type EXIT again to exit the command prompt
  9. Reboot

Mark Partition as Inactive using the Microsoft DISKPART tool

If you have problems booting your computer or the above approach didn’t work for you, you could also try what Microsoft suggests on their help page entitled The computer does not start after you change the active partition by using the Disk Management tool – external link, opens in new window. For your convenience, the content of that page is reproduced below:

SYMPTOMS

After you use the Windows Disk Management snap-in tool to mark your primary partition as active, the computer may not start, and you may receive the following error message:

NTLDR is missing.

Press Ctrl+Alt+Del to restart.
CAUSE

This behavior occurs if the partition marked as active does not contain the Windows boot files or the boot files for another operating system. On Intel-based computers, the system partition must be a primary partition that has been marked as active for startup purposes. This partition must be located on the disk that the computer gains access to at startup. There can be only one active system partition at a time. If you want to use another operating system, you must first mark its system partition as active before restarting the computer.


RESOLUTION

IMPORTANT! Before performing the steps listed below, make sure that you have a good backup of your critical data files.

To resolve this behavior, use one of the following procedures:

• Try changing the active partition by booting to a floppy disk and then using disk utilities to manually change the active partition:

1. Boot to a command prompt by using a Microsoft Windows 95, Microsoft Windows 98, or Microsoft Windows Millennium Edition (Me) boot floppy disk.
2. At the command prompt, type fdisk, and then press ENTER.
3. When you are prompted to enable large disk support, click Yes.
4. Click Set active partition, press the number of the partition that you want to make active, and then press ENTER.
5. Press ESC.
6. Remove the boot floppy disk, and then restart the computer.

• Boot the computer by using a Windows XP boot disk. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

305595 How to create a boot disk for an NTFS or FAT partition in Windows XP
• If the partition that has been incorrectly marked as active is formatted in the FAT file system, the FAT32 file system, or the NTFS file system, you may be able to use the Windows Recovery Console to correct the behavior. For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

314058 Description of the Windows XP Recovery Console

NOTE: The system partition refers to the disk volume that contains the files that are needed to start Windows (for example, Ntldr,Boot.ini, and Ntdetect.com). On Intel x86-based computers, the system partition must be a primary partition that is marked active. On Intel x86 computers, this is always drive 0, the drive that the system BIOS searches when the operating system starts.

Using the Recovery Console, copy the Ntldr file from the Windows XP CD-ROM to the root directory of the current active partition. Follow these steps:

1. Start your computer by using the Windows XP Setup floppy disks or by using the Windows XP CD-ROM.
2. At the “Welcome to Setup” screen, press F10, or press R to repair.
3. Press C to start the Recovery Console.
4. Copy the Ntldr file from the Windows XP CD-ROM to the root of your system partition by using the following commands, pressing ENTER after each command: a. Type cd .. to go to the root of drive C.

Note that there is a space between the d and the two periods (..).

b. Type the letter of the CD-ROM drive.
c. Type cd i386.
d. Type Copy ntldr c:.
e. Type Copy ntdetect.com c:.
f. Type Bootcfg /add.

For more information, click the following article number to view the article in the Microsoft Knowledge Base:

291980 A discussion about the Bootcfg command and its uses

g. Type Exit.

If the partition was not formatted by using Windows, you might also need to run the Recovery Console fixboot command to make the active partition bootable.

After you can boot into Windows, it is recommended that you use the Windows Disk Management snap-in tool to reset the original system partition as the active partition, and then restart the computer.

  • dolar

    I would just like to say “big thanks”, becouse first part of this post saved my day!

  • http://blog.tommynation.com Tommy

    Happy to hear that!

    Thanks for the comment!

  • Corrie

    Wow thank you SOOO MUCH!
    i clicked ‘list disk as active’
    and googled what it meant later

    Lucky i didnt restart!

  • http://blog.tommynation.com Tommy

    Happy to hear that! That’s what I originally did as well, so I posted it because it could save someone from that awful experience. Glad it did :-)

  • inactive doesn’t work?

    inactive doesn’t work? it just lists the commands like typing help. What version of diskpart did “inactive” become a valid command?

  • http://blog.tommynation.com Tommy

    Please see Technet article DiskPart Command-Line Options.

    It works in Windows 7, Vista and XP as far as I know, but only for basic master boot record (MBR) disks.

  • inactive doesn’t work…in XP SP1

    Thank you for your response. However, I don’t have Win7 or Vista…I do have XP…SP1, so I’m guessing the meatier diskpart is in XP SP2 or XP SP3.

    It would be nice for someone (or Microsoft) to list the commands available in each version of diskpart & which diskpart is in which OS. My contribution to this list below.

    Also, I think diskpart needs a “dry-run” mode…you need to be able to run all the commands, make all the “changes”, then say “exit” & be able to say No to Saving Changes…it’s too hard to test/find out what stuff does, without screwing your drives over. Not even “help clean” or “clean /?” inside diskpart gets you help or more info (at least in version 1.0).

    My version…XP SP1 / DiskPart 1.0
    —————————-
    Microsoft Windows XP [Version 5.1.2600]
    —————————-
    C:\>diskpart/?

    Microsoft DiskPart version 1.0
    Copyright (C) 1999-2001 Microsoft Corporation.
    On computer:

    Microsoft DiskPart syntax:
    diskpart [/s ] [/?]

    /s – Use a DiskPart script.
    /? – Show this help screen.

    C:\>diskpart

    Microsoft DiskPart version 1.0
    Copyright (C) 1999-2001 Microsoft Corporation.
    On computer:

    DISKPART> help

    Microsoft DiskPart version 1.0

    ADD – Add a mirror to a simple volume.
    ACTIVE – Activates the current basic partition.
    ASSIGN – Assign a drive letter or mount point to the selected volume.
    BREAK – Break a mirror set.
    CLEAN – Clear the configuration information, or all information, off the
    disk.
    CONVERT – Converts between different disk formats.
    CREATE – Create a volume or partition.
    DELETE – Delete an object.
    DETAIL – Provide details about an object.
    EXIT – Exit DiskPart
    EXTEND – Extend a volume.
    HELP – Prints a list of commands.
    IMPORT – Imports a disk group.
    LIST – Prints out a list of objects.
    ONLINE – Online a disk that is currently marked as offline.
    REM – Does nothing. Used to comment scripts.
    REMOVE – Remove a drive letter or mount point assignment.
    RESCAN – Rescan the computer looking for disks and volumes.
    RETAIN – Place a retainer partition under a simple volume.
    SELECT – Move the focus to an object.

    DISKPART> exit

    Leaving DiskPart…
    —————————-

  • http://blog.tommynation.com Tommy

    Thanks for contributing!

    You are indeed correct, the INACTIVE command seems to be in Windows Server 2003 (not confirmed this myself), Vista, Windows 7, but not available in Windows XP.

    The only possible workaround I found, was to delete the partition, create an Extended partition and inside of that extended partition, a logical one. See Source (Tom’s Hardware forums)

  • http://www.facebook.com/profile.php?id=1227693884 Ian McLaughlin

    THANK YOU!!!!11111

  • Josoephosoro

    Hey i recently installed windows 07 in my laptop. after the installation i couldn’t see the other partition but  when i open up disk manager i can see it. Kindly help me as am really in need of the data inside it.

  • http://www.tommynation.com Tommy

    Hi, I’d like to try to help you. Did you try to right-click the partition that is only visible in disk manager, and select “Change drive letters and paths”. Assign a drive letter to the partition.

  • Theimperium15

    i give u 10/10 that was very helpful

  • Dkloke

    Thank you for this clear and helpful post.
    Successfully used the DISKPART method over RDP on Windows Server 2008 R2.

  • http://www.tommynation.com Tommy

    Glad to know it’s helped!