Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

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


View products that this article applies to.

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.

↑ Back to the top


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 0
      create partition primary 
      assign letter=e
      select disk 1
      clean
      create partition primary size=14000 [Sizes may vary according to your 
      need]
      assign letter=d
      create partition primary
      assign letter=f
      

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


More information

For more information about Windows PE, visit the following Microsoft Web site:

↑ Back to the top


Keywords: KB947441, kbprb, kbexpertiseinter, kbtshoot

↑ Back to the top

Article Info
Article ID : 947441
Revision : 2
Created on : 2/13/2008
Published on : 2/13/2008
Exists online : False
Views : 291