Microsoft KB Archive/883390

= How to create a hard disk that you can use to start a Windows PE version of Windows Server 2003 =

Article ID: 883390

Article Last Modified on 10/30/2006

-

APPLIES TO


 * Microsoft Windows Server 2003, Standard Edition (32-bit x86)
 * Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
 * Microsoft Windows Server 2003, Web Edition
 * Microsoft Windows Server 2003, Enterprise Edition for Itanium-based Systems

-





INTRODUCTION
You can use Microsoft Windows Preinstallation Environment (Windows PE) to create customized installations of Windows. You can also use Windows PE as a hard-disk-based recovery solution. This article describes how to create a hard disk that you can use to start a Windows PE version of Microsoft Windows Server 2003.



MORE INFORMATION
Before you follow the procedures in this article, create the installation image that you want to use on your computer screen. To create the installation image, see the “Creating a Customized Version of Windows PE” section of the Microsoft Windows Preinstallation Environment User's Guide. This user's guide is the Winpe.chm file of the Windows PE distribution CD-ROM documentation.

Create a Windows PE hard disk that you can use to start a 32-bit version of Windows Server 2003
 Start your computer by using the Microsoft Windows PE CD. To do this, insert the Windows PE CD into the CD drive or the DVD drive, and then restart your computer. Use the DiskPart program to create a formatted, active partition.

For more information about how to use DiskPart to format and partition a hard disk, see the &quot;DiskPart Commands&quot; section of the Microsoft Windows Preinstallation Environment User's Guide. On the active partition, create a Minint folder. To do this, type the following at a command prompt, and then press ENTER:

md Minint

Note You must name the folder Minint. Copy the contents of the \I386 folder to the Minint folder. To do this, type the following at a command prompt, and then press ENTER:

xcopy &quot; \i386\*.*&quot; :\minint /s

is the location of the customized version of Windows PE that you created. is the active partition that you created in step 2. For example, type the following:

xcopy &quot;c:\build.x86\i386\*.*&quot; c:\minint /s

 Copy Ntdetect.com from the \I386 folder to the root of the active partition. To do this, type the following at a command prompt, and then press ENTER:

xcopy &quot; \i386\ntdetect.com&quot; :\

For example, type the following:

xcopy &quot;c:\build.x86\i386\ntdetect.com&quot; c:\

 Copy :\Minint\Setupldr.bin to  :\Ntldr. To do this, type the following at a command prompt, and then press ENTER:

xcopy &quot; :\minint\setupldr.bin&quot; :\ntldr

For example, type the following:

xcopy &quot;c:\minint\setupldr.bin&quot; c:\ntldr

 Restart your computer.

Your computer will start by using Windows PE.</li></ol>

Create a Windows PE hard disk that you can use to start a 64-bit version of Windows Server 2003
<ol> Start your computer by using the Windows PE CD. To do this, insert the Windows PE CD into the CD drive or the DVD drive, and then restart your computer.</li> Use the DiskPart program to create a primary data partition.

For more information about how to use DiskPart to format and partition a hard disk, see step 3 in the &quot;Create a bootable Windows PE disk for 64-bit versions of Windows PE&quot; section of the Microsoft Windows Preinstallation Environment User's Guide.</li> Use the DiskPart program to create a formatted, active Extensible Firmware Interface (EFI) partition. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> At a command prompt, type diskpart, and then press ENTER.

The DiskPart program starts.</li> Type 0 to select disk 0, and the press ENTER.</li> Type 1 to select partition 1, and the press ENTER.</li> Type the drive letter that you want to assign to the EFI partition, and then press ENTER. For example, type g .</li> Exit DiskPart.</li></ol> </li> On the primary data partition, create a Winpe\Ia64 folder. To do this, type the following at a command prompt:

md :\Winpe\Ia64

is the primary data partition that you created in step 2. For example, type the following:

md c:\Winpe\Ia64

</li> Copy the contents of the \Ia64 folder to  \Winpe\Ia64. To do this, type the following at a command prompt, and then press ENTER:

xcopy &quot; \ia64\*.*&quot;  /hide

is the location of the customized version of Windows PE that you created. For example, type the following:

xcopy &quot;c:\build.ia64\ia64\*.*&quot; c:\winpe\ia64 /hide

</li> Copy \Ia64\Setupldr.efi to. To do this, type the following at a command prompt, and then press ENTER:

xcopy &quot; \ia64\Setupldr.efi&quot; :\

is the drive letter of the EFI partition that you created in step 3. For example, type the following:

xcopy &quot;c:\build.ia64\ia64\setupldr.efi&quot; g:\

</li> On the EFI partition that is in the same location as the Setupldr.efi file, create a blank &quot;$WinPE$.$$$&quot; file. To do this, type the following at a command prompt, and then press ENTER:

echo blank file >> :\$Winpe$.$$$

For example, type the following:

echo blank file >> g:\$Winpe$.$$$

</li> To start the computer from this version of Windows PE that you have put on the EFI partition, run the efinvr command. To do this, type the following at the command prompt, and then press ENTER:

efinvr /add :\setupldr.efi

For example, type the following:

efinvr /add g:\setupldr.efi c:\winpe\ia64

</li> Restart your computer.

Your computer will start by using Windows PE.</li></ol>

Notes <ul> If you create a Windows PE CD that you can use to start an East Asian language version of Windows Server 2003, you must copy the Bootfont.bin file from the \Ia64 folder to the root of the destination hard disk. Without the Bootfont.bin file, the loader prompt displays incorrect characters.</li> <li>You can follow a similar procedure if you start the computer by using an operating system that is located on the hard disk instead of starting the computer with your Windows PE CD. When you run DiskPart from a full Windows Server 2003 operating system, DiskPart cannot assign a drive letter to an EFI partition. Instead, in step 3 of this procedure, use the mountvol command. To do this, type the following command at a command prompt, and then press ENTER:

mountvol /s :

For example, type the following:

mountvol /s g:

</li></ul>

<div class="references_section">