24

I'm thinking of installing an SSD on my machine at home, and the easiest way to do this is basically to clone my current hard drive over to the new SSD. Trouble is, if I right click on my current hard drive and select properties, my used space is 230GB, thus requiring me to buy a monster SSD.

However, if I right click on each of the top level folders in my hard drive and select properties, the total space used by those folders is only 140GB. 100GB of that is music and movies, which I can easily clean out before the move to the SSD.

So here's the rub, where did the other 90GB go? For the life of me I can't figure it out. Shouldn't the sum of the used sizes of all the top level folders in your C: drive roughly equal the used size of the C: drive itself?

11 Answers11

20

There are hidden files and directories which contain system files that are not included in the calculation. System volume information, for example, contains your system restore points and volume shadow copies among other things. It is not included in the calculation because by default the ACL does not allow your user account to view the folder or it's properties. You can gain access to it if you really want to, however.

On another note, the cleanmgr.exe utility (better known as Disk Cleanup) can help you reclaim most of your disk space. The More Options tab allows you to delete all but the most recent restore points and Volume Shadow Copies.

11

Use WinDirStat to see where your files are taking up space:

http://windirstat.info/

It is free, lightweight, and there is no easier way to see your usage by directory.

KCotreau
  • 25,622
5

Here's a comprehensive list of all the reasons I can think of why the used space in a hard drive may be greater than the sum of the file sizes. OP has already solved his/her problem, but the issue may remain for some lurkers.

  • A file takes up more space on the disk than merely its size. For example, a text file that contains the letters "hello" has a file size of 5 bytes, but it also takes up space in the filesystem's table to store its name and properties. Usually the difference is not greater than a few hundred bytes, but if you have many tiny files, that can add up to quite a bit. You can see the difference by comparing "Size" and "Size on disk" numbers after opening the properties dialog of a file in Windows' file explorer.
  • You may be forgetting to check hidden files: make sure you have "show hidden files, folders and drives" enabled in Windows' file explorer options.
  • You may be forgetting to check system files: make sure you have "hide protected operating system files" disabled.
  • You may be forgetting to count the recycle bin which is a special case of hidden and system files.
  • Contents indexing takes up space: if you open the properties dialog for a partition, you can see the option "Allow files on this drive to have contents indexed in addition to file properties". This takes up space, I'm not quite sure where on the file system.
  • Previous versions (or shadow copies or file history) take up space: NTFS has the feature of shadow copies of files, which takes up space not counted in the plain file size.
  • You may have enabled compression: this should theoretically cause the used disk space to be smaller than the sum of the file sizes, rather than bigger, but in any case, it's a spanner in the works. You can check by opening the properties dialog of a partition in Windows' file explorer.

Also, remember that you may have hidden partitions, or unallocated space on your hard disk where you could have a partition. Open "Disk Management" shipped with Windows to check this.

If anything is missing, go ahead and edit my answer to make this as comprehensive as possible. I'm happy to make this a community wiki post.

Flimm
  • 10,730
2

My problem was with Windows/Temp.

The contents are only visible if you are in admin mode evidently. So simply asking it how much space the Windows folder was taking up did not show the amount taken by the Temp folder. When I asked to delete it I got the admin popup that I just approved and it erased it.

The WinDirStat utility recommended above by KCotreau found this for me.

2

I recently had the same question, but I stumbled upon the answer. Symantec Norton was scheduled to periodically backup files by storing them on my hard drive. I found the folder containing the backed up files and discovered that these backed up files added more than 100 GB to the quantity of data stored on my hard drive. Because I frequently back up my modified files and folders onto removable hard drives, flash drives, etc., I do not need the Norton backup utility. I simply deleted the files and canceled future Norton backups. The resulting increase in space on my hard drive was enormous.

joey
  • 21
1

Hidden swap file/directory (recycling bin?) in the root directory?

Also does the windows explorer in win7 consider hidden files inside those directories when tallying it's total?

Just a couple guesses.

Stephen
  • 685
1

In may case it was the page file dll that occupied around 6GB and the hibernet.dll file that occupied around 2GB.

If you enable "Show protected operating system files" then you can see those two files.

You cannot and should not directly delete the files. If you really need some space and want to remove the files please google for the proper procedure.

0

Hiberfil, Hidden files, Temp folder, System protection files, a few MBs here a few KBs there! Too many places to check and the total space still won't add up. Even if you delete them all, you'll free only a few gigs, and I have about 100GB missing!

Run the software as admin folks!

Whichever software you are using to show your disk space, run it as administrator, or otherwise it just can't show you everything.


I tried SpaceMonger, WinDirStat, etc. but none could show the messy 97GB SQL log file unless I run them with elevated privilege.

Bizhan
  • 101
0

To know the exact memory allocations in the drive, open "storage" using bottom-left search pane and click on the drive you want to examine.

MGupt
  • 1
0

Use this software. It gives you the exact size. https://www.jam-software.com/treesize_free/

Sunny
  • 11
0

I had the same issue, the files on a 4TB hard drive only added up to 2.9TB but Windows reported it was full. Today I had a power outage and the 1TB is suddenly back! I think the computer ran a disk checking on startup and fixed an incorrect sector count, but I'm not an expert on how this works. Try using Treesize or Windirstat, and if that doesn't show the same amount of usage as Windows itself does, maybe there is some corruption in your master file table. I suggest trying to run chkdsk, I don't remember the command for doing it next restart, but you can use Google for that. On Mac, you can use disk aid in disk utility.

Foxyz
  • 509