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 « »

Share this article with your friends:

Share this article on Facebook Tweet this article Email a link to this article
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?

January 17, 2006 4:37 PM

I cleaned up my disk and i ticked the compression of old files. Is that a problem? I also installed adobe acrobat 6 pro and when i entered Outlook it said that i have to accept some macros from adobe, it never asked me to accept anything before despite that i had adobe reader 7 installed, it says something about Anyway, after that i recovered my pc to a date that i hadnt installed acrobat 6 pro and when i opened outlook it said the same (it wasnt supposed to say anything, because in the recovery date no acrobat 6 was installed). Is there something i can do to sort things out? Thanks in advance.

Jake Ludington
January 17, 2006 8:46 PM

diruse provides some cursory information about disk usage, but my favorite app for keeping track of disk usage (on my local computer and across my network) is Disk Triage. The app allows you to trend disk usage and watch for specific file types filling up hard disk space. Graphing and charts provides visual information about where your drive space is being used over time and in general offers some of the best details I've ever found for keeping unnecessary files from clogging my hard drive. It's not free, but the file management is well worth the price. Combining it with an app like the free DupKiller to eliminate duplicate files and you've got an optimized solution for keeping your disk space usage to a minimum.

Ivan Tadej
January 18, 2006 9:14 AM

Or the reason might be the files/directories saved by the System Restore NT-service, i.e. this folder is to used to store various system/configuration changes.

If you want to get the space back, i.e., get rid of all those files under directory usually named "\System Volume Information\" (however, note that you can't browse it), and located in root of a NTFS-formatted drive, one just needs to disable or stop the System Restore service (or just set it to Manual startup-type), reboot and enable/start it again; of course if one is confident enough to mess with "services.msc". Another option is however, to only delete all the "restore points". Ah yes, and just as a further information; also note that these files/directories cannot be defragmented by Windows built-in defrag program.

best regards,
Ivan Tadej, Slovenija, Europe

Gas van Ko
January 21, 2006 4:09 AM

This solution is simply not good enough! The best way to find out your disk usage is like Jake Ludington said, use a disk space analyser, except the one he mentionned, "Disk Triage" is software. I'm using (since 3 years now) a FREEWARE called TreeSize and its available here: It shows you a Directory tree listing with its size and percentage of space on the left, it also orders the directories from biggest to smallest. It is very useful and simple to use, I recommended to anyone who wants to free up space!

Gerald Entine
January 21, 2006 6:05 AM

By far the best tool to know what is taking up space on your hard drive is ZTREE, an old program which was developed during the early DOS years and originally called XTREE.

Among many other easy to use features, this program allows the user to list all files in order of size, date, name or extension. It is also easy to put in file specs such as *.tmp and *.bak or *.swp and view all such files with the goal of conveniently deleting those of no value with a few simple key strokes.

Some of the particular disk cleaning operations which are made possible by this program are to look for duplicate files located in two or more directories or partitions, copying selected files or groups of files to other drives or CDs while preserving their tree structure, or quickly determining which files have been modified on a given day to allow an incremental backup of a full day's work in less than a minute.

Although other disk maintenance programs may have more modern interfaces, nothing can compare with the effectiveness and ease of use as ZTREE (note: I have no affiliation with the authors or sellers of this program.)

January 25, 2006 9:59 AM

In keeping with the tree idea my favourite disk space app is the sleeper "Sequoiaview".
With A beautifuly colored graphic interface it makes searching for large files as easy as looking at a picture.and best of all it's free from

January 25, 2006 10:21 AM

That's an "interesting" display they use. HOWEVER I almost gave up on them totally because of the popup ad that was totally blocking my access to their site. BAD BAD behaviour ... especially for a university.

January 31, 2006 7:30 AM

I really like WinDirStat. It is free open-source software pulished under the GNU General Public License. It allows you to sort files/folders by size, percentage of disk space, etc. It also provides a graphical view that makes spotting the space hogging culprits a piece of cake.

You can download it at

February 14, 2006 5:33 AM

Can I also add JDiskReport:

It's pretty nifty on the analysis side.

July 7, 2006 10:47 AM

I was having a problem regarding this disk space. My drive was 4.65 and only .5 gb was left empty. I tried disabling the Sytem Restore on all drives. Instantly the free space became 1.88 gb. And I haven't tried a scan disk or even a reboot. Thanks Ivan, your suggestions saved me.

October 9, 2006 1:16 PM

to do this on multiple number of machines, use psexec.

February 12, 2007 4:00 PM

