Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Time Machine:The backup disk ran out of space unexpectedly. .....

Hi,


I upgraded to Mountain Lion when it was released and yesterday I began getting this notice from Time Machine:


"The backup disk ran out of space unexpectedly. Time Machine will try to make more space available by removing expired backups during the next scheduled backup."


I have a one terra external hard drive with exclusively Time Machine. It says it has 3.4 gigabytes available, but isn't deleting old backups and making room for new, like before. I tried the "encrypting" solution, but it still keeps on giving me this message. Should I erase and format? If so, what option should I chose to format?


My Hard Drive has 240 gigabytes, so 1Tb should be more than enough.


Thank you!


Gloria

Posted on Aug 2, 2012 6:23 PM

Reply
Question marked as Best reply

Posted on Aug 2, 2012 6:27 PM

About TM "Backup Drive is Full"


Alert TM only deletes older files if they have been deleted from the source and when TM needs space on the backup drive for a new incremental backup. Time Machine "thins" it's backups; hourly backups over 24 hours old, except the first of the day; those "daily" backups over 30 days old, except the first of the week. The weeklies are kept as long as there's room.


So, how long a backup file remains depends on how long it was on your Mac before being deleted, assuming you do at least one backup per day. If it was there for at least 24 hours, it will be kept for at least a month. If it was there for at least a week, it will be kept as long as there's room.


Note, that on a Time Capsule the sparsebundle grows in size as needed, but doesn't shrink. Thus, from the user's view of the TC it appears that no space has been freed, although there may be space in the sparsebundle.


Once TM has found it cannot free up enough space for a new backup it reports the disk is full. You can either erase the backup drive and start your backups anew or replace the drive with a larger drive.

29 replies

Apr 9, 2013 3:06 AM in response to Gloria M

In my case I can see that the amount of space required by the backup grows while the backup is progressing. So initially it 'thinks' it only needs, say, 2GB, but that grows until, again say, 32GB. Then the error message is shown because the disk is full (it only has 32GB of free space, but requires more to complete the backup).


On initialisation it sees it can fit 2GB on the disk and performs no backup thinning because there is 32GB available. Then it starts the backup. The required backup space grows while progressing and when 32GB is reached the backup fails. This can be seen by clicking the small 'clock' icon at the top of the screen and holding the mouse there. The first 'entry' in the menu shows the amount backed up and the total backup size. Normally only the first number increases, in this case also the second number increases. Note that it can take a while before that starts happening.


When this happens I resolve it by creating a dummy file somewhere on the disk that is backed up (e.g. home directory). The required size of the file is unknown up front, so I start with the amount of space I know it requires at least, in the above example 32GB. If the backup still fails, use a larger size.


Compute the amount of Kb that go into 32GB: 1024x1024x32 = 33554432 (or use any other size).


Open terminal and type this command:


dd if=/dev/zero of=~/large_file bs=1024 count=33554432


This will take a while and create a 32GB file full of zeros in your home directory. Change the 'count' parameter to your required size.


Now start the backup again. It should first remove old backups (again, click the 'clock' icon and hold the mouse there).


When it is done removing old backups and starts backing up stop the backup (it will still fail!).


Delete the generated large file:


rm -f ~/large_file


Now restart the backup. If it still fails redo the process using a larger size until the backup succeeds.


Works for me!

Apr 9, 2013 7:51 AM in response to dimitriw

dimitriw wrote:


I know I'm not treating the cause. I leave that to Apple...

Unless you've communicated with Apple, it's very doubtful they're even aware of your problem.


I looked at the site you linked, I checked both drives (source and backup), there are no errors on them.

Did you look for repeated updates or additions to files, per the blue box there? If you're having this problem frequently, that's almost certainly what's happening.

Apr 9, 2013 5:22 PM in response to prague

The backup disk, when runs out of room before making the backup to Time Machine files leaves a temporary file called "*****.in Progress. It doesn't show up in the Time Machine display. I have had this same problem and have formated and reloaded Mountain Lion and restored all my apps, settings, and files using Migration Assistant. Now I need to resume backups. But in looking at my backup disk (using Finder) I see that the *.in Progress file is 559 GBytes (over half the size of my external drive (1 TByte).


I went to the links referenced above (excellent material there), but I'm afraid to move this file to the trash can, as my internal disk drive may not have enough room left to hold it. (Finder shows about 570 GBytes free). I see that it can be difficult to emty the files in the trash can.


Trying to decide if I want to go buy a 2 TByte disk and make a new back up and then format my existing one and use it for a secondary back up.


Anyone have experience in deleting the "in progress" file?

Apr 9, 2013 5:31 PM in response to veehbJ

veehbJ wrote:


The backup disk, when runs out of room before making the backup to Time Machine files leaves a temporary file called "*****.in Progress. It doesn't show up in the Time Machine display.

Correct. That's the partial backup; TM keeps it when a backup fails or is cancelled, so it won't have to re-copy everything on the next backup.


In a few cases, such as drives, partitions, or large folders that shouldn't be backed-up being removed from the exclusion list, and/or repeated failures, that can get quite large. In those rare cases, you can delete it, per #A10 in Time Machine - Troubleshooting.



I went to the links referenced above (excellent material there), but I'm afraid to move this file to the trash can, as my internal disk drive may not have enough room left to hold it. (Finder shows about 570 GBytes free). I see that it can be difficult to emty the files in the trash can.

