General Mac OS X Discussion General Apple and Mac OS X Discussion

Reply
 
Thread Tools Display Modes
  (#1) Old
steveg_va steveg_va is offline
Junior Member
 
Posts: 18
Join Date: Mar 2009
Question Hidden /private/var directory hogs space on Runcore SSD - 05-02-2010, 07:15 PM

Summary: something in /private/var is hogging a huge amount of available memory on my 64GB Runcore SSD, and I do not know how to identify it or how to fix it.

I installed a 64GB Runcore in my Mini 9. It is now running 10.5.8 (10.6.3 displayed the well-known audio-not! problem, so reverted back to 10.5.8). When I looked at available space on the disk (the Runcore SSD), there were only a bit north of 3GB remaining! But, my [visible] files only added up to about 26GB. I trimmed my mail folder, etc., but that hardly made any difference.

So, I ran Onyx and made invisible files visible. I also cleaned out caches. The cleaning got me up to about 5GB or free space, but still I could not figure out where all the rest was coming from. (BTW, I just re-checked, and I am back to having only about 3GB of free space! I wish that I knew what is happening here.)

Then, I started looking through the previously hidden directories, and found that /private/var was accounting for about 31GB!!! And, cleaning out the sleep files (disabling Hibernation with NetbookInstaller 0.8.3) only recouped a few GB (now taking up about 29GB). I checked all the subdirectories in /private/var, and they hardly account for much space. But several will not reveal their size (agentx, backups, and root), and though I can see them in Terminal with sudo, I do not know the command (and syntax) for discovering their size.

Is there anybody out there who can help me correct this without bringing down my machine?

TIA,

--Steve
Reply With Quote
  (#2) Old
reflex reflex is offline
Guru
 
reflex's Avatar
 
Posts: 1,997
Join Date: Apr 2009
Default 05-03-2010, 03:45 AM

du = simple and common terminal command for reporting disk usage


Mini 9 | Intel 5100 Wifi | Ubuntu 10.04 Netbook
Mini 1012 | SSD | Intel 6200 Wifi | Ubuntu 11.10 64bit
Reply With Quote
  (#3) Old
steveg_va steveg_va is offline
Junior Member
 
Posts: 18
Join Date: Mar 2009
Red face duh! - 05-03-2010, 03:30 PM

Quote:
Originally Posted by reflex View Post
du = simple and common terminal command for reporting disk usage
THANKS! I should've remembered that one. I am oh, so rusty with UNIX/*IX.
Reply With Quote
  (#4) Old
Akki Akki is offline
Expert Member
 
Akki's Avatar
 
Posts: 522
Join Date: Sep 2009
Location: Jersey City, NJ
Default 05-03-2010, 03:59 PM

OmniDiskSweeper is a nice graphical tool to explore and clean a disk. Additionally tools like Yasu will run some of OSX's cron jobs etc. that clean out various temp spaces.


One Unix note about "disk missing" is that if a file is being accessed then removing it doesnt free the space until it's not accessed. So if you've got something writing a big file, you see that, delete the file, but don't kill off the program that was writing it, you may now have a stealth disk hog. Can always reboot to kill em all.


mini 9 | 2GB RAM | 16GB STEC SDD | BIOS A06, USB Legacy OFF | No Bluetooth | OSX 10.6.7 | NBI 0.8.5pre w/ ALC268 | Broadcom2Airport
MINI Cooper '02 | 1.6L | CVT | Moonroof | Red w/ White Stripes

Want the ALC268 mini 9 sound fix? Get it here http://dl.dropbox.com/u/2377323/Mini9SoundPatch.zip
Reply With Quote
  (#5) Old
steveg_va steveg_va is offline
Junior Member
 
Posts: 18
Join Date: Mar 2009
Default OmniDiskSweeper did the trick (problem was .asl files) - 05-03-2010, 09:57 PM

Quote:
Originally Posted by Akki View Post
OmniDiskSweeper is a nice graphical tool to explore and clean a disk. Additionally tools like Yasu will run some of OSX's cron jobs etc. that clean out various temp spaces.


One Unix note about "disk missing" is that if a file is being accessed then removing it doesnt free the space until it's not accessed. So if you've got something writing a big file, you see that, delete the file, but don't kill off the program that was writing it, you may now have a stealth disk hog. Can always reboot to kill em all.
This was a HUGE help. THANK YOU!

With OmniDiskSweeper, I found that the hogs were in /private/var/log/asl. I then found that these are Apple System Logs. And, a great reference on the web at:

Apple - Support - Discussions - Mac Mini G4 has huge ASL log files and ...

It gives a set of commands in Terminal that would: (1) stop the logger; (2) clear the .asl files, and then (3) re-start the logger.

The author's solution:
================================================== ======

I did this using the fallowing commands. EXACTLY as they are typed in the terminal.

The terminal can be found in. the utilities folder.

sudo -s
type in your password
launchctl stop com.apple.syslogd
rm /var/log/*.*
launchctl start com.apple.syslogd
exit

be very careful using sudo -s. you can delete every thing off the computer using sudo. You can also break the system if you start messing around with files. It's always a good idea to back up before altering the system. This is do at your own risk.

================================================== ======

In my case, I had to delete the .asl files in /private/var/log/asl, and I substituted

rm /private/var/log/asl/*.*

and rebooted. The new asl files are much smaller now. I do not know, however, if they will eventually take over my disk again. I am running 10.5.8 on the Mini 9. I just checked my Mini 10v, running 10.6.3, and the same thing is happening (large .asl files, but about 25 MB, rather than 57MB on the Mini 9). The Mini 10v has a larger HDD so I did not notice that it was filling up. I'll have to apply the fix there, too.

---------- Post added at 05:57 PM ---------- Previous post was at 05:43 PM ----------

Thanks for the pointer to the Mini 9 sound fix. Right now, audio works on 10.5.8, so it ain't broke. I'll stick with it until a fix gets included in NetBookInstaller for SL.

you wrote:
Want the ALC268 mini 9 sound fix? Get it here http://dl.dropbox.com/u/2377323/Mini9SoundPatch.zip
Reply With Quote
  (#6) Old
nobo_mini nobo_mini is offline
Senior Member
 
Posts: 122
Join Date: Aug 2009
Default 05-03-2010, 11:28 PM

/private/var are the same since /var is really a symbolic link to /private/var. So, either path will work.

ASL should be clearing out the log files every seven days. My Mini and MBP are working properly regarding this, so, wondering what might be "off" re: OPs situation? Downloaded/pirate copy and/or a mucked up plist for the service?


Mini 9 | OS X 10.6.7 | 2GB | 16GB STEC | .3Mp | No BT |
BIOS A05 | USB Legacy: ON | USB Wake: OFF | Bluetooth: OFF | NBI .8.4 RC1.1 (20100616212351)
Sleep: Working | Speakers: Working | Headphone Jack: Working
Reply With Quote
  (#7) Old
steveg_va steveg_va is offline
Junior Member
 
Posts: 18
Join Date: Mar 2009
Default 05-04-2010, 01:10 AM

Nothing pirated. I bought and own the MacOS X DVDs. Could be a plist, but I have no idea what it would be called. Suggestions?

Many thanks,

--Steve
Reply With Quote
Reply

Tags
/private/var, hidden files, space hogging

« Previous Thread | Next Thread »
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Copyright © 2008-2016 MyDellMini.com.