Skip to content

Instantly share code, notes, and snippets.

@huehnerhose
Created January 19, 2016 09:12
Show Gist options
  • Save huehnerhose/18e112eaa10d5d4148d7 to your computer and use it in GitHub Desktop.
Save huehnerhose/18e112eaa10d5d4148d7 to your computer and use it in GitHub Desktop.
Command collection for fixing a corrupt timemachine sparse bundle, extends on http://www.garth.org/archives/2011,08,27,169,fix-time-machine-sparsebundle-nas-based-backup-errors.html
# To Monitor the whole process
tail -f /var/log/fsck_hfs.log
chflags -R nouchg /Volumes/{name of your network share}/{name of}.sparsebundle
hdiutil attach -nomount -noverify -noautofsck -readwrite /Volumes/{name of your network share/{name of}.sparsebundle
fsck_hfs -drfy -c 750 /dev/diskxs2 #-c -> amount of RAM used as "cache"
# if fsck doesn't do the magic, use DiskWarrior
hdiutil detach /dev/diskxs2
# in sparsebundle/com.apple.TimeMachine.MachineID.plist remove
<key>RecoveryBackupDeclinedDate</key>
<date>{whatever-the-date}</date>
# and change to
<key>VerificationState</key>
<integer>0</integer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment