4 GB Private folder?!?

Discussion in 'macOS' started by killuminati, Jun 21, 2007.

  1. killuminati macrumors 68020

    killuminati

    Joined:
    Dec 6, 2004
    #1
    So my computer has about 4gb of free space on the hd.

    I leave for a few minutes, come back and see in the finder that there is 0KB! It also won't let me do anything, not even quit itunes because it says it can't save the library file. It's weird because the computer was idle, i'm pretty sure the only open app was iTunes.

    So I restart the computer but nothing has changed. So I transfer a bunch of files to an external HD then delete them. So I now have free space. I want to know where the space went though??

    I opened OmniDiskSweeper to see what's taking up space and I see this folder called "private" that I've never seen before. Where is this located and could this be the space that disappeared? I included a screenshot so you can see where the folder is.
     

    Attached Files:

  2. psychofreak Retired

    psychofreak

    Joined:
    May 16, 2006
    Location:
    London
    #2
    I think its virtual memory...you should always aim to keep a lot more than 4GB free, or get a lot more RAM...
     
  3. SC68Cal macrumors 68000

    Joined:
    Feb 23, 2006
    #3
    Get us some more info on that windowserver log. That is way too big. Way too big. Mine is 70kb
     
  4. killuminati thread starter macrumors 68020

    killuminati

    Joined:
    Dec 6, 2004
    #4
    I don't know how. I can't actually find any of those files. If I search for any of them it comes up with nothing :confused: .
     
  5. SC68Cal macrumors 68000

    Joined:
    Feb 23, 2006
    #5
    It's right there:
    /private/var/log/windowserver_last.log

    put this in the terminal:
    /private/var/log/windowserver_last.log > /dev/null

    That truncates the file to 0 but keeps it intact for logging again.
     
  6. killuminati thread starter macrumors 68020

    killuminati

    Joined:
    Dec 6, 2004
    #6
    I just tried that but was told permission denied. And I am on an admin account if that matters.
     
  7. SC68Cal macrumors 68000

    Joined:
    Feb 23, 2006
    #7
    Ok

    Code:
    sudo /private/var/log/windowserver_last.log > /dev/null
    
     
  8. killuminati thread starter macrumors 68020

    killuminati

    Joined:
    Dec 6, 2004
    #8
    I did that, it asked me for my password then it said "command not found". If I open a new terminal window and try again, i keep getting the same (but without asking for a password first). Forgive me if these are stupid mistakes I'm making, I don't usually use the terminal.

    I really appreciate all the help you've given so far, sorry I keep running into all these little problems.
     
  9. SC68Cal macrumors 68000

    Joined:
    Feb 23, 2006
    #9
    EDIT: Don't rm it

    1)
    Code:
    sudo -s
    2)
    Code:
    > /private/var/log/windowserver_last.log
    3)
    Code:
    exit
     
  10. killuminati thread starter macrumors 68020

    killuminati

    Joined:
    Dec 6, 2004
    #10
    I removed and my free space went from 7 up to 11 GB. Thanks for your help! :)
     
  11. killuminati thread starter macrumors 68020

    killuminati

    Joined:
    Dec 6, 2004
    #11
    Should I still follow your edited steps since I removed it already?

    And what's going to happen now? Will it be a big problem?
     
  12. SC68Cal macrumors 68000

    Joined:
    Feb 23, 2006
    #12
    My bad

    1)
    Code:
    touch /private/var/log/windowserver_last.log
    2)
    Code:
    chmod 640 /private/var/log/windowserver_last.log
    3)
    Code:
    chgrp admin /private/var/log/windowserver_last.log
    4)
    Code:
    sudo chown root /private/var/log/windowserver_last.log
     
  13. mkrishnan Moderator emeritus

    mkrishnan

    Joined:
    Jan 9, 2004
    Location:
    Grand Rapids, MI, USA
    #13
    Isn't the _last version of the file just the result of rotation -- that is, on reboot, windowserver.log becomes windowserver_last.log? I'm pretty sure that you *could* actually just delete it without any adverse consequences, although the other suggestions are much more elegant. :)

    Touch them other hitters cuz I'm down for my hitters...what?
     
  14. SC68Cal macrumors 68000

    Joined:
    Feb 23, 2006
    #14
    Could be. Just putting things back the way the were before we rm'd.
     
  15. killuminati thread starter macrumors 68020

    killuminati

    Joined:
    Dec 6, 2004
    #15
    Ok, I've followed your latest steps and everything seems to be all good now.

    Thanks for the help.
     
  16. SC68Cal macrumors 68000

    Joined:
    Feb 23, 2006
    #16
    Glad to help.

    I really wonder how a log file could grow to that kind of size. That's crazy.
     
  17. duflung macrumors newbie

    Joined:
    Sep 4, 2010
    #17
    Final answer?

    Do we remove it and forget it
    or
    do we remove it and then put it back the way it was ?
    Please list the steps.
    Thanks, bill
     

Share This Page