New
#1
Hyper-V files not being obvious use of storage
Came across an odd issue today. I was about to image backup my C drive, and I noted the storage was about 20 GB higher than I expected.
So I made all folders including hidden system folders visible, and tried to see where the extra 20 GB was being used.
So I used good old windirstat, and it showed storage as 20 GB less - how odd thought. I could not see where the extra 20 GB was in use. I then remembered by default windirstat does not display "unknown" folders. So I set it to show the unknown data size - hey presto my 20 GB but no more info than "unknown".
I was about to try and delete them, as the "unknown" folders are usually something like old restore points etc. So I did a disk cleanup first, but this did not change anything.
Did some googling, and it seems windirstat does not like long filenames. I installed treesize, and immediately it became clear the files were hyper-v files installed on the C drive (i had forgotten to set it to another drive as I usually do).
What I find interesting was that checking the folder sizes of all the folders in the root directory individually did not allow me to track down the culprit immediately. Indeed I am not sure I could even have navigated to them.
I then used move hyper-v vm option, and bam - my storage was recovered.
What is also interesting is when I check my E drive, the hyper-v folder size is correct.
So I guess the issue is related to how many directory levels the hyper-v files were buried on the C drive.
Just thought it was worth mention this in case you end up deleting your hyper-v files by accident.