locked
DISM Sloowwwww RRS feed

  • General discussion

  • So, I've had to upgrade my Windows WIAK to start using it with server 2008 R2, and it seems that imageX is not there anymore, so I've been using DISM, and it is SO SLOW to mount and unmount images.  I see the following times with:

     

    boot.wim

    mount: ~ 2 minutes (not too bad)

    unmount ~ 20 minutes 

     

    install.wim

    mount ~ 5 minutes

    unmount ~ 40 minutes (AND STILL WAITING!)

     

    I've noticed that if I kill the process and reboot the server and try again it will unmount faster.  Looking at resource manager, the server is basically sitting idle and not doing anything, so it's not like it's grinding the disks through the image file.  Also, this install.wim image that I'm trying to unmount now, it seems to hang at the following:

     

     

    C:\Documents and Settings\rmfadmin>"C:\Program Files\Windows AIK\Tools\Servicing
    
    \Dism.exe" /unmount-wim /Mountdir:D:\mount /commit
    
    
    
    Deployment Image Servicing and Management tool
    
    Version: 6.1.7600.16385
    
    
    
    Image File : D:\rmfisher\2008 R2\install.wim
    
    Image Index : 1

     

     

    Then, once it eventually starts showing a progress bar, it runs at an acceptable pace.  So, something is causing it to hang when it's first starting this process.  This happens with any .wim file I try to mount/unmount.  ImageX worked so well!

     

    These are the commands I'm using to mount and unmount:

     

     

    "C:\Program Files\Windows AIK\Tools\Servicing\Dism.exe" /mount-wim /wimfile:"D:\rmfisher\2008 R2\install.wim" /index:1 /mountdir:d:\mount
    
    
    
    
    
    "C:\Program Files\Windows AIK\Tools\Servicing\Dism.exe" /unmount-wim /Mountdir:D:\mount /commit
    
    

     

    Any ideas would be great!  Thanks!


    EDIT:

    Here is some more infor from the log file I have it generating during unmounting.  I have it set at level 4.  This is where the log sits when the process shows that it's just sitting at Image Index 1

    2011-04-24 10:19:41, Info         DISM  PID=4360 Temporarily setting the scratch directory. This may be overridden by user later. - CDISMManager::FinalConstruct
    2011-04-24 10:19:41, Info         DISM  PID=4360 Scratch directory set to 'C:\DOCUME~1\rmfadmin\LOCALS~1\Temp\1\'. - CDISMManager::put_ScratchDir
    2011-04-24 10:19:41, Info         DISM  PID=4360 Local image session has not been created, creating now. - CDISMManager::CreateLocalImageSession
    2011-04-24 10:19:41, Info         DISM  PID=4360 Attempting to load the Dism stack from "C:\Program Files\Windows AIK\Tools\Servicing" - CDISMManager::LoadImageSession
    2011-04-24 10:19:41, Info         DISM  PID=4360 Successfully loaded the ImageSession at "C:\Program Files\Windows AIK\Tools\Servicing" - CDISMManager::LoadImageSession
    2011-04-24 10:19:41, Info         DISM  DISM Provider Store: PID=4360 Found and Initialized the DISM Logger. - CDISMProviderStore::Internal_InitializeLogger
    2011-04-24 10:19:41, Info         DISM  DISM Provider Store: PID=4360 The requested provider was not found in the Provider Store. - CDISMProviderStore::Internal_GetProvider(hr:0x80004005)
    2011-04-24 10:19:41, Info         DISM  DISM Provider Store: PID=4360 Failed to get and initialize the PE Provider. Continuing by assuming that it is not a WinPE image. - CDISMProviderStore::Final_OnConnect
    2011-04-24 10:19:41, Info         DISM  DISM Provider Store: PID=4360 Finished initializing the Provider Map. - CDISMProviderStore::Final_OnConnect
    2011-04-24 10:19:41, Info         DISM  DISM Provider Store: PID=4360 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
    2011-04-24 10:19:41, Info         DISM  DISM Provider Store: PID=4360 Provider has previously been initialized. Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    2011-04-24 10:19:41, Info         DISM  DISM Image Session: PID=4360 Obtained the local logger instance. Configured the local session to use it. - CDISMImageSession::get_ProviderStore
    2011-04-24 10:19:41, Info         DISM  DISM Provider Store: PID=4360 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
    2011-04-24 10:19:41, Info         DISM  DISM Provider Store: PID=4360 Provider has previously been initialized. Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    2011-04-24 10:19:41, Info         DISM  DISM Manager: PID=4360 Successfully created the local image session and provider store. - CDISMManager::CreateLocalImageSession
    2011-04-24 10:19:41, Info         DISM  DISM Provider Store: PID=4360 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
    2011-04-24 10:19:41, Info         DISM  DISM Provider Store: PID=4360 Provider has previously been initialized. Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    2011-04-24 10:19:41, Info         DISM  DISM.EXE: 
    2011-04-24 10:19:41, Info         DISM  DISM.EXE: <----- Starting Dism.exe session ----->
    2011-04-24 10:19:41, Info         DISM  DISM.EXE: 
    2011-04-24 10:19:41, Info         DISM  DISM.EXE: Host machine information: OS Version=5.2.3790, Running architecture=x86, Number of processors=1
    2011-04-24 10:19:41, Info         DISM  DISM.EXE: Executing command line: "C:\Program Files\Windows AIK\Tools\Servicing\Dism.exe" /unmount-wim /Mountdir:D:\mount /commit /LogPath:"D:\rmfisher\2008 R2\dismunmountlog.txt" /LogLevel:4
    2011-04-24 10:19:41, Info         DISM  DISM Provider Store: PID=4360 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - CDISMProviderStore::GetProviderCollection
    2011-04-24 10:19:41, Info         DISM  DISM Provider Store: PID=4360 Getting the collection of providers from a local provider store type. - CDISMProviderStore::GetProviderCollection
    2011-04-24 10:19:41, Info         DISM  DISM Provider Store: PID=4360 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - CDISMProviderStore::GetProviderCollection
    2011-04-24 10:19:41, Info         DISM  DISM Provider Store: PID=4360 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
    2011-04-24 10:19:41, Info         DISM  DISM Provider Store: PID=4360 Loading Provider from location C:\Program Files\Windows AIK\Tools\Servicing\WimProvider.dll - CDISMProviderStore::Internal_GetProvider
    2011-04-24 10:19:41, Info         DISM  DISM Provider Store: PID=4360 Connecting to the provider located at C:\Program Files\Windows AIK\Tools\Servicing\WimProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2011-04-24 10:19:41, Info         DISM  DISM Provider Store: PID=4360 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
    2011-04-24 10:19:41, Info         DISM  DISM Provider Store: PID=4360 Loading Provider from location C:\Program Files\Windows AIK\Tools\Servicing\FolderProvider.dll - CDISMProviderStore::Internal_GetProvider
    2011-04-24 10:19:41, Info         DISM  DISM Provider Store: PID=4360 Connecting to the provider located at C:\Program Files\Windows AIK\Tools\Servicing\FolderProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2011-04-24 10:19:41, Info         DISM  DISM Provider Store: PID=4360 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
    2011-04-24 10:19:41, Info         DISM  DISM Provider Store: PID=4360 Loading Provider from location C:\Program Files\Windows AIK\Tools\Servicing\CompatProvider.dll - CDISMProviderStore::Internal_GetProvider
    2011-04-24 10:19:41, Info         DISM  DISM Provider Store: PID=4360 Connecting to the provider located at C:\Program Files\Windows AIK\Tools\Servicing\CompatProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2011-04-24 10:19:41, Info         DISM  DISM.EXE: Got the collection of providers. Now enumerating them to build the command table.
    2011-04-24 10:19:41, Info         DISM  DISM.EXE: Attempting to add the commands from provider: WimManager
    2011-04-24 10:19:41, Info         DISM  DISM.EXE: Succesfully registered commands for the provider: WimManager.
    2011-04-24 10:19:41, Info         DISM  DISM.EXE: Attempting to add the commands from provider: FolderManager
    2011-04-24 10:19:41, Info         DISM  DISM.EXE: FolderManager does not support command lines.
    2011-04-24 10:19:41, Info         DISM  DISM.EXE: Attempting to add the commands from provider: DISM Log Provider
    2011-04-24 10:19:41, Info         DISM  DISM.EXE: DISM Log Provider does not support command lines.
    2011-04-24 10:19:41, Info         DISM  DISM.EXE: Attempting to add the commands from provider: Compatibility Manager
    2011-04-24 10:19:41, Info         DISM  DISM.EXE: Succesfully registered commands for the provider: Compatibility Manager.
    2011-04-24 10:19:41, Info         DISM  DISM Provider Store: PID=4360 Getting Provider WimManager - CDISMProviderStore::GetProvider
    2011-04-24 10:19:41, Info         DISM  DISM Provider Store: PID=4360 Provider has previously been initialized. Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    

     

    • Changed type Tim Quan Friday, April 29, 2011 1:38 AM
    Sunday, April 24, 2011 4:42 AM

