Volume numbers in the Volume ### column may change every time that you run the List Volume command in the Diskpart.exe utility in Windows

Volume numbers in the Volume ### column may change every time that you run the List Volume command in the Diskpart.exe utility in Windows

Article ID : 937252
Last Review : October 11, 2007
Revision : 1.4

SYMPTOMS

Consider the following scenario. You run the List Volume command in the Diskpart.exe command-line utility to display all the volumes on a Microsoft Windows-based computer. (This command also displays the drive letters that correspond to these volumes.) Then, you exit the Diskpart.exe utility. Next, you restart the Diskpart.exe utility, and then you run the List Volume command again to display all the volumes on the computer.

In this scenario, the volume-numbering scheme that appears in the Volume ### column the first time that you run the List Volume command may not match the volume-numbering scheme from the second time that you run the command. This behavior may cause problems if you rely on Diskpart.exe volume-numbering when you process scripts.

Note On a Microsoft Windows Server 2003-based computer, you may first notice this behavior after you upgrade from Windows Server 2003 Service Pack 1 (SP1) to Windows Server 2003 Service Pack (SP2). This behavior may also occur after you install the 923076 hotfix. Windows Server 2003 SP2 and the 923076 hotfix both install a newer version of the Diskpart.exe utility.

Back to the top

CAUSE

The volume numbers that are used in the Diskpart.exe utility are not intended to coincide with any other numbering schemes. The volume numbers represent a simple number index, and these numbers may vary every time that you run the Diskpart.exe utility.

Back to the top

WORKAROUND

To work around this behavior, use one of the following methods:

• Keep the Disk Management console (Diskmgmt.msc) running while you process scripts. Or, keep an instance of the Diskpart.exe utility running in the background while you process scripts. When you do this, the volume numbers should not change between instances of the Diskpart.exe utility.
• Use the volume Label information instead of the volume number to track particular volumes.

Note This method requires that you use unique volume names for each partition.

Back to the top

MORE INFORMATION

For more information about the Diskpart.exe command-line utility, click the following article number to view the article in the Microsoft Knowledge Base:

300415 (/Feedback.aspx?kbNumber=300415/) A Description of the Diskpart command-line utility

For more information about a similar issue with disk numbering, click the following article number to view the article in the Microsoft Knowledge Base:

937251 (/Feedback.aspx?kbNumber=937251/) The disk-drive numbers on a Windows Vista-based computer may not correspond as expected to the SATA channel numbers

Back to the top


APPLIES TO
• Windows Vista Ultimate
• Windows Vista Enterprise
• Windows Vista Business
• Windows Vista Home Premium
• Windows Vista Home Basic
• Windows Vista Starter
• Windows Vista Ultimate 64-bit Edition
• Windows Vista Enterprise 64-bit Edition
• Windows Vista Business 64-bit Edition
• Windows Vista Home Premium 64-bit Edition
• Microsoft Windows Server 2003, Datacenter Edition for Itanium-Based Systems
• Microsoft Windows Server 2003, Enterprise Edition for Itanium-based Systems
• Microsoft Windows Server 2003, Datacenter x64 Edition
• Microsoft Windows Server 2003, Enterprise x64 Edition
• Microsoft Windows Server 2003, Standard x64 Edition
• Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
• Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
• Microsoft Windows Server 2003, Standard Edition (32-bit x86)
• Microsoft Windows Server 2003, Web Edition
• Microsoft Windows XP Professional
• Microsoft Windows XP Professional x64 Edition
• Microsoft Windows XP Home Edition

Back to the top

Keywords: 
kbinfo kbtshoot kbexpertiseinter KB937252

Back to the top

 

Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
Microsoft Corporation. All rights reserved. Terms of Use | Trademarks


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button

Leave a Reply

*
To prove that you're not a bot, enter this code
Anti-Spam Image