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?
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”
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.
DISKPART> list partition
Partition ### Type Size Offset
Partition 1 Primary 28 GB 1024 KB
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.
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.
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.
Although not listed in the document below, use the switch inactive. I can't be 100% sure that still works for 2008, but it does for XP/Server 2003. You could also use 3-rd party tools like Acronis Disk Director.
http://support.microsoft.com/kb/300415
Solved. In my case I was restoring two drives. C: and D:. One of them was set active and setting both as inactive did not work. I swapped the drives on the mother board and was able to run restore.