Drive letters change automatically in Windows Server 2003 when you use the Diskpart.exe tool to assign drive letters

Support for Windows Server 2003 ended on July 14, 2015

Microsoft ended support for Windows Server 2003 on July 14, 2015. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.

This article has been archived. It is offered "as is" and will no longer be updated.
Symptoms
When you use the Diskpart.exe tool to assign drive letters for partitions in the Microsoft Windows Preinstallation Environment (Windows PE) phase, and then you install Windows Server 2003 by using an unattended file, drive letters change automatically in Windows Server 2003.
Resolution
To resolve this problem, use one of the following methods:
  • Set the size of the second partition on the same drive.
  • Make the first partition of the second drive active.
  • Take the following actions:
    • Add the following section into the unattended file:
      [GuiRunOnce]Command1=C:\PostOs\diskpart.bat C:\PostOs\diskpart.bat contents: diskpart.exe /s c:\PostOs\diskpart.txt format D: /fs:ntfs /q /y [optional command]format E: /fs:ntfs /q /y [optional command]format F: /fs:ntfs /q /y [optional command]
    • Add Diskpart.txt and Diskpart.bat to the distribution folder.
    • Add text to the C:\PostOs\Diskpart.txt file that resembles the following text:
      select disk 0create partition primary assign letter=eselect disk 1cleancreate partition primary size=14000 [Sizes may vary according to your need]assign letter=dcreate partition primaryassign letter=f
Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
More information
For more information about Windows PE, visit the following Microsoft Web site:
Properties

Article ID: 947441 - Last Review: 01/15/2015 17:38:19 - Revision: 2.0

  • Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
  • Microsoft Windows Server 2003, Standard Edition (32-bit x86)
  • Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
  • kbnosurvey kbarchive kbtshoot kbexpertiseinter kbprb KB947441
Feedback