Hi, the reported difference for 'Size on Disk' is normal even though the folders are the exact same size, it depends on the way the drives are formatted and the size of the drives, each drive allocates storage in blocks called clusters (or allocation units), and those cluster sizes or file systems often differ between drives, basically some of the files in the folder may not fit into a cluster and will then use two clusters for the file on one drive, and on another drive if the cluster is large enough, the file would fit into one cluster.
Storage Space Descrepancy for main Windows folder
I recently performed a Capture & Restore operation using the DISM program of the C: drive for my Windows 10 Home System. I was very surprised to see that there is a significant difference in the amount of storage space used for the 2 different drives that were expected to be the same. The significant difference is confined to the main Windows folder. The properties for the C: drive which is the newly restored partition follows:
Then the properties for the S: drive which was used to capture the image file (*.wim type) used to create the the C: drive follows:
Windows for home | Windows 10 | Files, folders, and storage
2 answers
Sort by: Most helpful
-
DaveM121 954.4K Reputation points Independent Advisor2026-12-01T16:47:42.41+00:00 -
AI answer
2026-12-01T16:07:51.0966667+00:00 The files were restored with essentially the same logical size, but their disk allocation differs; first compare Compact OS and NTFS compression on
C:\WindowsandS:\Windows, because WIM compression alone does not preserve the source folder’s smaller “Size on disk.”Your screenshots show:
- Logical size: both approximately 26.6 GB
- File and folder counts: nearly identical
- Size on disk: C: approximately 26.0 GB; S: approximately 20.5 GB
That pattern does not indicate that roughly 5.5 GB of Windows files are missing. It indicates different compression or NTFS allocation behavior.
1. Compare Compact OS status
Open Command Prompt as administrator and run:
compact.exe /CompactOS:Query compact.exe /CompactOS:Query /WinDir:S:\WindowsThe second command assumes
S:\Windowsis still a valid offline Windows installation, rather than merely the location containing the.wimfile.CompactOS:Queryreports whether Windows system binaries are stored in compact form. Microsoft documents that Compact OS stores operating-system files compressed and can be queried for either the running installation or an offline Windows directory.^1^If S: is compact and C: is not, that is the likely reason for the difference.
2. Confirm file-level compression
Compact OS status is not proof by itself. Compare the actual file-level compression summaries:
compact.exe /S:C:\Windows /A /Q compact.exe /S:S:\Windows /A /Q/Sincludes subdirectories,/Aincludes hidden and system files, and/Qproduces summary output.^2^If S: reports substantially more compressed files or a better compression ratio, it explains why both folders have almost the same Size but different Size on disk.
3. If desired, compact the restored installation
If C: is not compact and the goal is to recover comparable space, run this from an elevated Command Prompt:
compact.exe /CompactOS:Always compact.exe /CompactOS:QueryThe first command compresses the operating-system binaries and sets the installation to remain in Compact OS mode. The second verifies the resulting state.^2^ A restart is not documented as required, although restarting before rechecking Explorer is reasonable if its displayed totals have not refreshed.
Do not manually delete files from
C:\Windows, particularlyWinSxSorInstaller.Why the capture and restore can differ
DISM /Capture-Image /Compress:max|fast|nonecontrols compression inside the.wimfile. It does not mean that files applied to the destination will retain the same on-disk compression. Destination Compact OS is separately requested using/Apply-Image /Compact.^3^For a future deployment, the relevant pattern is:
Warning: Applying an image can overwrite the selected destination. Run this only from Windows PE or another appropriate offline deployment environment, after verifying backups and the destination drive letter.
DISM /Apply-Image ^ /ImageFile:<path-to-image.wim> ^ /Index:1 ^ /ApplyDir:<target-drive>:\ ^ /Compact ^ /CheckIntegrity/Compactis supported for Windows 10 desktop editions, including Home.^3^If compression is the same
Compare each volume’s allocation-unit size:
fsutil fsinfo ntfsinfo C: fsutil fsinfo ntfsinfo S:Look for Bytes Per Cluster. A larger cluster size can consume more disk space when a directory contains many small files. NTFS normally allocates file storage in cluster-sized units, and cluster size is chosen when the volume is formatted.^4^
If compression and cluster sizes also match, Explorer’s recursive folder total may differ because of:
- Hard links and reparse points
- Sparse files
- Files excluded by permissions
- NTFS metadata
- Different treatment of linked content
Explorer is not a definitive disk-allocation analyzer and may count or omit such content differently.^5^ In that case, compare the free space of the complete volumes rather than expecting the two
WindowsProperties dialogs to match exactly.
References
AI-generated content may be incorrect. Read our transparency notes for more information.