Helping people with computers... one answer at a time.

My hard disk keeps filling up. I know I can do things like delete temporary files, the Internet Explorer cache and the like, but it seems like there's something else taking more space than it should. Is there a way to find out?

Absolutely. In fact, slowly losing disk space is one of those things that's not only annoying, but can often be a sign of a problem such as a virus or spyware.

Fortunately there are free tools available to help figure it out.

Since you've already done the usual things to free up disk space, we'll start with a couple of things many people don't try.

In a command prompt, run:

chkdsk /f

That will probably tell you that the drive can't be locked, and would you like to run it on next reboot, to which you would answer "yes". Reboot the machine - as part of the reboot, it will now run a thorough scan of the hard disk and correct any logical errors that may have been introduced. Quite often these types of errors can be introduced when a program, or your computer, crashes.

"Using (diruse) we can find out where, on your hard disk, the most space is being used."

Now, I'll warn you that if the disk is really corrupt, whatever the cause, the result may be some lost data as well. I'd definitely recommend backing up or copying off anything that you'd consider critical.

But my motivation in mentioning chkdsk here, is that it's also possible that the process will free up a bunch of disk space.

Now, as to identifying where all the disk space is being used, go download the diruse tool from Microsoft. Using this tool we can find out where, on your hard disk, the most space is being used.

After installing the program in the default location, in a command prompt, run:

cd "\Program Files\Resource Kit"
diruse /s \ | sort

This will take a little while to run, and then all of a sudden a list of things will come flying by the screen. When it finally stops, the end of the list will show you the directories that are taking up the most space. For example on my machine it ends like this:

  876171666   7065  \i386
  959769713     14  \Program Files\Microsoft Streets and Trips\Data
  Size  (b)  Files  Directory
 1063624662   1127  \Program Files\Microsoft Visual Studio .NET\Msdn\1033
 2684179043     13  \
30070896690  135246  SUB-TOTAL: \
30070896690  135246  TOTAL: \

Ignore the size, total and sub-total lines. The biggest directory on my machine is the root directory (just "\"), which contains the system swap file, and the next biggest is the "Msdn\1033" directory within my Visual Studio installation, which contains the on-line product documentation. Your list will, of course be much different.

Once you see which directories are the largest in terms of used space, perhaps that'll give some clues as to what you might be able to do to recover it.

Article C2522 - January 16, 2006

Leo Leo A. Notenboom has been playing with computers since he was required to take a programming class in 1976. An 18 year career as a programmer at Microsoft soon followed. After "retiring" in 2001, Leo started Ask Leo! in 2003 as a place for answers to common computer and technical questions. More about Leo.

Not what you needed?

Recent Comments
35 Comments

Easycleaner has identified the System Volume Information as being the largest folder on the HD. OK - we know which is the biggest but what, if anything, is safe to delete within that folder. I have a bunch of sub-folders labelled RP239 to RP334 with dates between 16/01/2010 to today's date (12/04/2010) (English date system!) In some of these sub-folders are shortcuts to documents I've used and AdAware logos plus dlls and ini files and references to the registry - eek!
Can I clean it up? Should I clean it up? If Yes to both - how?

Posted by: Tom at April 12, 2010 4:39 AM

For those on a newer version of Windows (XP) or higher, the tool is now located here: http://technet.microsoft.com/en-us/sysinternals/bb896651.aspx

Also, the command has changed to du. It will sort by default.

Posted by: SP at May 1, 2010 8:25 PM

You shoud try TreeSize http://www.jam-software.com which is a free app.

Posted by: Nob at July 22, 2010 12:55 PM

Even though I am the administrator when I type chkdsk it tells me I dont have the rights and I should go to elevated mode!

That's correct. You're running Windows Vista or Windows 7, and when logged in as an administrator you still don't have full administrative privileges. Mroe here: Requires Elevation - What does that mean and what do I do?
Leo
23-Aug-2010

Posted by: Paul at August 21, 2010 9:39 AM

Leo I ran the chkdsk and it went through the motions and completed and restarted.I then checked the free disk space still said 3.57gb free out of 325gb disc c pie is complete blue with a sliver of pink (freespace) dont know what else to do I have delete every picture and program that i think i can delete frustrated can you help me not to computer savy but trying

Try this article: Where's my disk space going?
Leo
10-Aug-2011

Posted by: Fred at August 9, 2011 4:45 PM
Post a comment on "How can I tell what's taking up so much disk space?":





Remember Me?

(You may use HTML tags for style)

Before commenting, please...

  • READ THE ARTICLE. A comment that shows you didn't will be deleted and ignored.

  • Comment only on the article. Use the search box at the top of the page if you have a question about something else.

  • NO PERSONAL INFORMATION in the comment. No email addresses. No phone numbers. No physical addresses.

  • Anything that looks the least bit like spam will be deleted. Links to unrelated sites or links that appear to be primarily promotional will be deleted, or the comment will be deleted.

  • Don't ask me to recover lost passwords or hacked accounts. I can't. Those comments will be deleted.

  • I can't respond to every comment. And I can't vouch for the accuracy of others who do.

Please wait. Your comment is being processed ...