none
DISM fail (error: 0xffffffff) when running code to apply flash.ffp image RRS feed

  • Question

  • Hello

    When i run the command

     "dism.exe /Apply-Image /ImageFile:flash.ffu /ApplyDrive:\\.\PhysicalDriveN /SkipPlatformCheck"

    i get following error:

    error: 0xffffffff

    DISM failed. No operation was preformed. For more information, review the log file.

    What might be the cause of this?

    Sys info:

    Windows 10 build 10074

    • Edited by DanielVibe Friday, May 1, 2015 6:48 PM
    Friday, May 1, 2015 6:43 PM

Answers

  • I've got my image to the SD card. The Flash.ffu folder had something else than the original zip content. I just deleted it and unpacked the zip file again to have the ffu file available.

    I suppose Error: 0xffffffff means file not found.

    Cheers,

     - Marius



    Friday, May 1, 2015 7:59 PM
  • Found the solution:

    Locate the flash.ffu directory and go there using cd. Then run the code.

    • Marked as answer by DanielVibe Saturday, May 2, 2015 6:29 PM
    Saturday, May 2, 2015 6:29 PM

All replies

  • A few things to check.

    #1 - You need to be running from within an Admin command prompt.

    #2 - In the command line you supplied you did not change the 'N' in the PhysicalDrive to an actual drive number.  To get get run:

    diskpart

    list disk

    exit

    That should provide you the number that your SD card is in the OS.  Just use that number in the command line (3 for example):

    "dism.exe /Apply-Image /ImageFile:flash.ffu /ApplyDrive:\\.\PhysicalDrive3 /SkipPlatformCheck"


    Jonathan Tanner | Microsoft | Windows 10 IoT Core Insider Preview Support | This posting is provided 'as is' with no warranties and confers no rights.

    Friday, May 1, 2015 7:07 PM
    Moderator
  • Forgot to add that, i get this result when running with admin cmd and using correct disk number. In my case 1.
    Friday, May 1, 2015 7:36 PM
  • The same for me. Also cmd as admin. This is my list disks:

      Disk ###  Status         Size     Free     Dyn  Gpt
      --------  -------------  -------  -------  ---  ---
      Disk 0    Online          119 GB   453 MB
      Disk 1    Online           14 GB  6144 KB

    And the dism I run is:

    dism.exe /Apply-Image /ImageFile:flash.ffu /ApplyDrive:\\.\PhysicalDrive1 /SkipPlatformCheck

    I also get Error: 0xffffffff

    Also on Windows 10 build 10074

    Thanks,

     - Marius

    Friday, May 1, 2015 7:44 PM
  • I get this error as well. 

    When I run list disk I get the SD card found on Disk 1 | Online | 7580 MB | 0b |   |

    I used \PhysicalDrive1 /   inside the parameters of the code.  Made sure to run Administrator Command Prompt. 


    I still get 0xffffffff

    My error Log is:

    2015-05-01 11:44:22, Info                  DISM   DISM.EXE: <----- Starting Dism.exe session ----->
    2015-05-01 11:44:22, Info                  DISM   DISM.EXE: 
    2015-05-01 11:44:22, Info                  DISM   DISM.EXE: Host machine information: OS Version=10.0.10074, Running architecture=amd64, Number of processors=4
    2015-05-01 11:44:22, Info                  DISM   DISM.EXE: Dism.exe version: 10.0.10074.0
    2015-05-01 11:44:22, Info                  DISM   DISM.EXE: Executing command line: dism.exe  /Apply-Image /ImageFile:Flash.ffu /ApplyDrive:\\.\PhysicalDrive1 /SkipPlatformCheck
    2015-05-01 11:44:22, Info                  DISM   DISM Provider Store: PID=5200 TID=4284 Getting the collection of providers from a local provider store type. - CDISMProviderStore::GetProviderCollection
    2015-05-01 11:44:22, Info                  DISM   DISM Provider Store: PID=5200 TID=4284 Provider has not previously been encountered.  Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
    2015-05-01 11:44:22, Info                  DISM   DISM Provider Store: PID=5200 TID=4284 Loading Provider from location C:\WINDOWS\System32\Dism\FolderProvider.dll - CDISMProviderStore::Internal_GetProvider
    2015-05-01 11:44:22, Info                  DISM   DISM Provider Store: PID=5200 TID=4284 Connecting to the provider located at C:\WINDOWS\System32\Dism\FolderProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2015-05-01 11:44:22, Info                  DISM   DISM Provider Store: PID=5200 TID=4284 Provider has not previously been encountered.  Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
    2015-05-01 11:44:22, Info                  DISM   DISM Provider Store: PID=5200 TID=4284 Loading Provider from location C:\WINDOWS\System32\Dism\WimProvider.dll - CDISMProviderStore::Internal_GetProvider
    2015-05-01 11:44:22, Info                  DISM   DISM Provider Store: PID=5200 TID=4284 Connecting to the provider located at C:\WINDOWS\System32\Dism\WimProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2015-05-01 11:44:22, Info                  DISM   DISM Provider Store: PID=5200 TID=4284 Provider has not previously been encountered.  Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
    2015-05-01 11:44:22, Info                  DISM   DISM Provider Store: PID=5200 TID=4284 Loading Provider from location C:\WINDOWS\System32\Dism\VHDProvider.dll - CDISMProviderStore::Internal_GetProvider
    2015-05-01 11:44:22, Info                  DISM   DISM Provider Store: PID=5200 TID=4284 Connecting to the provider located at C:\WINDOWS\System32\Dism\VHDProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2015-05-01 11:44:22, Info                  DISM   DISM Provider Store: PID=5200 TID=4284 Provider has not previously been encountered.  Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
    2015-05-01 11:44:22, Info                  DISM   DISM Provider Store: PID=5200 TID=4284 Loading Provider from location C:\WINDOWS\System32\Dism\ImagingProvider.dll - CDISMProviderStore::Internal_GetProvider
    2015-05-01 11:44:23, Info                  DISM   DISM Provider Store: PID=5200 TID=4284 Connecting to the provider located at C:\WINDOWS\System32\Dism\ImagingProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2015-05-01 11:44:23, Info                  DISM   DISM Provider Store: PID=5200 TID=4284 Provider has not previously been encountered.  Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
    2015-05-01 11:44:23, Info                  DISM   DISM Provider Store: PID=5200 TID=4284 Loading Provider from location C:\WINDOWS\System32\Dism\CompatProvider.dll - CDISMProviderStore::Internal_GetProvider
    2015-05-01 11:44:23, Info                  DISM   DISM Provider Store: PID=5200 TID=4284 Connecting to the provider located at C:\WINDOWS\System32\Dism\CompatProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2015-05-01 11:44:23, Info                  DISM   DISM Provider Store: PID=5200 TID=4284 Provider has not previously been encountered.  Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
    2015-05-01 11:44:23, Info                  DISM   DISM Provider Store: PID=5200 TID=4284 Loading Provider from location C:\WINDOWS\System32\Dism\FfuProvider.dll - CDISMProviderStore::Internal_GetProvider
    2015-05-01 11:44:23, Info                  DISM   DISM Provider Store: PID=5200 TID=4284 Connecting to the provider located at C:\WINDOWS\System32\Dism\FfuProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2015-05-01 11:44:23, Info                  DISM   DISM.EXE: Got the collection of providers. Now enumerating them to build the command table.
    2015-05-01 11:44:23, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: DISM Log Provider
    2015-05-01 11:44:23, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: FolderManager
    2015-05-01 11:44:23, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: WimManager
    2015-05-01 11:44:23, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: WimManager.
    2015-05-01 11:44:23, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: VHDManager
    2015-05-01 11:44:23, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: GenericImagingManager
    2015-05-01 11:44:23, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: GenericImagingManager.
    2015-05-01 11:44:23, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: Compatibility Manager
    2015-05-01 11:44:23, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: Compatibility Manager.
    2015-05-01 11:44:23, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: FfuManager
    2015-05-01 11:44:23, Info                  DISM   DISM Provider Store: PID=5200 TID=4284 Getting Provider GenericImagingManager - CDISMProviderStore::GetProvider
    2015-05-01 11:44:23, Info                  DISM   DISM Provider Store: PID=5200 TID=4284 Provider has previously been initialized.  Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    2015-05-01 11:44:23, Info                  DISM   DISM Provider Store: PID=5200 TID=4284 Getting Provider FfuManager - CDISMProviderStore::GetProvider
    2015-05-01 11:44:23, Info                  DISM   DISM Provider Store: PID=5200 TID=4284 Provider has previously been initialized.  Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    2015-05-01 11:44:23, Error                 DISM   DISM Imaging Provider: PID=5200 TID=4284 base\ntsetup\opktools\dism\providers\imagingprovider\dll\genericimagingmanager.cpp:2546 - CGenericImagingManager::InternalCmdFFUApply(hr:0xffffffff)
    2015-05-01 11:44:23, Error                 DISM   DISM Imaging Provider: PID=5200 TID=4284 base\ntsetup\opktools\dism\providers\imagingprovider\dll\genericimagingmanager.cpp:535 - CGenericImagingManager::ExecuteCmdLine(hr:0xffffffff)
    2015-05-01 11:44:23, Error                 DISM   DISM.EXE: GenericImagingManager processed the command line but failed. HRESULT=FFFFFFFF
    2015-05-01 11:44:23, Info                  DISM   DISM.EXE: Image session has been closed. Reboot required=no.
    2015-05-01 11:44:23, Info                  DISM   DISM.EXE: 
    2015-05-01 11:44:23, Info                  DISM   DISM.EXE: <----- Ending Dism.exe session ----->


    My boss tried redirecting the directory to the folder to make sure it read Flash.ffu from its location and received error: 87
    Friday, May 1, 2015 7:46 PM
  • I've got my image to the SD card. The Flash.ffu folder had something else than the original zip content. I just deleted it and unpacked the zip file again to have the ffu file available.

    I suppose Error: 0xffffffff means file not found.

    Cheers,

     - Marius



    Friday, May 1, 2015 7:59 PM
  • Error 87 can indicate that your boss is running the command on Windows 8.1, where DISM doesn't fully understand the string:

    I’ve downloaded the RPi2.ffu image and tried to apply image from the administrator prompt using this command:
    dism.exe /Apply-Image /ImageFile:Rpi2.ffu /ApplyDrive:\\.\PhysicalDrive1 /SkipPlatformCheck
    I am getting the following error:
    c:\Temp>dism.exe /Apply-Image /ImageFile:Rpi2.ffu /ApplyDrive:\\.\PhysicalDrive1 /SkipPlatformCheck

    Deployment Image Servicing and Management tool
    Version: 6.3.9600.17031

    Error: 87

    The /applydrive option is not recognized in this context.
    For more information, refer to the help.

    You need to use DISM on Windows 10 and not Windows 8.1.


    Jonathan Tanner | Microsoft | Windows 10 IoT Core Insider Preview Support | This posting is provided 'as is' with no warranties and confers no rights.

    • Proposed as answer by Bill Ramos Saturday, June 6, 2015 1:37 AM
    Friday, May 1, 2015 9:39 PM
    Moderator
  • Found the solution:

    Locate the flash.ffu directory and go there using cd. Then run the code.

    • Marked as answer by DanielVibe Saturday, May 2, 2015 6:29 PM
    Saturday, May 2, 2015 6:29 PM
  • I had this same issue,  Deleted the ffu and reunzipped it and it worked.
    Wednesday, June 3, 2015 6:35 PM