Ask Leo! by Leo A. Notenboom

How can I tell what's taking up so much disk space?

Search First! Then browse: Categories | Full Archive | By Date | Newsletter

Home » Windows

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.

Related:

  • Ask Leo! - What is 'defragging', and why should I do it?

  • Ask Leo! - Why is my machine slowing down?

  • Ask Leo! - I can't format my hard drive - it keep telling me "volume is in use by another process" -- why?

  • Article C2522 - January 16, 2006

    Helpful? Get new articles weekly by email in my FREE newsletter!

    Your Name:
    Your Email:


    Why Subscribe?

    Recent Comments
    30 Comments

    im losing memory on my hard drive ive got 80 gig ive done the usual stuff i dont have much on my computer and yet i have 50gig left and it gets less each week how do i stop deleated folders bieng saved on my hard drive thanks.

    Posted by: justin at January 24, 2008 3:54 AM

    This process worked for me. I used to have 88.3 gb remaining on my HDD out of 140. Now I have 109gb remaining. Run disk clean up. Go to more options on the second tab. Go to the second part where it says remove restore points and shadow copies, press up clean up. This removes all of the restore points until the most recent one.

    Posted by: micheal at February 3, 2008 12:18 PM

    You dont know what your talking about it didnt work it only works for microsoft xp proffesional and windows 2003. You should explain that to people.

    Posted by: Thheeez at April 25, 2008 4:59 PM

    I am running XP Prof, SP2, why is IE7 taking up so much memory? My system slows down or just completely stops in the middle of loading IE, I'll check what processes are taking up so much memory and it's IE, why so much? I do check for Spyware and download updates but it seems IE7 is using a lot of memory.

    Posted by: jinxed at July 8, 2008 5:14 PM

    How can I do the same thing for windows xp? What do I type in the run screen after i download the diruse and all that came with it from microsoft?

    Posted by: alice key at October 16, 2008 6:16 AM

    I have a Windows 2003 server and having similar issues. I've tried the tree size, disk cleanup, defrag, etc. and I am not seeing anything outside of the ordinary...but my disk space is being eaten away. I am using only 6.19 GB of space when I get the size from the folders, but it says that I have only 51 GB of remaining space (on a 150 GB drive). I know some is used for the swap file (1.5 GB). Nothing else exists.

    Posted by: Robert Williams at December 3, 2008 10:37 AM

    i keep loseing free space i keep deleteing old files.i not useing .but i keep lose free space why/ can some one help.i have windows vista basic

    Posted by: roseann santore at March 19, 2009 3:05 PM

    Still haven't used Disc Clean up as I haven't a clue as to what to keep and what to delete.Being a frightened that I might lose something essential, can you advise on what is reasonable to delete.Many thanks

    Posted by: Bernard Scotson at April 30, 2009 11:23 AM

    I have an odd problem,i have a small hdd of 80 gb,10 of these are used for the C:\ drive,right now i have less than a gb of free space,800 mb more precisley,so i should have at least 8 gb of space used(my C:\ drive is not exactly 10 bg),but when i check the space used by all the files on my C:\ drive this is what i get :Size:7.02 and Size on disk 5.87 GB ,what could cause this?

    Posted by: Zach at June 16, 2009 7:06 AM

    One thing to remember is that when you are deleting files, if all you do is hit the "delete" button, they will normally end up in the "Recycle bin". Still using up space. Go into the recycle bin and clean it up too. Or use a tool like ccleaner to explicitly cleanup the recycle bin.

    Or when you are deleting files, press and hold the SHIFT key in combination with the delete key to bypass the recycle bin.

    Posted by: Rohn at June 16, 2009 8:26 PM

    Post a comment on "How can I tell what's taking up so much disk space?":






    (Email Address will not be published.)

    Remember Me?

    By popular demand...
    my tip jar
    Cuppa Joe
    Buy Leo a Latte!

    (you may use HTML tags for style)

    RSS feed Subscribe to the RSS Feed specifically for comments on this article.

    Before commenting, please...

    • Read the article at the top of this page. If your comment shows you didn't, it'll be deleted and ignored.

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

    • Don't include personal information in the comment. No email addresses. No phone numbers. No physical addresses.

    • Don't spam. Excessive links to unrelated sites within a comment or across multiple comments will cause all such comments to be removed.

    • Don't ask me to recover lost passwords or hacked accounts. I can't, and 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 ...


    Question? Ask Leo!