Recently I checked Windows 10 IoT core on Raspberry Pi 3 B+ board. While flashing this operating system using Windows 10 IoT dashboard I got "Failed to write provisioning file to the microsd card" error. I tried several options in dashboard UI but I got this error continuously.
After some google search, I found a forum in Microsoft MSDN saying that this issue happens due to poor or slow speed SD cards. The SD card which I used previously is Kingston 16GB class 4 SDHC memory card. Later by following the site, I flash this image into new class 10 SD cards and SDXC cards but repeatedly I got this same errors.
After a couple of hours of digging I fix this issue by following the steps below:
After some google search, I found a forum in Microsoft MSDN saying that this issue happens due to poor or slow speed SD cards. The SD card which I used previously is Kingston 16GB class 4 SDHC memory card. Later by following the site, I flash this image into new class 10 SD cards and SDXC cards but repeatedly I got this same errors.
After a couple of hours of digging I fix this issue by following the steps below:
- Open Windows 10 IoT core dashboard and try to install the OS image.
- If you got "Failed to write provisioning file to the microsd card" error, close the Windows 10 IoT core dashboard.
- Open C:\Users\USER-NAME\AppData\Local\Temp\RPi2\msi\msicontent\Microsoft IoT\FFU\RaspberryPi2\ directory and make sure that the appropriate FFU file is located in that location. In my case, FFU file is "Flash.ffu". If you can't locate the FFU files try to search the C:\Users\USER-NAME\AppData\Local\Temp\RPi2\msi\msicontent\Microsoft IoT\FFU directories.
- Open the command prompt with administrative privileges.
- Type "diskpart" and in the diskpart prompt type "list disk".
- Identify the SD card and its disk number. In my system SD card is mapped to disk #1.
- Close diskpart prompt by issuing "exit" command.
- Now type this following command: "C:\WINDOWS\system32\dism.exe" /Apply-Image /ApplyDrive:\\.\PHYSICALDRIVE1 /SkipPlatformCheck /ImageFile:"C:\Users\USER-NAME\AppData\Local\Temp\RPi2\msi\msicontent\Microsoft IoT\FFU\RaspberryPi2\Flash.ffu". In this command be sure to replace PHYSICALDRIVE1 with the value you found in step 6. For example, if the disk #2 is mapped as SD card then replace PHYSICALDRIVE1 to PHYSICALDRIVE2.
Comments
-----------------------------------
Applying image
[==========================100.0%==========================]
Error: 2
The system cannot find the file specified.
The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log
---------------
Any Fix?