My computer is a fairly new hp laptop, it is less than a year old. Recently I went to defrag it and relised that I only have 44% of my memory left and cannot find what is eating it all up. I deleted all of my pictures and all but 8 gigs of my music. I have done everything this page says to and have tried multiple temporary file removers(ex CC cleaner). nothing is working. I have almost nothing on this computer except mozilla, AOL, internet exploere. When I run programs like diruse I get results saying that my music is taking up the majority of the space (which only totals to be 44000 MB), but I know there is only eight gigs of music on it and my computer has the capacity of 84 gigs. I have had norton as my virusware in the past and I am currently using symantic. I cannot find what is eating all of my memory. got any ideas?
thanks kara
p.s. yes my windows is updated and as is my ad-aware and symantic

David Ross
April 29, 2007 4:31 PM

When I run "Diruse", it shows thousands of files and numbers zipping by, but when the program stops all the information disappears. Is there another command I can add after
” | sort” to freeze the information so I can look at it and scroll through it?

Leo A. Notenboom
April 30, 2007 12:31 PM

Hash: SHA1

Sure! Use "more":

diruse /s \ | sort | more


Version: GnuPG v1.4.6 (MingW32)


May 21, 2007 11:50 AM

I just want to say a great big THANK YOU for this very valuable information!!! You've just saved my sanity! Your instructions and information on diruse helped solve my problem. Thanks, again!

douglas campers
May 31, 2007 7:12 PM

Dude thanks for the tips. I hope adsense is treating you well.

October 18, 2007 2:34 PM

I've been losing approx. .5GB of free space per week(I have 80GB hard drive). I've tried all the normal stuff,can't stop the loss or find out where it's going. I read your article and downloaded DIRUSE,but cant open or run it. It appears to be for windows 2000. I have xp. Any ideas? I'm just about ready to give up and reformat.

Leo A. Notenboom
October 18, 2007 9:59 PM

Hash: SHA1

Try this article:


Version: GnuPG v1.4.7 (MingW32)


December 25, 2007 9:13 PM

Why,when I check the capacity of my hard disk, I see free capacity is 10.4GB and used capacity is 30.5GB.But,when I check all files and folders in the same hard disk, their capacity is only 13.6GB.I think it is not a virtual memory because it is too large difference.Please help me the reason and how to repair.My laptop is T61 Thinkpad.
Pls send me email.Thank a lot.

Lou Gascon
January 13, 2008 5:12 AM

Diruse - useful - But what then...?
I originally checked my usage on C:\ with Easy Cleaner Space Usage and got a print out showing \winxp using 33% of 16.6 GB (\system volume information uses 10% & \program files 13%)...
Why should WinXp need and use such a wadge of my hard drive and what (If anything) can I do to reduce it...?
Thanx in advance Leo

January 24, 2008 3:54 AM

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.

February 3, 2008 12:18 PM

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.

April 25, 2008 4:59 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.

July 8, 2008 5:14 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.

alice key
October 16, 2008 6:16 AM

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?

Robert Williams
December 3, 2008 10:37 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.

roseann santore
March 19, 2009 3:05 PM

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

Bernard Scotson
April 30, 2009 11:23 AM

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

June 16, 2009 7:06 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?

June 16, 2009 8:26 PM

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.

April 12, 2010 4:39 AM

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?

May 1, 2010 8:25 PM

For those on a newer version of Windows (XP) or higher, the tool is now located here:

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

July 22, 2010 12:55 PM

You shoud try TreeSize which is a free app.

August 21, 2010 9:39 AM

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?

August 9, 2011 4:45 PM

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?

February 27, 2012 3:42 PM

I downloaded diruse and installed it. But, it just flashed on and then off quickly. I didn't get to read it. Also, the "cd "\Program Files\Resource Kit"
diruse /s \ | sort" command prompt thing did not work. Please help.

Mark J
February 27, 2012 10:37 PM

The problem with using the Run command from Windows is that unless you are using it to run a program which expects further input, the program will run and will close before you get a chance to see it. Running the cmd.exe program instead of the Run command solves that problem.
When I use Start-Run and type in a command, why does a window just flash and disappear?

Bob K
August 4, 2012 8:37 PM

Ok I did all this and Dowlaoded from Tree Size and WinDirt. Came up with 1 file that is in "general" tab 785 gb. but can't open it at all so I don't know what it is. Can anyone help?

Comments on this entry are closed.

If you have a question, start by using the search box up at the top of the page - there's a very good chance that your question has already been answered on Ask Leo!.

If you don't find your answer, head out to to ask your question.