9 Replies Latest reply: Feb 21, 2012 12:41 PM by darkcooleo
darkcooleo Level 1 Level 1 (0 points)

Hello,

 

This is going to sound strange but I wanted to partition my MacBook Pro, I kept getting errors so I decided to boot into recovery mode and run a repair disk. It all worked fine and I was able to then partition my disk.

 

Before running repair disk I had 30GB free, I now have 110GB free  -  How has this freed up all that space? and What was eating my space in the first place?


MacBook Pro, Mac OS X (10.7.2)
  • 1. Re: Repair Disk Freed Space (80GB)
    darkcooleo Level 1 Level 1 (0 points)

    Sorry to bump but I really need some insight into what caused this and to stop it from happening again.

  • 2. Re: Repair Disk Freed Space (80GB)
    Courcoul Level 6 Level 6 (11,470 points)

    One possibility is that apps that didn't quit properly left temp files in an inconsistent state, leading the OS to believe they were real and setting aside room for them. Disk Repair detected and corrected those inconsistencies.

     

    I usually do a disk repair whenever any heavy app crashes, to be on the safe side. Examples of "heavy" apps that have a lot of temp files or do much caching on the disk are all Office apps, most Adobe apps that have to do with imaging, etc. Needless to say, anytime the OS crashes (a kernel panic, in Unix parlance), a disk repair is mandatory, but I haven't had any of those since the days of the Leopard.

  • 3. Re: Repair Disk Freed Space (80GB)
    darkcooleo Level 1 Level 1 (0 points)

    It was mandatory, disk utility told me to boot into recovery mode (cmd R) and run repair disk, before I did this it would not let me partition my disk and it could not repair while using the disk, it had to be in recover mode.

     

    I enabled hibernation mode on my Mac, http://www.karthikk.net/2011/12/put-mac-os-x-lion-in-hibernate-deep-sleep-mode-h ow-to/

     

    As I wanted to put it to sleep without using the battery while being transported. Could this have caused it?  80GB is a **** of a lot of space and I need to make sure its not eaten again.

  • 4. Re: Repair Disk Freed Space (80GB)
    AnaMusic Level 9 Level 9 (57,005 points)

    This may, or may not have something to do with it...

     

    http://support.apple.com/kb/ht1430

     

    Also, see here...

     

    Where did my Disk Space go?

  • 5. Re: Repair Disk Freed Space (80GB)
    darkcooleo Level 1 Level 1 (0 points)

    First link goes to turning iPod, iPad and iPhone off and restarting.

     

    2nd link is really good and informative, I've had a long read through all the items on there.

     

    So I guess it could have been TimeMachine backups (locally as its a MacBook Pro) or a directory problem, could "hibernation mode be causing the directory problem" ? As its writing the session to HDD every time I hibertate and its not officially supported by apple in OSX.

  • 6. Re: Repair Disk Freed Space (80GB)
    Courcoul Level 6 Level 6 (11,470 points)

    Another item that came up in another discussion was the swapfiles. As it works, the OS uses a virtual memory scheme to extend the amount of memory percieved by the apps. For some reason, MacOS X periodically starts a new swapfile for storing the extra memory pages. Well, went to check what was on my HDD using an old but trusty utility, Disk Inventory X. Lo and behold, hadn't rebooted the Mac since early January and there was a chockful of lingering swapfiles, to the extent that I got back almost 12 GB of disk space after rebooting and having the system clear out the old crud.

     

    FWIW, here's a link to Disk Inventory:

     

    http://www.derlien.com/

     

    As for hibernating vs. sleeping, as far as I know, the portable does both. As you might have noticed, when you close the lid it takes awhile for the sleep LED to start pulsing, and if you put ear to Mac, you will hear frantic disk activity. What the computer is doing is saving the contents of RAM in a sleepfile on disk. Then it goes to sleep. If the battery should go flat after a week or two, or if the information stored in RAM get corrupted, then the system switches from regular sleep onto the hibernation backup. The contents of RAM get flushed and the sleepfile is used instead. So, you are really getting the best of both worlds; the speed of wakeup from sleep plus the security of hibernation.

  • 7. Re: Repair Disk Freed Space (80GB)
    AnaMusic Level 9 Level 9 (57,005 points)

    darkcooleo wrote:

     

    First link goes to turning iPod, iPad and iPhone off and restarting.

     

    ...

     

    Sorry about that...

     

    This is the Link that I meant to post   http://support.apple.com/kb/HT4878

     

    and yes it could all be related to Local Snapshots...

  • 8. Re: Repair Disk Freed Space (80GB)
    darkcooleo Level 1 Level 1 (0 points)

    Thanks that's one of the best explanations of the sleep mode I've ever read, I only enabled deep sleep so I can preserve battery life. With this issue I've had thoughts I may just go back to normal. I wanted to have both sleep mode and deep sleep but it's one of the other with a terminal command to change it from one to the other. I cannot be bothered to keep doing that all the time and I suppose ther OS X is deisgned to have a deep sleep mode, what are your thoughts?

     

    P.S having deep sleep prevents me closing my screen, and yes it's slower and wake up.

     

     

    I'll download that's software when I'm on my Mac and give it a go.

  • 9. Re: Repair Disk Freed Space (80GB)
    darkcooleo Level 1 Level 1 (0 points)

    That's interesting, I'll give that a check - I can't see 80GB worth being on time machine backups as I usually have my external drive connected.

     

    Everything is trying to eat your hard disk drive space lol