3
1
I'm currently deploying Windows XP (don't ask why) across a corporate environment and have a requirement to partition the disk during the unattended build. the disk must contain two partitions:
- C: will store the OS and should fill the remainder of the disk
- D: will be a partition for user data and should be 20GB
Diskpart is being used to prepare the disk for OS installation. WinPE appears to be assigning the DVD-ROM drive the letter D.
Firstly, I'm executing diskpart with the following command to re-assign the letter given to the DVD-ROM drive:
Select volume 0
assign letter=e
This appears to work as intended. Viewing the various volumes using Diskpart shows the DVD-ROM drive to be E:
The next diskpart script aims to create the two partitions mentioned above. Below are the commands I'm currently using:
select disk 0
clean
create partition primary size=20480
select partition 1
assign letter="D"
create partition primary
select partition 2
assign letter="C"
active
exit
The above command executes correctly but Windows XP fails to load. However when telling diskpart to create a single C: partition the OS loads fine. The image was captured using ImageX and was configured to only capture the contents of C. Because of this I do not believe the issue is in anyway related to how the image was captured.
Thanks in advance for any guidance offered.
"However when telling diskpart to create a single C: partition the OS loads fine."
Then do that, and partition the disk once you've booted back into Windows... – Breakthrough – 2013-03-21T19:19:38.450
Any reason why D is partition 1 and C is 2? Also, how about creating C and E (without reassigning the DVD drive) and if required swap the D and E drive letters later? – Karan – 2013-03-21T19:21:46.160
@Breakthrough Good idea. I'll actually give that a go now. – JHamill – 2013-03-21T19:25:12.947
@Karan no reason in particular. I'll tidy that up and give that a go also. – JHamill – 2013-03-21T19:26:02.263