Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Monday, December 23, 2019 3:13 AM | 1 vote
I just tried to create a bootable usb stick with MakeWinPEMedia with the command
MakeWinPEMedia /UFD D:\WinPE_amd64 J:
I ran into diskpart errorlevel -2147212243 indicating some error during the format process. I could not figure out the meaning of error -2147212243. However, trying to format the stick with diskpart as a fat32 volume showed that a 128 GB volume was too big. Creating a 32 GB volume and running the above command again then succeeded.
So the -2147212243 error must have to do something with the volume size. My question is if there is a list of these error codes? I found several other errors in the technet discussion boards that all were associated with media size somehow. And so -2147212243 goes into this category, too. But it would have saved me a lot of time if the manual would have indicated that MakeWinPEMedia tries to format the volume as FAT32 and therefore the usb volume size is limited to 32 GB.
Kind regards,
Holger
All replies (3)
Monday, December 23, 2019 9:11 PM
This should be classified as a bug report.
Looking at the .cmd file, it does not create partitions. Only formats existing ones. It does not have a check for existing volume size.
Tuesday, December 24, 2019 6:25 AM
Hi,
So far, I didn't find any list or document about this error code.
You can manually create the USB key partition and file structure using diskpart:
diskpart
select disk 1
clean
create partition primary size=10240
select partition 1
active
format fs=fat32
assign
Exit
This sets up a 10 gig partition on the key and formats it using FAT32. Then all that is left to do is manually copy the files that you created when running the copype command mentioned above. Below you would use the drive letter of your actual USB drive in Windows.
xcopy c:\winpe_x86\media\.* /s /e /f f:\
If you run into this weird diskpart error when trying to use the makewinpemedia command from the deployment environment command prompt, manually creating the disk may be the best option.
Best Regards,
Farena
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.
Thursday, December 26, 2019 5:59 PM
This is a "bug" in the .cmd file that is included with the ADK. This needs to be escalated to whichever group handles the ADK in order for it to be fixed.
OP's post already includes the workaround.
The "Question" in this thread is what the Diskpart errorlevel numbers mean.