Skip to main content

Riddle: When isn't free space free?

So tonight I discovered my hard drive was slowly being choked by some mysterious process writing gigs and gigs to it. So I moved 75GB of files to an external drive only to come back a few hours later and discover my free space was back down to 23 GB.

Where did 50 GB of files come from in just a few hours!?

Idea #1

Rogue process downloading large files...*cough*iTunes*cough*

I had NetUse Traffic Monitor running and it clearly showed that there was definitely not 50 GB of downloads in that time period.

Idea #2

Rogue process writing lots of log files

In my investigation of what to move to the external drive I used GrandPerspective to get a visualization and catalog of what was on my drive. Thankfully I hadn't closed that window so I could rescan and compare what had changed.  Here's the next head scratcher, it showed only a 4 GB total difference in used space between the two scans.

Idea #3

It was something on my wife's side which GrandPerspective couldn't see since it didn't have permissions to her files.

Nope, she only had 24 GB of files on her side.

Idea #4

Google for "mysterious hard drive full"

Surprisingly this got me some new ideas, like it was hidden files, or bad Time Machine backups to a non-existent external drive. Sadly they were not the problem. I even found someone with the same problem but no solution.

Idea #5

Run 'du' to show what GrandPerspective can't see

A this point I realized that GrandPerspective was reporting 104GB of "miscellaneous used space". So Googling for more info, one of the posts I stumbled on lead me to a page about Mac OSX Tiger Problems which introduced me to the BSD disk usage command 'du'. So it seemed like a lower-level command that would take some time, but would show me what GrandPerspective supposedly couldn't. Sadly it didn't and agreed with GrandPerspective that 804GB of my 931GB drive were being used while 'df -kh' agreed with the Finder that only 23GB were free. So four tools were giving me two different answers, that I had either 23GB free or 127GB free depending on which you asked.

Idea #6

Ask Google why 'du' and 'dk' can give different answers.

Sure enough, Google had an answer to why 'du' and 'dk' can differ. Turns out a process can hold onto a deleted file and the file will be unaccounted but the disk space will still be considered used. So at this point I gave in (sorry, never figured out who the offender was) and restarted my computer. Sure enough, after the Finder came back up...I had magically cleared up nearly 87 GB of hard drive space.

Moral of the story

Try restarting first, even for disk free space issues apparently. #facepalm

Comments

Popular posts from this blog

Simplifying logging with Maven and SLF4J (Part 2)

So in my  previous post  I explained how to simplify your logging with Maven and SLF4J. If you haven't read it yet, please do before reading more.  Since then I've discovered an easier and cleaner way to remove the secondary frameworks from your Maven dependency tree. Here's a revised overview of the steps: Decided which logging framework will be your primary, aka who will actually write to your log file. Define the dependency scope of all the secondary frameworks to be ' provided '. Configure your project to depend on drop-in replacements of each secondary framework from SLF4J. Define secondary frameworks as provided Use the dependencyManagement section for this. Its used when you might have a dependency transitively. Add dependency on SLF4J Add the following to your pom.xml Conclusion So now in only 3 steps you can redirect all your logging to your primary logging framework without changing a line of code!

3D Photo Viewer for Looking Glass

The Looking Glass I created my first Chrome extension, which is now live on the Chrome Web Store ! It's built for the Looking Glass , a holographic display that let's you view three-dimensional objects without glasses. I've also opened the source to the extension on GitHub. The Chrome extension allows you to view Facebook's "3D Photos", a feature they added in 2018 for displaying photos that include a depth map like those from phones with dual cameras, such as Apple's "Portrait Mode". Getting Started To use the extension, connect your Looking Glass to your computer, navigate to Facebook and open the viewer from the extension's popup menu. This will open a browser window on the Looking Glass display's screen in fullscreen mode. Opening the Viewer Once the viewer is open, the extension watches for any 3D Photo files being downloaded, so browse around Facebook looking for 3D Photos.  I recommend some of the Facebook groups de...

First Impressions from NoSQL Live

Today I drove up to Boston for the day to attend NoSQL Live . My experience so far within the NoSQL community has been limited to what we've built in-house at Disney and ESPN over the past decade to solve our scaling issues, more recently has been ESPN's use of Websphere eXtreme Scale , and the very latest has been my own experimentation with HBase which hasn't gotten much further than setting up a four node cluster. I've read a little about Cassandra, memcached, Tokyo Cabinet and that's about it. So before the sandman wipes away most of my first impressions of the technologies discussed today, I wanted to record my thoughts for posterity or, at the very least, tomorrow. Cassandra Cassandra seems to be the hottest NoSQL solution this month with press about both Twitter and Digg running implementations. My impression, I'm wary of "eventual consistency". I don't feel I understand the risk and ramifications well enough to design a system properly...