Total Bytes of an image appears too large

Comments, questions, bug reports, etc.
Post Reply
User avatar
FrankHeimes
Posts: 5
Joined: Mon Mar 13, 2017 11:03 pm

Total Bytes of an image appears too large

Post by FrankHeimes »

I had just created a backup of a volume with 16 GB of data.
This resulted in a WIM Image of about 6 GB in size.
The info command returns the following summary about that Image (I removed some lines):

Code: Select all

WIM Information:
----------------
Image Count:    1
Compression:    LZMS
Chunk Size:     131072 bytes
Size:           6366632562 bytes
Attributes:     Integrity info, Relative path junction

Available Images:
-----------------
Index:                  1
Directory Count:        27004
File Count:             160988
Total Bytes:            24559089912
Hard Link Bytes:        6398108612
DISM reports the same amount 24559089912 for the total number of bytes.

Now that number is obviously well above the space occupied by the files.
How can I determine the correct volume space used by the files from the Information in the WIM Image?
synchronicity
Site Admin
Posts: 474
Joined: Sun Aug 02, 2015 10:31 pm

Re: Total Bytes of an image appears too large

Post by synchronicity »

"Total Bytes" counts all hard links. You need to subtract "Hard Link Bytes" from "Total Bytes".

Note that even after doing this, the resulting number may not exactly match the final on-disk size (which is impossible to determine exactly, for a number of reasons).
Post Reply