Here's a curious thing which I don't understand.
I left my laptop running to create a Custom image yesterday evening, but due to Power settings, the computer went into Sleep mode in the middle. I woke the computer up and it seemed to finish normally, without mentioning any error messages.
However I wondered if something might have gone wrong, so I ran it again in a different folder (being sure to keep it awake this time). The curious thing is that the file sizes were very different. First one was over 8GB but the second one was about 1GB less. Why are two images such different sizes?
I ran it a third time and the file size is again different; it's similar to the 2nd run but not the same.
It occurred to me that my anti virus software is set to updated its signatures at a time between the 1st and 2nd runs, but I can't see how that would be as much as a GB, and it doesn't explain why the 3rd one is different.
File sizes are:
- 8,298,759 KB
- 7,272,486 KB
- 7,301,183 KB
Why does the file size vary?
Wow.. I just had the same deal sort of.. Laptop went to sleep before finishing making the wim. I stopped it with the ESC or what it says.. then restarted it. My older wims have always been 7gb .. new one is 9gb.
I sort of had been blaming that extra 2gb on fooling with the tile programs looking for a digital clock tile and news ticker for that 'Tiled start screen' . Wouldn't think those two things would add 2gb
WIM File - Extract and Modify - Windows 7 Support Forums
I'm just trying to download its Windows 8 equivalent which I think is somewhere in this mega-download here...
Download: Windows Assessment and Deployment Kit (ADK) for Windows® 8 - Microsoft Download Center - Download Details
Think win8 already has what you need to mount a wim. I just haven't read enough to feel comfortable using it.
DISM /? command
Hello David and Mikie,
Most likely the extra amount may be from the other custom recovery image unless you deleted it first.
If you like, you could also use 7-Zip 9.30 alpha to view and extract from a WIM file.
Last edited by Brink; 03 Mar 2013 at 18:35.
I just deleted the custom .wim .. clean disk system , cccleaner , fresh restart ... still 9gb here. maybe I try the alpha 7zip
So here's what I did. I should mention that I did all this with copies of the .wim files, on another PC that I didn't mind breaking!
I created a blank folder at C:\TestMount\offline, and copied my CustomRefresh.wim files into three different subfolders of C:\WIMsTest
Then I went to elavated command prompt, navigated to C:\TestMount and used these commands
Then I repeated it with "FirstFolder" changed to the second and third folders, and "DirAttempt1.txt" changed to Attempt2 and Attempt3Code:Dism /Mount-Image /ImageFile:C:\WIMsTest\FirstFolder\CustomRefresh.wim /index:1 /MountDir:C:\TestMount\offline /ReadOnly Dir offline /s /a-d /on >DirAttempt1.txt Dism /UnMount-Image /MountDir:C:\TestMount\offline /Discard
You can also use this instead of the Dir command, but I preferred Dir as it shows the times and dates and sizes of files:
And the results. Well around the last line of the output from Dir command, which shows the final totals of files and folders, it looks like this for my three files:Code:Dism /List-Image /ImageFile:C:\WIMsTest\FirstFolder\CustomRefresh.wim /index:1 >ListImage1.txt
- 78934 File(s) 21,980,305,301 bytes
- 78936 File(s) 21,983,887,347 bytes
- 78951 File(s) 21,958,309,340 bytes
... which are all pretty much the same.
I also used 3rd party utility KDiff3 to compare the contents of the files. There were some changes due to anti-virus updates, and a few changes within the Microsoft folders, but no huge files of 1GB or thereabouts.
So I'm still none the wiser about file sizes. Unless I've missed something in my DIR command, the actual files in the image are the same when you mount them; perhaps it's a compression issue.
But I have learned more about DISM as a result of the exercise.
Edit: Just in case anyone's wondering (like I was) what "mounting" a image in DISM means... I created a real blank folder on my disk, and by mounting the .wim file at that location, it appears as if the folder holds the contents of the .wim image, even though I'm pretty sure the files are not there on the physical disk (in fact not even on the same disk in my case). I'm pretty sure it's wise to un-mount when finished, and by using the readonly flag when I mounted and the discard flags when I unmounted, hopefully I didn't change anything.
Last edited by DavidY; 17 Feb 2013 at 19:32.
Well how cool is the "new refresh?" Verrrrrrrrrrrrrrrry! Never saw this tutorial before.
I shrunk my RefreshImage.wim this morning to a more normal size by first running the disk clean/system/more tab and clean up System Restore and 'Shadows Copies' Changed showing 43gb to 38gb used on C:\
The extra shadows copy's seem to add to the size. I think