How can I un-mark a partition as active?

50,935

Solution 1

1.) Start>Run..

2.) “CMD”

3.) “diskpart” to load up the utility

4.) “list disk” to list all the disks

5.) “Select disk X” where X is the desired disk

6.) “list partition” to list partitions on the selected disk

7.) “select partition X” where X is the desired partition that is currently marked active

8.) “inactive”

Solution 2

For 2 drives with separate Windows Installations where one volume needs to be removed, and the OS is being stubborn this should work.

After setting the drive to inactive, if the drive is giving you trouble the MBR may need to be changed. If you are using GRUB or another bootloader this most likely will be destroyed.

  1. Run DISKPART elevated.
  2. Type LIST VOLUME
  3. Type SELECT VOLUME # (Desired Volume to Remove), this automatically selects the associated partition as well)
  4. Type INACTIVE
  5. Type SELECT VOLUME # (Desired Volume to Boot From)
  6. Type ACTIVE
  7. Type EXIT
  8. Run CMD Elevated
  9. Type BCDBOOT C:\windows /s C: [Replace C: and C:\Windows with desired booting drive and windows directory, add /f UEFI if using UEFI mode in BIOS)
  10. Type BOOTSECT /nt60 [/nt52 for Win7] ALL /force /mbr
  11. Restart the computer

Another thing I did in diskpart (Probably not mandatory, but I'll put this out here) was the following:

After I selected the partition to remove I did this (This might remove any system-based flags, but probably not needed): SETID DISK ID=01 OVERRIDE

Now the drive should be able to be deleted.

BE CAREFUL with this, you can destroy your system if this issue doesn't apply to what you are trying to fix.

Solution 3

  1. Windows +R
  2. Type "cmd"
  3. At the prompt type "diskpart"
  4. then after the ">" symbol type " list disk"

DISKPART> list disk

Disk ### Status Size Free Dyn Gpt


Disk 0 Online 28 GB 1536 KB Disk 1 Online 233 GB 993 KB

5.Now select the disk which you want to make INACTIVE (For instance if i want to make my Disk 1 as active i.e where the OS is installed and REQUIRED to boot, i need to select the drive which i want to make INACTIVE. In my example DISK 0)

DISKPART> SELECT DISK 0 Disk 0 is now the selected disk.

  1. Type "list partition"

DISKPART> list partition

Partition ### Type Size Offset


Partition 1 Primary 28 GB 1024 KB

  1. Since there is a single partition on DISK 0, select it by issuing the command "select partition 1"

DISKPART> select partition 1

Partition 1 is now the selected partition.

8.Type "inactive" - this will make disk 0 partition 1 as inactive

============================= Explanation : This error crops up because you have been in Computer Management > Storage > Disk Management and selected more than 1 drive as ACTIVE together with the one which was already active- the one where your OS was .

Point to remember : THERE SHOULD BE ONLY ONE ACTIVE DRIVE SO YOU CANT SET MORE THAN ONE DRIVE AS ACTIVE

********************************IMPORTANT THING TO DO FIRST *************************************** Also since you cant get your OS to boot you must specifically select the boot disk from where to boot. On my PC it was F12-> then i selected "hard disk" from where i had all my drives listed. From here you must select the drive where your OS was initially installed Finally run the command 1-8 above the disable the other drives as ACTIVE.


Share:
50,935
swagner88
Author by

swagner88

Updated on September 18, 2022

Comments

  • swagner88
    swagner88 almost 2 years

    Overview: I use a backup storage enclosure with 6 backup drives incrementally backup up and taken off-site. One day I noticed that the backup process was failing. I logged onto the server that is connected to the drives. I then noticed that none of the backup drives were currently mapped when the next one numerically should have been.

    At first I chalked it up to a simple mistake of not mapping the drive previously. However, when I had attempted to map the drive BAK6 I received an error of: "parameter incorrect". BAK6 also had a specific flag of "active" in it's Status" where all the others are simply "Primary Partition".

    I was able to map the other drives fine so I mapped BAK1 to E. When I removed and re-added the drive physically it auto mapped E to BAK6 unmapping it from BAK1. Then, BAK1 could not be mapped giving the same error. I ended up restarting the server and things started working again but now BAK6 is still marked as active.

    Question: How do I remove this flag of active from the drive?

  • swagner88
    swagner88 about 13 years
    Great! I was able to use diskpart to mark the partition as inactive. Just for future reference, here are the steps I took:
  • swagner88
    swagner88 about 13 years
    Start>Run.. “CMD” “diskpart” to load up the utility “list disk” to list all the disks “Select disk X” where X is the desired disk “list partition” to list partitions on the selected disk “select partition X” where X is the desired partition that is currently marked active “inactive”
  • swagner88
    swagner88 about 13 years
    Wow, apparently I need to ask how to format with line breaks on serverfault comments.
  • swagner88
    swagner88 about 13 years
    Using Windows Server 2008 R2 x64
  • Pacerier
    Pacerier about 9 years
    This doesn't seem to work for UEFI. It says "The INACTIVE command can only be used on fixed MBR disk". How can we get it to work for UEFI?
  • G_Style
    G_Style almost 3 years
    These are great steps. Just remember you can only mark one partition as active on a disk. So while you can type 'inactive' on a selected partition, thus selecting a different partition and typing 'active' marks the others as inactive on that disk respectively.