I have an xml file that windows explorer says is 8.00KB on disk, and the size is 25.5 KB.
How is this possible?
I thought the size on disk is in many cases larger than the actual size (because of the block sizes)?
I have an xml file that windows explorer says is 8.00KB on disk, and the size is 25.5 KB.
How is this possible?
I thought the size on disk is in many cases larger than the actual size (because of the block sizes)?
A file can also appear to be smaller on disk if the file is a sparse file. In that scenario, file size refers to the logical size of the file, whereas size on disk refers to the physical size of the sparse file.
mklink at the command prompt. Make sure your test files are larger than 1K to avoid seeing a zero byte file for other reasons. See also Windows Confidential: Just What Is ‘Size on Disk’?
– Brian
Jul 05 '18 at 20:00
If you're using Microsoft OneDrive and some of your files are 'not synced' to disk, then the size of the file on disk will be smaller since the actual information is in the 'cloud' on OneDrive with only a pointer.
Thanks Eugene S.!
– NTDLS Mar 21 '23 at 16:24