Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.5: Repair a Time Machine 'Error 11' problem System 10.5
One of the more distressing Time Machine errors is Error 11. This is a "sticky" error; once it occurs, Time Machine will hit it every time it runs. All you'll see in the standard Time Machine interface is that Time Machine keeps failing. You need to check the system logs to see the Error 11.

The underlying cause of Error 11 appears to be some other error that caused an earlier Time Machine run to terminate without cleaning up after itself. This leaves behind a partial file that indicates to Time Machine that another copy of Time Machine is already producing a backup, so it just stops.

Colin Charles worked out the basic problem and solution, but his description only seems to apply to locally-attached disks. For network-mounted disks, where you've got an additional level of sparsebundle in the way, things are a bit more complicated. Read on for the solution...

Here are the steps needed to recover from the problem:
  1. Stop Time Machine in the System Preferences panel.
  2. Mount the remote disk for read/write access.
  3. Open Terminal and run the following command: sudo -s. Enter your admin password when prompted. This will create a root shell for the remaining Terminal commands (even though not all commands need root privileges).
  4. Enter these commands:
    $ cd /Volumes
    $ ls

    You should see your remote-mounted disk here. For simplicity, let's say it appears as Backup.
  5. Type ls -ls Backup. You should see a .sparsebundle file with a name based on your machine's name and hex MAC address. I'm not sure exactly how these names are constructed, but for simplicity's sake, I'll pretend the name is mymachine.sparsebundle. Check that root has both read and write access to this file. If not, you probably mounted the disk with read-only access.
  6. Type hdiutil attach Backup/mymachine.sparsebundle/ -noverify -noautofsck -readwrite. This command, which must be typed on a single line substituting the name for your sparsebundle file, mounts the actual backup image. It will take a bit to finish. (Without the -noverify and -noautofsk options, it can take hours! The -readwrite option is probably the default.)
  7. Type ls -ls. There should now be an additional volume visible. Again, I'm not sure the name is always constructed the same way, but it will probably look like TM-backup-of-mymachine. Root should again have read/write access.
  8. Type fsaclctl -p TM-backup-of-mymachine/ -d. The backup directory has an access control list (ACL) that prevents any modifications. This command disables ACL enforcement on the file system. Note that if you leave off the -d, fsaclctl will tell you if enforcement is on or off.
  9. Type pushd TM-backup-of-mymachine/Backups.backupd, then type ls. You should see a file -- usually just one -- with a name based on your machine, though typically with upper and lower case. Let's assume MyMachine is the right directory here.
  10. Type cd MyMachine, then ls. You should see a number of files with names encoding a date and time. (These are actual backup subdirectories.) The last one should have a date and time followed by .inProgress as its name. This file is the cause of the problem.
  11. You can delete the .inProgress file (it's a directory, so you'll need to delete the contents, too), but what I did, just for safety, is to rename it by sticking an x- in front of its name. It turns out that Time Machine will clean up any mis-named files in this directory later. If you get an "Operation not permitted" error, you probably didn't execute the fsaclctl command properly.
  12. Type popd; this will get you back to the /Volumes directory. (If it doesn't, just cd there directly.)
  13. Type fsaclctl -p TM-backup-of-mymachine/ -e. This will re-enable ACL enforcement. (This step may not be needed -- I think the ACL setting isn't stored, but only applies until dismount. But it can't hurt.)
  14. Dismount the TM-backup-of-mymachine volume first, and then the Backup volume. It's easiest to do this in Finder -- for some reason, umount complains that the file system is busy. In the shell window, you can use ls to check that the two mount points are gone.
That should be it; turn Time Machine back on and tell it to back up. It should now succeed.
    •    
  • Currently 2.55 / 5
  You rated: 5 / 5 (11 votes cast)
 
[29,980 views]  

10.5: Repair a Time Machine 'Error 11' problem | 3 comments | Create New Account
Click here to return to the '10.5: Repair a Time Machine 'Error 11' problem' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Repair a Time Machine 'Error 11' problem
Authored by: HFTobeason on May 19, '09 01:03:15PM

I've run up against this incredibly annoying problem on multiple machines, all set to backup to a volume being shared over a LAN. I found that simply mounting the volume - on any machine - and then mounting the sparsebundle (by double-clicking, or Cmd-O) will, after a bit of a wait, open the contents, allowing you to drill down to the offending .inprogress file and delete it.



[ Reply to This | # ]
10.5: Repair a Time Machine 'Error 11' problem
Authored by: anthlover on May 19, '09 08:10:33PM

This happens to my AEB disk when my wife or I , mostly the former shuts the lid on our Macbook too many times when Time Machine is trying to back up. I find a reboot and manually mounting of the Airport Disk, and viewing the contents of drive image from the finder fixes the problem. Then I usually kick of a time Machine back up manually, though kicking of the backup manually is not necessary. The above process always fixes it.

I have been backing up this way for about a year and never had the image go corrupt. I have to follow the above procedure as often as we piss of time machine every week or two.



[ Reply to This | # ]
10.5: Repair a Time Machine 'Error 11' problem
Authored by: anthlover on May 19, '09 08:16:02PM

My view above I just mean double click on the disk image after you mount it in the finder from the sidebar. A few seconds later the sparse bundle will appear. Done (as I noted its important to reboot first).

Kick of backup or wait till TM want to make it so. Note that as usual the first back up after pissing of TM takes quite a while.



[ Reply to This | # ]