My d:\ drive holds my Hyper-V virtual machines and their associated .VHD files. Well, out of 463 GB I got down to 34 GB free. Only in a VM-world can I fill 429 GB. Windows displays the disk in a lovely shade of red that I’m sure is yelling at me.
My goal is to see the directories and their file sizes. I remember doing this “back in the day”, possibly on a Windows 2003 server. And, I know I used a SysInternals tool. So today I repeat what I did several years ago, which is to use Disk Usage (DU.exe) from SysInternals:
- On my Hyper-V server, download Disk Usage from SysInternals: http://technet.microsoft.com/en-us/sysinternals/bb896651. It’s a command line tool in zipped file. Extract it somewhere easy :).
- Open a command prompt as Administrator and go to this folder.
- Type: du.exe -v d:\ > Output.txt
Output.txt is created in the same folder as DU.exe. My output, minus the 0 byte directories:
Nice, huh? This is what I did:
- Emptied the Recycle Bin.
- Directly on d:\, I stored OS .VHD file that I downloaded form an internal location. I deleted them since I haven’t created a new VM in months.
- In d:\AppFabInt, I had two snapshots. In Hyper-V Manager, I deleted the oldest snapshot. From what I can tell, deleting a snapshot automatically merges the snapshots, which could be bad.
Now, I have 125 GB free.
As an FYI on that Windows 2003 server, it was Dr. Watson logs that were causing the drama. I disabled the Dr. Watson logging, deleted the existing log files and the problem was fixed.