I'm having an issue regarding a disk imaging process.
- To get the machine into it's initial state, I first run a simple DISKPART CLEAN, and then restart the machine.
.
Diskpart
sel disk 0
clean
exit
- I then boot the machine into a Win-PE image, and make 3 partitions. One of which is a boot partition
.
Diskpart /s script.txt
with the following script.
Select Disk 0
clean
Create Partition Primary size=2000
Select Partition 1
format fs=fat Label="Boot" quick
assign letter=c
... create other partitions
- I then apply a .wim image to the boot partition.
.
imagex /apply bootimg.wim 1 c:
.... image the rest of the partitions
- Finally I use DISKPART to set the boot partition as the active partition.
.
Diskpart /s script.txt
with the following script.
Select Disk 0
Select Partition 1
active
When I follow these steps, I get the following error:
remove disks or other media
press any key to restart
If I follow the exact same process a second, third, or fourth time, the machine boots successfully, but I would very much like to get the process to work the first time.
Does anyone have any idea what's going wrong here? I'm quite stumped.