This is a PSA for those who have way too much junk on their hard drives.
For several months, McAfee has been taking ever longer to run virus scans on my hard drive, getting to the point that it sometimes took a couple of days. When I investigated, it reported that it was scanning almost 1.1 million files — far more than I realized that I had. In fact, I couldn’t even figure out where that many files had come from. For example, I knew that I have several large collections of sample data from programming efforts over the years, but these totaled at most maybe 100,000 files, not hundreds of thousands. So, at first, I was just left wondering which program had secretly cluttered up my drive with random junk, but without any good options for resolving the problem.
WinDirStat to the Rescue
I found the problem areas by downloading and installing WinDirStat, an open source application for scanning a hard drive and determining which files and folders take up the most space, as well as which file types do so.
WinDirStat took about 20 minutes to analyze my hard drive on the first run, but the results were tremendously helpful. I was able to see at a glance that I had two enormous folders buried on my system about which I had totally forgotten. One contained a complete backup of Sarah’s hard drive from, I think, 2007 — it had even been migrated in at least one laptop replacement, if not two. The other folder contained hundreds of thousands of files from an old backup of my own files, which I didn’t even know was on my system. Many of those were related to software development, meaning they got extra processing time from the virus scanner. The upshot: two folders alone accounted for more than 450,000 files and more than 100 GB. Unsurprisingly, getting rid of this junk sped up those virus scans tremendously, at least four-fold based on the first post-cleanup scan.
Summary and Non-Windows Options
WinDirStat is Windows-only, but there are good options for other systems. Although I don’t have personal experience with them, similar alternatives for other operating systems include:
- For Mac OS X:
- For Linux:
P.S. Sarah glanced over at my computer from a good distance while I was writing this post and thought that I was writing that I had 1,000,000 flies in my hard drive. Fortunately, no. If that happens to be a problem that you do have, I am afraid I can’t help you.
P.P.S. This post had the unintentional effect of illuminating serious shortcomings in my WordPress theme; the way images with captions are displayed is terrible. I think it’s a question of new versions of WordPress coming out more often than I post, on average, so the theme has languished for quite a while and quite a few versions. Time to give it another face lift, I suppose.