Name: Vladimir88 Date: March 24, 2008 at 04:34:50 Pacific Subject: The mysterious disk space OS: Windows XP Pro CPU/Ram: 2,7 GHz Celeron, 512 MB D
Comment:
I have a small HDD - total volume 20 GB. It is split in two - one partition is 15 GB and the other is 5 GB.
The small partition shows that there are only 490 MB free space on it while in reality the total volume of all the files that reside on it is 3,36 GB. So, 5 GB minus 3,36 GB = 1.64 GB free space, right? Then why is it reporting that there are only 490 MBs of free space? I don't have any hidden or system files on this drive that might be causing this.
What could be the reason for this and how to fix it?
There are two possible reason for the apparent anomaly. The size of the file doesn't necessarily reflect the space allocated on the disk due to what is know as slack space.
Space is allocated for files in clusters. If you are using NTFS each cluster will be 4kBs. If you are using FAT32 it will be 8Kbs. So each file will take up multiples of the cluster size.
So if you are formatted to FAT32 and save a file of 4 kbs in size it will take up 8kbs on the disk. A 9kb file will take up 16kbs of disk space.
Then there is the recycle bin. Have you looked in there. When a file is deleted it is still on the disk until it is cleared from the recycle bin.
I have my Recycle bin disabled. Actually this is the first optimization that I do to a freshly installed Windows. Never use the damn thing.
Anyways, I don't think that it is the file system that is causing the trouble here either. I have never had a problem like that with this drive. I've had it filled ot the max - almost 5 Gigs and now it reports that is almost filled at 3,36 Gigs. Pretty strange.
In Windows XPs NTFS file system, one Sector on the harddrive amounts to 4,000 bytes. If a file is 1,000 bytes in size, then that file will take up a full Sector, and you will lose 3,000 bytes of space. TWO FILES CANNOT OCCUPY THE SAME SECTOR.
If a file is 40,001 bytes in size, the it will use 11 Sectors, and you will lose 3,999 bytes of space.
Right click on a file, then click Properties, then look on the General tab, you will see two pieces of information, "File size", and "Size on Disk". "File Size" might be 100 bytes, and yet "Size on Disk" would be 4,000 bytes.
I find LOG files in Windows that show 0 bytes of File Size, 4,000 bytes of Size on Disk.