How to determine where all of your free disk space has gone in OS X

by Ross McKillop on June 25, 2007

Mac
Heya StumbleUpon visitor, I hope your day is going well and your boss thinks you're hard at work. If you liked this page, please feel fre to give it a thumbs up, I'd be hugely appreciative.

Disk Inventory X is an open source (free) program that shows you where your free disk space has gone. And you may be surprised with its findings - I was shocked.

After you’ve downloaded and installed Disk Inventory X (which is very straight forward) launch it from your Applications menu.

  1. Each of your currently mounted drives (including the .dmg for Disk Inventory X if it’s still active) will be displayed.
  2. disk inventory x
    click to enlarge

  3. Select the drive you want to examine, and then click Open Volume.
  4. disk inventory x
    click to enlarge

  5. Depending on the size of your drive, the number of files on it, and the speed of your Mac (to some extent) it can take a few minutes for Disk Inventory X to finish its examination.
  6. disk inventory x

  7. When it’s done, you’ll get a complete listing of all the files (and folders) on the drive you selected back in step 2. To sort the files by size, choose the Size column (see screenshot below).

    In my case, MP3 files were responsible for taking up the most space on my hard drive. I expected this. What I did not expect, was that Log Files took up the second most amount of space. As you can see (again, from the screenshot below) they account for 16.9 gigabytes of space.

  8. disk inventory x
    click to enlarge

  9. If you’re curious about a specific type of file (as I was) - highlight it by clicking on it once, then right-click (ctrl-click for single button mouse folks) and select Show Files in Selection List.
  10. disk inventory x
    click to enlarge

  11. A new window pane will appear and it will display all of the files that fall into the category that you previously selected (in my case, Log Files). Again, you can sort by size by clicking the Size column. Here’s where I noticed that a single file, VirtueDesktops.log, was 16.9 gigabytes in size.
  12. disk inventory x
    click to enlarge

  13. If you right-click on any of the files and choose Reveal in Finder, a Finder window will open and display the file in question.
  14. disk inventory x
    click to enlarge

  15. You can also delete files from within Disk Inventory X by right-clicking them and choosing Move to Trash.
  16. disk inventory x
    click to enlarge

Related Posts:
  • How to display your free hard disk space in the OS X Menu bar
  • How to determine where all of your free disk space has gone in Windows
  • How to determine your IP or MAC address in Windows
  • How to repair disk permissions in OS X
  • Use Auslogics Disk Defrag to defragment your Windows hard drive faster
  • Get Simple Help tutorials just like this one in your email inbox every day - for free! Just enter your email address below:

     

    You can always opt out of this email subscription at any time.


    Bookmark and Share

    { 4 comments… read them below or add one }

    1 Marc 06.26.07 at 6:08 am

    I’ve been using Disk Inventory X for a long time now and have absolutely loved it. It gives a very intuitive feel to where you disk space is used.

    2 Jed Daniels 06.26.07 at 9:38 am

    I’ve also been using Disk Inventory X for a long time, but for me it doesn’t work *that* well because I also use FileVault protection. FileVault encrypts all the data in my Users directory (for those that have it turned on), and Disk Inventory X simple can’t see inside of it. Instead I get a big block of “spare disk image” that takes up most of the space.

    I was going to post about how you can use “du -h -d 1″ from a terminal window to get the information you need, but I checked on the Disk Inventory X website forums and I found that you can simply select just your home folder, instead of the whole drive, to get the details on what is inside of that encrypted space.

    For those of you that may ask “why use FileVault?”, the answer is simple: security. On any laptop that you use for work or have any private or sensitive information on (financial stuff, email, etc.), you really should encrypt at least the juicy bits. FileVault does it automaticaly and does a pretty decent job. I know it had some issues in 10.3 and earlier, but on 10.4 it has been rock solid.

    Great article Ross, keep up the good work. Did you find what about VirtueDesktops was filling up that file? I’ve been using 0.54beta2 for a while and haven’t noticed anything odd (I just saw that there is an 0.54beta4 update, which I will apply today).

    –jed
    http://www.itsnotthenetwork.com

    3 Ross McKillop 06.26.07 at 10:45 am

    Jed -

    I wasn’t about to open that bad-boy up in any text editor, but I did a tail on it and got stuff like:

    2007-06-26 11:31:21.948 VirtueDesktops[128] PNDesktop.m:497 -[PNDesktop addWindows:]; Ended
    2007-06-26 11:31:21.948 VirtueDesktops[128] PNDesktop.m:659 -[PNDesktop updateDesktop]; Add new windows
    2007-06-26 11:31:21.948 VirtueDesktops[128] PNDesktop.m:663 -[PNDesktop updateDesktop]; Ending

    So it really looked like it was logging nearly everything that occurred on a given window.

    On my never-ending list of things to do is research why on earth this is happening, if it can be disabled (I did a scan of the Prefs and it doesn’t even mention logging, let alone disabling it) or started w/ logging disabled. Since it’s kinda a low priority for me (and VD has never used much CPU) I just setup a cron to kill VirtuDesktops, delete the log file, and restart VD every 12 hrs.

    I did try 0.54b4 for a few days but it was actually more buggy than b3 (for me) so I reverted back to b3. The du method you mentioned above is EXACTLY what I told a buddy of mine to do when he asked about why his new MBP had much less free space than he thought it should have. My suggestion was actually:

    cd / ; sudo du -h -d 1 > ~/Desktop/drive.txt and then import to a spreadsheet and sort by the size column. But then I found Disk Inventory X and that is really a lot easier :P

    I’m curious - do you have a /Users/you/Library/Logs/VirtueDesktops.log file? And if so, how big is it?

    Cheers,

    Ross

    4 Jed Daniels 06.26.07 at 9:08 pm

    Ross,

    Interesting about the logs. Sounds like you have a debug build of VirtueDesktops. I looked for a log file and didn’t find one at all, much less one that was chewing up drive space. Do you have an MBP, MB, or PowerBook? I know people that have had some instability with non-intel macs and VirtueDesktops. It looks like there are at least a few other people with the same problem on the Virtue Forums at cocoaforge. I’m guessing you might want to see if there is an alternate build that has debugging turned off of whichever version is stable for you.

    I suspect killing VD regularly is just fine, but you might consider just doing a “cat /dev/null > /Users/you/Library/Logs/VirtueDesktops.log” if there are any ill effects.

    On opening the large file in a text editor, I suspect that the latest versions of Vim can probably cope just fine, but I’m going to test it in a little while and report back with the results if you are interested.

    –jed
    http://www.itsnotthenetwork.com

    Leave a Comment

    You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>