Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save StoneMoe/391dc38db4e410f301145f9ba412ecad to your computer and use it in GitHub Desktop.
Save StoneMoe/391dc38db4e410f301145f9ba412ecad to your computer and use it in GitHub Desktop.
Repair TimeMachine Backup

Repair TimeMachine Backup

  1. Mount timemachine volume from Finder.
  2. Unlock Target Machine's Backup sparsebundle.
    sudo chflags -R nouchg /Volumes/{TimeMachine Volume Name}/{Target Machine's Name}.sparsebundle
  3. Attach sparsebundle then Listing Backup Volume.
    hdiutil attach -nomount -noverify -noautofsck /Volumes/{TimeMachine Volume Name}/{Target Machine's Name}.sparsebundle
  4. Repair backup volume.
    fsck_hfs -drfy /dev/disk2s2
  5. Detach backup sparsebundle.
    hdiutil detach /dev/disk2s2
  6. Fix TimeMachine state flag at /Volumes/{TimeMachine Volume Name}/{Target Machine's Name}.sparsebundle/com.apple.TimeMachine.MachineID.plist
    • Delete following lines.

RecoveryBackupDeclinedDate {Date}

  * Replace following lines.

VerificationState 2

  to

VerificationState 0

7. That's all!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment