Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!

10.5: Time machine, corrupt sparse images, and panics System 10.5
This took me a long time to figure out. There are some tips here and elsewhere providing fixes for FileVault problems caused by sparse image corruption. I discovered today that similar problems on Time Machine sparse image files were causing reproducible kernel panics (KPs) on remote Macs backing up to these sparse image files via a server Mac. The problem is that there's very little indication to lead one to that conclusion. I was getting predictable KPs as soon as Time Machine backups would begin, and none of the disks involved (remote computer, server computer, attached USB Time Machine disk) showed any problem at all with Disk Utility or DiskWarrior.

The solution was to log in as root on the server computer, and then use the following command to attach (but not mount -- this is key!) the image:
hdiutil mount -nomount -readwrite /Volumes/path/to/sparse/image
I then used DiskWarrior to rebuild the directory. (Disk Utility aborted with a sibling link error or something like that.) Without DiskWarrior, I would have had to delete the entire sparse image file and start a new complete backup series. This not only demonstrates an obscure vulnerability of Mac OS X 10.5.2, but once again reminds me I'm glad I ponied up for DiskWarrior. (More detail at can be found in this post on Apple Discussions.)

[robg adds: Obviously, this hint isn't something that's easily tested. It's posted more as an aid to those who may be experiencing kernel panics for no apparent reason. If you've seen such issues yourself, please post in the comments.]
    •    
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[20,616 views]  

10.5: Time machine, corrupt sparse images, and panics | 11 comments | Create New Account
Click here to return to the '10.5: Time machine, corrupt sparse images, and panics' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
10.5: Time machine, corrupt sparse images, and panics
Authored by: diamondsw on Mon, Mar 10 2008 at 8:54AM PDT
I also had a case where my sparse image became corrupted - my wireless network dropped right as it finished the backup, and managed to corrupt an unknown file, the spotlight index, and the journal. Real mess. I don't have DiskWarrior 4.1 since Alsoft refuses to post an updater for paid customers (and I am <strong>extremely upset</strong> with them for this), but I was able to repair the disk image using the built-in fsck_hfs. Once repaired, everything has been fine since.

In my case the corruption only caused backups to fail, not kernel panics.

[ Reply to This | # ]
10.5: Time machine, corrupt sparse images, and panics
Authored by: macandrew on Mon, Mar 10 2008 at 9:28AM PDT
I have a plain vanilla Time Machine setup - locally connected external FW drive - and I suddenly began experiencing periodic kernel panics. Tried to repair the TM disk, Diskutil failed! Had to reformat (low level, writing 0s) and set up TM afresh to get things back to normal.

[ Reply to This | # ]
10.5: Time machine, corrupt sparse images, and panics
Authored by: krusty76 on Mon, Mar 10 2008 at 12:59PM PDT
Minus the KPs, I have been experiencing some oddness with my Time Capsule and Time Machine. One of the things that happened was that one of my backups got corrupted. I hadn't had an outage or anything, but I was getting that same "sibling link" error in Disk Util. I do not have Disk Warrior, unfortunately, so I had to ditch the damn thing and start over. Does not instill a whole lot of confidence in this back up routine!

[ Reply to This | # ]
10.5: Time machine, corrupt sparse images, and panics
Authored by: dethbunny on Tue, Mar 11 2008 at 11:33AM PDT

I don't have a sparsebundle to try the command out on, but I have been known to use hdiutil quite a bit. Wouldn't the following command be correct?

hdiutil attach -nomount -readwrite /path/to/sparse/image

[ Reply to This | # ]
attach == mount
Authored by: matthiasr on Tue, Mar 11 2008 at 1:42PM PDT
man hdiutil says mount is a synonym for attach.

[ Reply to This | # ]
10.5: Time machine, corrupt sparse images, and panics
Authored by: JMB8877 on Sat, Mar 29 2008 at 4:21AM PDT
Great hint! It worked for me and sorted out my corrupt TM backup on a USB drive on my APE base station. Disk Warrior to the rescue again!

[ Reply to This | # ]
10.5: Time machine, corrupt sparse images, and panics
Authored by: pixelation03 on Tue, Apr 15 2008 at 6:47PM PDT
I would have had to delete the entire sparse image file and start a new complete backup series.
I'm looking at a DMG Image of my Time Machine drive (long story, which I'll post in the forums) and I don't see the .sparsebundle file in my image. Does this mean I have restart all of my backups?

[ Reply to This | # ]
10.5: Time machine, corrupt sparse images, and panics
Authored by: lemoose on Thu, May 29 2008 at 2:57AM PDT
I had the same problem after a power outage while the backup was running... I found out doing what you describe and then repairing the sparsebundle using Disk Utility did fix the whole thing... I'm describing the whole process here:
<a href="http://blog.hardmac.com/archives/how-i-saved-my-corrupted-time-machine-sparsebundle-image">; How I saved my corrupted Time Machine sparsebundle image… </a>

Thanks for your help.

[ Reply to This | # ]
10.5: Time machine, corrupt sparse images, and panics
Authored by: higgy on Wed, Jun 25 2008 at 10:32AM PDT
Awesome fix - thank you for all who figured this out!

I've not had the KPs, (Time Machine would fail after about 1 month - disk would become "read only") but have had to previously reformat and wipe out my time machine backups (Lacie USB connected to Airport Extreme; OS 10.5.2 Powerbook G4). Nothing else worked - and I've been scouring the Apple discussion boards.

Final fix that worked: the "hdiutil xxx..." terminal command to "attach" the sparsebundle; followed by DiskWarrior 4.1 to repair the corrupt image.

Thank you again to all that contributed to this fix - I'm back up and running time machine backups and didn't have to wipeout a month's worth of backups - which, I believe, is what Time Machine on Leopard is supposed to do.

- higgy

[ Reply to This | # ]
10.5: Time machine, corrupt sparse images, and panics
Authored by: cneth on Thu, Apr 2 2009 at 6:23AM PDT
Note that if you get "operation not supported on socket" what that really means is that you don't have the right permissions. You'll need admin privs to mount the disk in that case (sudo hdiutil ....)

[ Reply to This | # ]
10.5: Time machine, corrupt sparse images, and panics
Authored by: djfreak on Sun, Apr 19 2009 at 2:45AM PDT
This is a brilliant hint and just saved me a huge headache. Time Machine grrrr. DiskWarrior to the rescue again indeed.

[ Reply to This | # ]