Microsoft KB Archive/811980

= Problem with DiskPart Assigning Drive Letters =

Article ID: 811980

Article Last Modified on 10/31/2006

-

APPLIES TO


 * Microsoft Windows 2000 Service Pack 1
 * Microsoft Windows 2000 Service Pack 2
 * Microsoft Windows 2000 Service Pack 3
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Advanced Server

-



SYMPTOMS
When you use the DiskPart text-mode command interpreter create vol command to create virtual drives on a dynamic disk, a drive letter is automatically assigned to each volume that is created. When you create many virtual drives, you may receive an error message when all 26 drive letters have been used. When you are creating virtual drives by using a script file with DiskPart, issue the remove command to remove the associated drive letter and to prevent this error condition.

Example (correct script):

Select disk 1

create vol

remove

detail vol

The automatically assigned drive letters may not be consistently removed if both of the following conditions exist:
 * The create and remove commands are separated by other commands.
 * The commands are programmatically performed from a service instead of from a command prompt and a script.

Example (incorrect script):

Select disk 1

create vol

detail vol

remove //Warning: Incorrect. Move the &quot;remove&quot; command closer to the &quot;create vol&quot; command.



RESOLUTION
When you create virtual volumes by using DiskPart with a script file, put the remove command as soon after the create command as possible.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

Additional query words: volumes

Keywords: kbprb KB811980

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.