All replies

  • Hi,

     

    Have you tested it on another Windows Server 2008 R2 computer?

     

    Tim Quan

     

    Tuesday, April 26, 2011 1:47 AM
  • I am seeing the same behaviour with Dism.... I have been using imagex forever and find this a big step backward.  The underlying disk doesn't seem to have a signicicant effect on performance.
    Monday, May 16, 2011 5:36 AM
  • I was seeing the same problem but it turned out to be the Antivirus application we were using (trend).  I turned off the "officescan real-time scan" service and the problem went away.  I used Process Monitor to give me clues.  It seems that every time DISM made an OS call, officescan also made a call.  This slows things down considerably.  
    Friday, October 14, 2011 6:20 PM
  • I was seeing the same problem but it turned out to be the Antivirus application we were using (trend).  I turned off the "officescan real-time scan" service and the problem went away.  I used Process Monitor to give me clues.  It seems that every time DISM made an OS call, officescan also made a call.  This slows things down considerably.  
    Ive noticed this same behavior with SEP, so its not just a Trend issue. I bet McAfee has the same issue as well.
    Tuesday, November 8, 2011 3:32 PM
  • Hi all, thanks for all the replies.  I suppose I should comment back that since I've posted this MS came out with a new version of AIK which I installed, and now the mounting is much faster.  I think it's AIK version 3 now?  Anyways, once I upgraded, mounting and unmounting are smoking, so I'm a lot happier.  If anyone else is having these problems, hopefully you're on version 2 and you can upgrade to 3.  It should help.

    Thanks!

    Tuesday, November 8, 2011 4:19 PM
  • Same Problem

    disable anti-virus

    unmount phase fix

    trend here

    Thursday, November 10, 2011 4:19 PM
  • Server 2008R2

    ESet AV

    Have the same issue, disabled AV and it was almost instant dismount.

    Wednesday, March 28, 2012 1:36 PM
  • Can confirm that unloading Trend Officescan fixed this problem for me as well.  Thanks!
    Tuesday, May 8, 2012 2:25 PM
  • Same thing here with Sophos Antivirus. Disabling On-Acces-Protection made dism start and showing the progress bar. Thanks for the tip.
    Friday, January 24, 2014 9:38 AM
  • Same thing with McAfee.  After disabling the on access scanning it began to unmount the WIM
    Wednesday, April 9, 2014 11:12 PM
  • Same thing with Symantec Endpoint Protection.  After disabling with "smc.exe -stop" the progress bar showed and dism started working.
    Tuesday, October 28, 2014 5:35 PM