Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

WonkyPanda

macrumors regular
Original poster
Mar 29, 2010
155
0
I was having a problem a few days ago where I would uninstall programs from my mac and none of that erased space would come back into available storage. I was freaking out thinking my Intel 320 was going crazy. I tried trimming, erasing free space, and other terminal commands. None of them brought me back the missing ~25gb of space that I was trying to get back.


Luckily, user Matwue solved this troubling issue for me:

You are not freeing up disk space when deleting files because of local (as in "on your hard drive", so not on the Time Machine drive!) Time Machine backups, a new feature introduced in Lion. This feature is per default activated and can, unfortunately, not be disabled in the Time Machine menu. But: you can safely disable the local backups using the following terminal command:

sudo tmutil disablelocal

Some more information about the local backups: http://toti.posterous.com/hidden-loc...s-x-lion-filli

So, if you have an SSD and are wondering where your precious GB are going, look no further than the stupidly made mobilebackups that are sure to be a headache for SSD users.
 

lifeinhd

macrumors 65816
Mar 26, 2008
1,428
58
127.0.0.1
My solution for mobile backups-- don't delete anything you don't want to delete. It's kind of the same reason I don't have a case for my iPad-- my solution is to not drop it.

I have a TM backup for if the hard drive dies, that's it. Mobile Backups, another useless Lion feature :rolleyes:
 

marc11

macrumors 68000
Mar 30, 2011
1,618
4
NY USA
Not so useless really, sometimes you need to look beyond the obvious. Let's say you are on the road for work or vacation or whatever, but away from your Time Machine. You spend hours over the next week editing, saving, changing, merging documents and files. Now, you go home and synch, the latest snap shot is taken. But you realized you screwed up and one of the edits you did was what you wanted, it was three days ago. Hmmm, now if Time Machine were saving data every hour, you would have that edit, but since you were on the road, it is gone...no WAIT, you DO have that edit because the back up WAS saved.

Of course versions addresses this too, but only with iWork today. That same can be said for a program or any file you manipulate while on the road, it is nice to have ALL your changes saved and back up when you are back connected to Time Machine.

If Time Machine is valuable while you are home or in the office, then it is just as valuable when you are not there to be connected to it, Time Machine is not just for complete HDD crashing and recovery IMHO. Of course the REAL solution would be to add over the internet Time Machine back ups so you can back up anywhere you have an internet connection.
 

bolen

macrumors 6502
Jul 22, 2008
351
0
Sweden
Does anyone know if the local backups are purged after TimeMachine has done its' thing?

Let's say I have my laptop on the road and it saves versions and such. And when I get home the TimeMachine gets connected and runs its backup, will the local, then redundant, backup be purged?


If that's the case then this is only an annoyance if you're not using TimeMachine ever.
 

Synergie

macrumors 6502a
Jan 15, 2011
771
210
Halifax, Canada
Thanks for this information! I had not even realized that this was happening and that I was losing HD space! I have now disabled it!

I am connected at least once a day - usually more - to the time capsule anyway so I have plenty of backups stored on there. Even if I went away for a few days, there's nothing THAT important that I would miss restoring from the last backup at home. I tend to save my documents on iDisk anyway so I have access from work and home (at least while iDisk still exists) And my photos from the camera, I don't usually delete right away from the SD card, until it starts running low on space.

I wish they had informed people about this feature and included a simple tick box in Time Machine preferences!
 

screensaver400

macrumors 6502a
Jan 28, 2005
858
46
To test this, I unplugged my Time Machine drive and deleted a few files totaling 1.67GB. Sure enough, Finder reported the space as freed up, but Activity Monitor and Disk Utility didn't.

I then activated Time Machine (with the external drive still unplugged). I was able to restore some of the smaller files, but the largest wasn't there. Perhaps Mobile Time Machine limits the size of files backed up locally.

I then plugged in my Time Machine drive and told it to backup. It did, but my free space has not updated in Disk Utility or Activity Monitor. So it seems that plugging in the external backup, at least in this test, did not purge the local backups.
 

Adamantoise

macrumors 6502a
Aug 1, 2011
991
388
Time Machine isn't activated on my Lion MBP ... It wasn't activated by default. What are you guys talking about?
 

m85476585

macrumors 65816
Feb 26, 2008
1,226
4
When Finder shows the space as free, are you able to fill it up with files (presumably preventing you from recovering them in TM)? If so it sounds like it's not a problem.

Even with a SSD it's not a problem since without TRIM the drive doesn't delete stuff until it's overwritten, so in this case the OS is hiding the data from the user instead of the SSD, which is nice because it means you can get your files back if you want. The hourly versioning might cause extra write cycles for those concerned about that (personally I don't worry about write cycles on my SSD- by the time it dies a better model will be out anyway, and if it dies under warranty it's basically a free upgrade if I can sell the warranty replacement for a good price).
 

talmy

macrumors 601
Oct 26, 2009
4,726
332
Oregon
Help says
If you have a portable computer, Time Machine keeps a copy of everything on your computer’s internal disk, and saves hourly “snapshots” of files that have changed. Since Time Machine stores the snapshots on your computer’s internal drive, they are called “local snapshots” to distinguish them from backups stored on an external backup drive.

Local snapshots are periodically condensed into daily or weekly snapshots to minimize the space used on your disk. If your internal disk is low on space, Time Machine stops creating new snapshots, and some or all existing snapshots may be removed to make space available for applications to use. If sufficient disk space becomes available again, Time Machine resumes creating local snapshots.

If you want Time Machine to stop saving local snapshots, open Time Machine preferences and slide the switch to Off. Snapshots will resume when you turn Time Machine back on.

Time Machine saves local snapshots on portable computers only, and not on desktop computers.

As a result of this, if you turn TimeMachine off and then on again it will delete all local snapshots but continue to save remotely.

If you simply want to turn local snapshots off, open terminal and execute "sudo tmutil disablelocal".

Personally, I think it is a great feature (because I'm not always at home base), but you can turn it off or purge it occasionally if disk usage becomes a problem. However help does state that it will remove snapshots if necessary for applications to run.
 

screensaver400

macrumors 6502a
Jan 28, 2005
858
46
When Finder shows the space as free, are you able to fill it up with files (presumably preventing you from recovering them in TM)? If so it sounds like it's not a problem.

Even with a SSD it's not a problem since without TRIM the drive doesn't delete stuff until it's overwritten, so in this case the OS is hiding the data from the user instead of the SSD, which is nice because it means you can get your files back if you want. The hourly versioning might cause extra write cycles for those concerned about that (personally I don't worry about write cycles on my SSD- by the time it dies a better model will be out anyway, and if it dies under warranty it's basically a free upgrade if I can sell the warranty replacement for a good price).

I deleted 50GB of files from my SSD, giving me 102GB of free space according to Finder (but 52GB free according to Disk Utility). I then tried to copy a folder with 70GB of data to the SSD. It failed, saying I had insufficient disk space.

if you turn TimeMachine off and then on again it will delete all local snapshots but continue to save remotely.

Yep, this does seem to work. However, the OS should allow files to write over the snapshots, starting with the oldest. Being told you don't have enough space to copy 70GB of files when you have 102GB listed as available in Finder is inexcusable.
 

screensaver400

macrumors 6502a
Jan 28, 2005
858
46
Just did:

I'm using a 2009 MacBook Pro 13" with a Samsung 470 SSD. Here is an example of the issue (the exact numbers are arbitrary):

1) 50GB of free space reported by Disk Utility and Finder
2) Delete 50GB of files. Now, 100GB reported free by Finder, but 50GB by Disk Utility
3) Attempt to copy 70GB of files from an external drive to the SSD. Finder reports insufficient free space
4) Open System Preferences, turn off Time Machine, turn on Time Machine. Both Finder and Disk Utility now report 100GB free
5) Copy of 70GB of data from external can now succeed

It doesn't matter if an external Time Machine drive is plugged in or not during/after the deletion, nor does it matter whether a backup to the external drive has occurred since the deletion.

The OS should allow the local Time Machine backups to be overwritten automatically, starting with the oldest snapshots. Currently, a user is told he has insufficient free space to copy 70GB of data when Finder says he has 100GB free. It should not be this way.
 

L0s7man

macrumors 6502
Feb 26, 2009
276
0
I got a better solution... Turn off TimeMachine altogether!

I backup what I care about to Dropbox; that is mostly source code and backup of my linux VM whenever I do full system update (hint: linux VM image compresses *REALLY* well; from 8GB VM to 1GB with bzip); I use Gentoo which some say is pointless on a VM, but I'm used to it and I like to administer it...

Anyway, so backups to Dropbox, all photos to the cloud (20gb Picasa for $5/year; I just upload full size straight from the camera photos); RAW files to external HDD (once you get them processed you don't use them often anyway).

And I got plenty of space ;-) 64GB doesn't feel too cramped anymore.
 

coopiklaani

macrumors member
Aug 12, 2011
43
0
UK
Donna if i'm right. but it seems the eaten up space got freed after synced with my time mechine. Guess local mobile backup is more like a buffer for real time mechine backup.
 

talmy

macrumors 601
Oct 26, 2009
4,726
332
Oregon
Donna if i'm right. but it seems the eaten up space got freed after synced with my time mechine. Guess local mobile backup is more like a buffer for real time mechine backup.
That's the way it should be. Unfortunately, I checked (by looking into the hidden folder that holds the snapshots) and they don't go away when reconnecting time machine. I've read articles in the press that says they will, but nothing in Apple's help documentation claims that.
 

Wlayco

macrumors newbie
Nov 20, 2011
1
0
same problem

Hello everybody, I have the same problem, but I didn't find a solution to it - I don't use TimeMachine backup, but apparently TimeMachine created a image on my SSD, and now I have only 4 gb of free space. I've founde a sparse image bundle file of some 75 gb and I presume that's that image file, but I cannot delete it. Also, I cannot turn off filevault because I don't have enough disk space. I disabled local backups, but the space is still used. I use Macbook Air, 13', 2010. Help anyone?
 

Skika

macrumors 68030
Mar 11, 2009
2,999
1,246
I've tried with the command and when it prompts for the password i can't get it to write. It doesn't let me input anything?

Help?
 

iThinkergoiMac

macrumors 68030
Jan 20, 2010
2,664
4
Terra
My solution for mobile backups-- don't delete anything you don't want to delete. It's kind of the same reason I don't have a case for my iPad-- my solution is to not drop it.

That's not exactly a backup...

I have a TM backup for if the hard drive dies, that's it. Mobile Backups, another useless Lion feature :rolleyes:

I think you mean "when". All HDDs will die, the question is not "if" but "when"...
 

thundersteele

macrumors 68030
Oct 19, 2011
2,984
9
Switzerland
I've tried with the command and when it prompts for the password i can't get it to write. It doesn't let me input anything?

Help?

It's working fine. It doesn't show what you are typing, not even ***, so nobody can see the length of your password. This is the standard behavior of unix system shells.

Also, it's not really necessary to disable this. Lion frees up the space over time, provided you also do external backups.
 

Skika

macrumors 68030
Mar 11, 2009
2,999
1,246
It's working fine. It doesn't show what you are typing, not even ***, so nobody can see the length of your password. This is the standard behavior of unix system shells.

Also, it's not really necessary to disable this. Lion frees up the space over time, provided you also do external backups.

Ok, thank you.
 

Ccrew

macrumors 68020
Feb 28, 2011
2,035
3
So, if you have an SSD and are wondering where your precious GB are going, look no further than the stupidly made mobilebackups that are sure to be a headache for SSD users.

Not to mention the sleepimage file that's equal to the amount of memory in the machine.
 

Winter Charm

macrumors 6502a
Jul 31, 2008
804
270
Does anyone know if the local backups are purged after TimeMachine has done its' thing?

Let's say I have my laptop on the road and it saves versions and such. And when I get home the TimeMachine gets connected and runs its backup, will the local, then redundant, backup be purged?


If that's the case then this is only an annoyance if you're not using TimeMachine ever.

Not exactly. Local backups are purged one week after they were made, though. So they run on their own schedule. They ARE purged, though. :)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.