dism keeps running out of space in windows pe

%3CLINGO-SUB%20id%3D%22lingo-sub-2817396%22%20slang%3D%22en-US%22%3Edism%20keeps%20running%20out%20of%20space%20in%20windows%20pe%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2817396%22%20slang%3D%22en-US%22%3E%3CP%3Ei.%26nbsp%3B%20I%20am%20trying%20to%20copy%20my%20windows%20partition%20using%20dism%20%2Fcapture-image%20from%20the%20pe%20environment%20using%20windows%2020h2%20enterprise.%26nbsp%3B%20Now%20it%20works%20and%20about%20half%20way%20through%20it%20says%20access%20denied%20and%20if%20you%20look%20in%20the%20log%20it%20actually%20runs%20out%20of%20space%20somewhere.%26nbsp%3B%20Putting%20%2Fscratchdir%20on%20a%201%20tb%20drive%20does%20not%20help%2C%20so%20what%20can%20I%20do%3F%26nbsp%3B%20Should%20I%20use%20a%20better%20tool%20to%20copy%20the%20partition%20(not%20copy%20the%20disk)%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance%20for%20any%20suggestions.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2821321%22%20slang%3D%22en-US%22%3ERe%3A%20dism%20keeps%20running%20out%20of%20space%20in%20windows%20pe%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2821321%22%20slang%3D%22en-US%22%3EWhen%20you%20boot%20from%20Windows%20PE%20disk%2C%20by%20default%20it%20gives%20the%20X%3A%20drive%20letter%20(read-only%20drive)%2C%20please%20make%20sure%20that%20you%20are%20not%20saving%20your%20partition%20image%20to%20X%3A%20drive.%3CBR%20%2F%3E%3CBR%20%2F%3EDism%20%2FCapture-Image%20%2FImageFile%3Ae%3A%5Cimage.wim%20%2FCaptureDir%3Ad%3A%5C%20%2FName%3AImage_Name%3C%2FLINGO-BODY%3E
New Contributor

i.  I am trying to copy my windows partition using dism /capture-image from the pe environment using windows 20h2 enterprise.  Now it works and about half way through it says access denied and if you look in the log it actually runs out of space somewhere.  Putting /scratchdir on a 1 tb drive does not help, so what can I do?  Should I use a better tool to copy the partition (not copy the disk)?

 

Thanks in advance for any suggestions.

 

2 Replies
When you boot from Windows PE disk, by default it gives the X: drive letter (read-only drive), please make sure that you are not saving your partition image to X: drive.

Dism /Capture-Image /ImageFile:e:\image.wim /CaptureDir:d:\ /Name:Image_Name
Yep, I did make sure of that, I even made the current directory a big drive and used /scratchdir:<large drive>, but still no joy.