That doesn't happen; deleted files are not moved from an external HD to your internal. Each external HD has it's own (hidden) trash folder. Emptying the trash can empties the trash folders on all internal and connected external HDs.


Anyone have experience in deleting the "in progress" file?

It does take a while if it's a large one (more the number of files than amount of disk space), but will complete eventually.

Sep 5, 2013 8:31 AM in response to Pondini

This worked for me like a charm, Pondini! My internal HD had errors and needed to be repaired. Once I did that the backups worked fine again. Thanks so much for the help!

Pondini wrote:


prague wrote:


My problem seems similar. I use a mac pro with a 2 TB g drive as a time machine and also other stored files.

Not a good idea. 😟 While it will work, it's much better to have your backups and other files in separate partitions.



The drive now shows, both with disk utility and by measuring all files with info, that I have only about 380 GB free space. If I measure the size of all files, including the backups, I have only stored about 900 GB and should have about 1100 GB free.

It's hard to measure the actual size of Time Machine backups, because of the way they're structured.


A repair of the disk shows no problems.

Also check the directory on your internal HD, with Verify Disk via Disk Utility. Directory problems there can make TM's estimates wrong, resulting in the ". . . ran out of space unexpectedly." message.



Why doesn't the machine see the actual free space. Has the time machine program reserved space for backups or is there another problem? How can I free up the real free space on the drive?

It's hard to tell just what's going on without more info.


Use the widget in #A1 ofTime Machine - Troubleshooting to display the backup messages from your logs. Locate the backup in question, then copy and post all the messages here.


Also post a screenshot of what Disk Utility shows for the backup partition.

Sep 23, 2013 9:32 AM in response to Pondini

Pondini,


Well, my issue has returned. I am getting large backups again and now this has caused the "Time Machine coudn't complete the backup to 'Time Machine'. The backup disc ran out of space unexpectedly..."


Per your tutorials, I verified my internal HD and it passed. I also repaired my external HD and all partitions and it passed.


I deleted the in progress file and installed TimeTracker which showed me the problem. I run Parallels Desktop and the Windows XP .pvm file is taking up 17.1 gigs at backup. I am not running Paralles at this time nor when the backup occured today, but probably was at the last successful backup on Friday. Should I just exclude this file or do you think there is somethign more to it? If I exclude it I imagine my Windows system will no longer be up to date.


I appreciate your help.

Dec 13, 2013 6:37 AM in response to Pondini

Thank you for posting this, which is the correct answer. If you're Time Machine drive is larger than your backup, it should not run out of space, it should delete older backups. As someone mentioned, the key word is "unexpectedly", which indicates a problem that TM couldn't figure out.


I ran the disk utility on my main drive and repaired the problem and like magic, Time Machine started working again. So I would say anyone with the same problem should start here and not jump right into other suggestions (buy a larger TM drive or blow away all your backups (?!) and reformat the TM disk).


Thanks, Pondini!

Mar 19, 2014 9:37 AM in response to Pondini

I wanted to add my voice to the choir, that the "accepted answer" is in fact not the way to go. I actually had come to that conclusion myself some time ago after getting this "backup disk is full" error repeatedly for months. I erased my entire TM drive and let it start from scratch... wasn't crazy about it, but I did it anyway.


Then a couple weeks later... I'm getting the message again! Decided this time to do a bit more research on the issue and came upon this thread. Tried Podini's suggestions and my drives checked out 100% fine on all counts. However there was in fact an interrupted partial backup file left laying around filling up the drive! I deleted it, and just like that... TM is working perfectly again.


So to anyone who may come upon this thread with this problem in the future... I hope you see this and try Podini's solution before you nuke your entire backup and waste all that time rebuilding from scratch!

Jun 15, 2014 3:49 PM in response to Pondini

My Time Machine unexpectedly runs out of disk space about twice per month. It's the situation at the bottom of Pondini's C18 article http://pondini.org/TM/C18.html - Time Machine is incorrectly estimating the amount of space needed for its backup.


I use my MacBook for PHP/MySQL development, and as a result, MySQL is working with tens of GB of space on my internal SSD, which is being backed up by Time Machine. I can usually get the backup to correctly run by stopping MySQL, running the backup (sometimes twice), and restarting MySQL. On occasion I need to stop everything I can (disable wireless, stop mail, Crashplan, Firefox, etc.) after a reboot, and fire off a manual Time Machine backup.


The problem is that these other programs seem to be "holding on to" tens of GB of file space in such a way that these files do NOT go into Time Machine's estimate of how much space will be needed in the backup. But they DO get backed up by Time Machine.


With today's failure, the estimate was for 1.5 GB needed, with 3 GB available out of 4 TB. Stopping MySQL is usually sufficient, but this time I stopped everything, rebooted with wireless off and crashplan paused. I asked for a Time Machine backup and the new estimate is for "39.77 GB required (including padding), 3.06 GB available". Time Machine correctly deleted old backups, and all is well with 264 GB available.


For the record, I run two Time Machine backup drives, with nothing else on either drive. I carry the MacBook between home and office. I have a 1 TB backup drive at work, for backing up the internal SSD only. I have a 4 TB backup at home, which includes backing up some external hard drives. All is on Mavericks with full disk encryption.


The James Pond (Pondini.org) knowledge base has been of tremendous use to me over the years in understanding Time Machine. I've had to use Time Machine "for real" due to complete hardware failure/replacement five times so far.

Time Machine:The backup disk ran out of space unexpectedly. .....

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.