"ERROR 21 the device is not ready" when use dism get-wiminfo

I want to retrieve information about the OS images that are contained in a wim file.

"dism /Get-WimInfo /WimFile:d:\sources\install.wim "was typed in the command line (system manager)

but error 21 happened "the device is not ready". Actually I know little about computer and don't know how to fix it.

the log file says as follows,

2015-04-20 13:12:36, Info                  DISM   PID=5204 TID=7720 Scratch directory set to 'C:\Users\luckiing\AppData\Local\Temp\'. - CDISMManager::put_ScratchDir
2015-04-20 13:12:36, Info                  DISM   PID=5204 TID=7720 DismCore.dll version: 6.2.9200.16384 - CDISMManager::FinalConstruct
2015-04-20 13:12:36, Info                  DISM   PID=5204 TID=7720 Successfully loaded the ImageSession at "C:\Windows\System32\Dism" - CDISMManager::LoadLocalImageSession
2015-04-20 13:12:36, Info                  DISM   DISM Provider Store: PID=5204 TID=7720 Found and Initialized the DISM Logger. - CDISMProviderStore::Internal_InitializeLogger
2015-04-20 13:12:36, Info                  DISM   DISM Provider Store: PID=5204 TID=7720 Failed to get and initialize the PE Provider.  Continuing by assuming that it is not a WinPE image. - CDISMProviderStore::Final_OnConnect
2015-04-20 13:12:36, Info                  DISM   DISM Provider Store: PID=5204 TID=7720 Finished initializing the Provider Map. - CDISMProviderStore::Final_OnConnect
2015-04-20 13:12:36, Info                  DISM   DISM Provider Store: PID=5204 TID=7720 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
2015-04-20 13:12:36, Info                  DISM   DISM Provider Store: PID=5204 TID=7720 Provider has previously been initialized.  Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
2015-04-20 13:12:36, Info                  DISM   DISM Provider Store: PID=5204 TID=7720 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
2015-04-20 13:12:36, Info                  DISM   DISM Provider Store: PID=5204 TID=7720 Provider has previously been initialized.  Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
2015-04-20 13:12:36, Info                  DISM   DISM Manager: PID=5204 TID=7720 Successfully created the local image session and provider store. - CDISMManager::CreateLocalImageSession
2015-04-20 13:12:36, Info                  DISM   DISM Provider Store: PID=5204 TID=7720 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
2015-04-20 13:12:36, Info                  DISM   DISM Provider Store: PID=5204 TID=7720 Provider has previously been initialized.  Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
2015-04-20 13:12:36, Info                  DISM   DISM.EXE: 
2015-04-20 13:12:36, Info                  DISM   DISM.EXE: <----- Starting Dism.exe session ----->
2015-04-20 13:12:36, Info                  DISM   DISM.EXE: 
2015-04-20 13:12:36, Info                  DISM   DISM.EXE: Host machine information: OS Version=6.2.9200, Running architecture=amd64, Number of processors=8
2015-04-20 13:12:36, Info                  DISM   DISM.EXE: Dism.exe version: 6.2.9200.16384
2015-04-20 13:12:36, Info                  DISM   DISM.EXE: Executing command line: dism  /Get-WimInfo /WimFile:d:\sources\install.wim
2015-04-20 13:12:36, Info                  DISM   DISM Provider Store: PID=5204 TID=7720 Getting the collection of providers from a local provider store type. - CDISMProviderStore::GetProviderCollection
2015-04-20 13:12:36, Info                  DISM   DISM Provider Store: PID=5204 TID=7720 Provider has not previously been encountered.  Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
2015-04-20 13:12:36, Info                  DISM   DISM Provider Store: PID=5204 TID=7720 Loading Provider from location C:\Windows\System32\Dism\FolderProvider.dll - CDISMProviderStore::Internal_GetProvider
2015-04-20 13:12:36, Info                  DISM   DISM Provider Store: PID=5204 TID=7720 Connecting to the provider located at C:\Windows\System32\Dism\FolderProvider.dll. - CDISMProviderStore::Internal_LoadProvider
2015-04-20 13:12:36, Info                  DISM   DISM Provider Store: PID=5204 TID=7720 Provider has not previously been encountered.  Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
2015-04-20 13:12:36, Info                  DISM   DISM Provider Store: PID=5204 TID=7720 Loading Provider from location C:\Windows\System32\Dism\WimProvider.dll - CDISMProviderStore::Internal_GetProvider
2015-04-20 13:12:36, Info                  DISM   DISM Provider Store: PID=5204 TID=7720 Connecting to the provider located at C:\Windows\System32\Dism\WimProvider.dll. - CDISMProviderStore::Internal_LoadProvider
2015-04-20 13:12:36, Info                  DISM   DISM Provider Store: PID=5204 TID=7720 Provider has not previously been encountered.  Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
2015-04-20 13:12:36, Info                  DISM   DISM Provider Store: PID=5204 TID=7720 Loading Provider from location C:\Windows\System32\Dism\VHDProvider.dll - CDISMProviderStore::Internal_GetProvider
2015-04-20 13:12:36, Info                  DISM   DISM Provider Store: PID=5204 TID=7720 Connecting to the provider located at C:\Windows\System32\Dism\VHDProvider.dll. - CDISMProviderStore::Internal_LoadProvider
2015-04-20 13:12:36, Info                  DISM   DISM Provider Store: PID=5204 TID=7720 Provider has not previously been encountered.  Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
2015-04-20 13:12:36, Info                  DISM   DISM Provider Store: PID=5204 TID=7720 Loading Provider from location C:\Windows\System32\Dism\ImagingProvider.dll - CDISMProviderStore::Internal_GetProvider
2015-04-20 13:12:36, Info                  DISM   DISM Provider Store: PID=5204 TID=7720 Connecting to the provider located at C:\Windows\System32\Dism\ImagingProvider.dll. - CDISMProviderStore::Internal_LoadProvider
2015-04-20 13:12:36, Info                  DISM   DISM Provider Store: PID=5204 TID=7720 Provider has not previously been encountered.  Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
2015-04-20 13:12:36, Info                  DISM   DISM Provider Store: PID=5204 TID=7720 Loading Provider from location C:\Windows\System32\Dism\CompatProvider.dll - CDISMProviderStore::Internal_GetProvider
2015-04-20 13:12:36, Info                  DISM   DISM Provider Store: PID=5204 TID=7720 Connecting to the provider located at C:\Windows\System32\Dism\CompatProvider.dll. - CDISMProviderStore::Internal_LoadProvider
2015-04-20 13:12:36, Info                  DISM   DISM.EXE: Got the collection of providers. Now enumerating them to build the command table.
2015-04-20 13:12:36, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: DISM Log Provider
2015-04-20 13:12:36, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: FolderManager
2015-04-20 13:12:36, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: WimManager
2015-04-20 13:12:36, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: WimManager.
2015-04-20 13:12:36, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: VHDManager
2015-04-20 13:12:36, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: GenericImagingManager
2015-04-20 13:12:36, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: GenericImagingManager.
2015-04-20 13:12:36, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: Compatibility Manager
2015-04-20 13:12:36, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: Compatibility Manager.
2015-04-20 13:12:36, Info                  DISM   DISM Provider Store: PID=5204 TID=7720 Getting Provider WimManager - CDISMProviderStore::GetProvider
2015-04-20 13:12:36, Info                  DISM   DISM Provider Store: PID=5204 TID=7720 Provider has previously been initialized.  Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
2015-04-20 13:12:36, Error                 DISM   DISM WIM Provider: PID=5204 WIM open failed. - CWimImageInfoCollection::Initialize(hr:0x80070015)
2015-04-20 13:12:36, Error                 DISM   DISM WIM Provider: PID=5204 base\ntsetup\opktools\dism\providers\wimprovider\dll\wimimageinfocollection.cpp:76 - CWimImageInfoCollection::CreateWimImageInfoCollection(hr:0x80070015)
2015-04-20 13:12:36, Error                 DISM   DISM WIM Provider: PID=5204 TID=7720 Failed to create the image info collection. - CWimManager::GetImageInfoCollection(hr:0x80070015)
2015-04-20 13:12:36, Error                 DISM   DISM WIM Provider: PID=5204 TID=7720 base\ntsetup\opktools\dism\providers\wimprovider\dll\wimmanager.cpp:3248 - CWimManager::InternalOpGetImages(hr:0x80070015)
2015-04-20 13:12:36, Error                 DISM   DISM WIM Provider: PID=5204 TID=7720 base\ntsetup\opktools\dism\providers\wimprovider\dll\wimmanager.cpp:4043 - CWimManager::InternalCmdGetImages(hr:0x80070015)
2015-04-20 13:12:36, Error                 DISM   DISM WIM Provider: PID=5204 TID=7720 Error executing command - CWimManager::InternalExecuteCmd(hr:0x80070015)
2015-04-20 13:12:36, Error                 DISM   DISM WIM Provider: PID=5204 TID=7720 base\ntsetup\opktools\dism\providers\wimprovider\dll\wimmanager.cpp:1928 - CWimManager::ExecuteCmdLine(hr:0x80070015)
2015-04-20 13:12:36, Info                  DISM   DISM.EXE: Image session has been closed. Reboot required=no.
2015-04-20 13:12:36, Info                  DISM   DISM.EXE: 
2015-04-20 13:12:36, Info                  DISM   DISM.EXE: <----- Ending Dism.exe session ----->
2015-04-20 13:12:36, Info                  DISM   DISM.EXE: 
2015-04-20 13:12:36, Info                  DISM   DISM Provider Store: PID=5204 TID=7720 Found the OSServices.  Waiting to finalize it until all other providers are unloaded. - CDISMProviderStore::Final_OnDisconnect
2015-04-20 13:12:36, Info                  DISM   DISM Provider Store: PID=5204 TID=7720 Disconnecting Provider: FolderManager - CDISMProviderStore::Internal_DisconnectProvider
2015-04-20 13:12:36, Info                  DISM   DISM Provider Store: PID=5204 TID=7720 Disconnecting Provider: WimManager - CDISMProviderStore::Internal_DisconnectProvider
2015-04-20 13:12:36, Info                  DISM   DISM Provider Store: PID=5204 TID=7720 Disconnecting Provider: VHDManager - CDISMProviderStore::Internal_DisconnectProvider
2015-04-20 13:12:36, Info                  DISM   DISM Provider Store: PID=5204 TID=7720 Disconnecting Provider: GenericImagingManager - CDISMProviderStore::Internal_DisconnectProvider
2015-04-20 13:12:36, Info                  DISM   DISM Provider Store: PID=5204 TID=7720 Disconnecting Provider: Compatibility Manager - CDISMProviderStore::Internal_DisconnectProvider
2015-04-20 13:12:36, Info                  DISM   DISM Provider Store: PID=5204 TID=7720 Releasing the local reference to DISMLogger.  Stop logging. - CDISMProviderStore::Internal_DisconnectProvider

April 20th, 2015 1:22am

Is your wim file located on a read-only device? Try to copy the wim to an HDD and then run the command again.
Free Windows Admin Tool Kit Click here and download it now
April 20th, 2015 12:32pm

Hi,

According to the DISMI log, it seems like there is a problem with the WIM file. However, you can try to change a location for test to check its information.

April 21st, 2015 4:55am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics