Hey, where'd my drive space go? (Or: How the Arduino ate my bytes)
Been a while since I wrote, but I found something interesting today that bore sharing.
I was helping a coworker out today, tracking down where all of his drive space went. I knew that Microsoft had a tool for such things -- it's called diruse and can be downloaded here) but I hadn't used it in a long time.
Once installed, it's pretty easy. Open a command window and go to the installation directory (by default it's c:\program files\resource kit), then the command looks something like this:
diruse c:\ /s /d /m /q:1000
This will give a list of all folders that are more than 1000 Mb in size.
To my surprise, I found that there were a number of temporary folders with more than that -- in one case there was a 2 gb temporary folder, filled with (drum roll) Arduino error logs!
They were located deep in a subfolder of a subfolder of my personal files (in my case it was c:\users\jeff\appdata\local\temp), and looked like "console17287.tmp" or "console430.tmp". In each directory there was a stderr.txt & stdout.txt file. These apparently capture the output of the stdout & stderr streams from the Arduino programming environment & language.
In my case, I've had some issues with serial port connectivity and there have been times where I let it sit there spitting out communications errors for a good long while...well, those were buffering up in files, and slowly consuming quite a bit of disk space.
So, if you're doing Arduino development and find yourself wondering "Hey, where did all my disk space go", remember this post. You're welcome. ![]()
12/21/09 04:29:50 pm,