Here's how to use WinPE/Diskpart instead of Dos/Bootprep, etc

B

Bill [MS]

On disk one of Windows XP Embedded SP1 we include
a copy of WinPE to help in your deployment. On that
disc there is a partitioning program called diskpart.exe
that can be used to partition drive in lieu of booting up a
dos disk and using fdisk. This has the benefit of being
able to create NTFS bootable drives directly, which
removes the need for bootprep. Here is a simple walk
through that will demonstrate how to make a 600 mb fat
partition suitable for El-Torito or other image deployment.
For this example we want to create one primary partition
on the first hard drive.

One important caution is that to the best of my knowledge
we still recommend that you use dos or your manufacturer's
utilities to format flash. This is becuase sometime windows
reports the wrong drive geometry to fdisk for flash drives.

1) Set the bios to boot to the cdrom before the hard drive
2) Boot off of the first Windows XP Embedded disc (WinPE)
3) run diskpart.exe and issue the following commands:
a) select disk 0
b) create primary partition size=600
c) select partition 1
d) active
e) quit
4) reboot the machine and boot up WinPE again
5) format the drive, in our case we want FAT, so we would
issue "format c:/FS:FAT"
6) Now deploy your runtime....
(WinPE contains network drivers so you can easily map
a network share if your device has a network interface)

I hope you find this information helpful....

-Bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top