Problem with DiskPart Assigning Drive Letters (811980)



The information in this article applies to:

  • Microsoft Windows 2000 Server SP1
  • Microsoft Windows 2000 Server SP2
  • Microsoft Windows 2000 Server SP3
  • Microsoft Windows 2000 Advanced Server SP1
  • Microsoft Windows 2000 Advanced Server SP2
  • Microsoft Windows 2000 Advanced Server SP3

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 "remove" command closer to the "create vol" 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.

Modification Type:MajorLast Reviewed:1/28/2003
Keywords:kbprb KB811980