{"id":177,"date":"2014-06-09T11:31:04","date_gmt":"2014-06-09T07:31:04","guid":{"rendered":"http:\/\/ustinych.net\/wordpress\/?p=177"},"modified":"2014-06-09T11:31:04","modified_gmt":"2014-06-09T07:31:04","slug":"fix-time-machine-sparsebundle-network-backup-errors","status":"publish","type":"post","link":"https:\/\/ustinych.net\/wordpress\/?p=177","title":{"rendered":"Fix Time Machine Sparsebundle Network Backup Errors"},"content":{"rendered":"<p style=\"color: #141412;\">I use an external hard drive attached via USB to an Airport Extreme N for my Time Machine backups. This effectively works for the four household computers.<\/p>\n<p style=\"color: #141412;\">Occasionally though, things go wrong \u2013 very wrong. You will be stuck with \u2018Making Disk Available\u2019 or \u2018Invalid Sibling Link\u2019 \u2026 but there is a fix.<\/p>\n<p style=\"color: #141412;\">Another error you may see is \u201cTime Machine completed a verification of your backups. To improve reliability, Time Machine must create a new backup for you.\u201d This can also be fixed by following the below.<\/p>\n<p style=\"color: #141412;\">First, disconnect the external disk from the Airport Extreme and attach to your Mac via Firewire (or USB).<\/p>\n<p style=\"color: #141412;\">At the top level of the drive are the various sparsebundles that make up your individual computer backups.<\/p>\n<p style=\"color: #141412;\">Do not double click on these sparsebundles or try to repair with Disk Utility.<\/p>\n<p style=\"color: #141412;\">We are going to use the same underlying tools as Disk Utility but from the command line.<\/p>\n<p style=\"color: #141412;\">Second, open Terminal and then switch to root by typing<\/p>\n<pre><code>\r\nsudo su -\r\n<\/code><\/pre>\n<\/p>\n<p style=\"color: #141412;\">and then enter your password. Now type<\/p>\n<pre><code>\r\nhdiutil attach -nomount -noverify -noautofsck \/Volumes\/{name of your disk}\/{name of}.sparsebundle\r\n<\/code><\/pre>\n<\/p>\n<p style=\"color: #141412;\">You will then see something like<\/p>\n<pre><code>\r\n\/dev\/diskx Apple_partition_scheme\r\n\/dev\/diskxs1 Apple_partition_map\r\n\/dev\/diskxs2 Apple_HFSX\r\n<\/code><\/pre>\n<\/p>\n<p style=\"color: #141412;\">Where x is the disk id for the external disk. You are interested in the one labeled Apple_HFSX or Apple_HFS. It might be 2, 3, 4 or higher.<\/p>\n<p style=\"color: #141412;\">Depending on the state of the disk, the filesystem check might run anyway. If you see or hear disk activity after running this command, just wait for it to finish, or type<\/p>\n<pre><code>\r\ntail -f \/var\/log\/fsck_hfs.log\r\n<\/code><\/pre>\n<\/p>\n<p style=\"color: #141412;\">and wait until you see it give up. Type Control-C to exit the tail command.<\/p>\n<p style=\"color: #141412;\">Now type<\/p>\n<pre><code>\r\nfsck_hfs -drfy \/dev\/diskxs2\r\n<\/code><\/pre>\n<\/p>\n<p style=\"color: #141412;\">Make sure to replace x with whatever number your disk is from the output above.<\/p>\n<p style=\"color: #141412;\">The letters \u201cdrfy\u201d tell the filecheck utility different things. d for \u2018Show Debug\u2019 \u2013 r for \u2018Rebuild Catalog Tree\u2019 \u2013 f for \u2018Force\u2019 and y for assume \u2018yes\u2019 to any prompts.<\/p>\n<p style=\"color: #141412;\">Now go do something for an hour or two. When you come back the last output you will see is<\/p>\n<p style=\"color: #141412;\">\u2018The Volume was repaired successfully\u2019<\/p>\n<p style=\"color: #141412;\">Now you need to type<\/p>\n<pre><code>\r\nhdiutil detach \/dev\/diskxs2\r\n<\/code><\/pre>\n<\/p>\n<p style=\"color: #141412;\">You can redo the above for any other Time Machine sparsebundles while you have the disk attached to your computer, or now you can eject the external disk from your computer the normal way and re-attach the external disk to your Airport.<\/p>\n<p style=\"color: #141412;\">One final thing. Since 10.6.3, Time Machine will verify backups and if a problem is found will prompt you to erase the old backup and start a new one. The above procedure will recover the backup. You need to do a couple things first.<\/p>\n<p style=\"color: #141412;\">1. The sparsebundle will be locked, and you cannot unlock it from the Finder. Once again, as root from the command line type<\/p>\n<pre><code>\r\nchflags -R nouchg \/Volumes\/{name of your disk}\/{name of}.sparsebundle\r\n<\/code><\/pre>\n<\/p>\n<p style=\"color: #141412;\">If the sparsebundle failed verification, it was also renamed to the date of verification failure. You can rename it with the command line as well<\/p>\n<pre><code>\r\nmv \/Volumes\/{name of your disk}\/{name of}_YYYY-MM-DD.sparsebundle \/Volumes\/{name of your disk}\/{name of}.sparsebundle\r\n<\/code><\/pre>\n<\/p>\n<p style=\"color: #141412;\">Then proceed as above. When complete, you need to edit an plist file within the sparsebundle that records the state of the backup. On the top level of the sparsebundle find a file called com.apple.TimeMachine.MachineID.plist. Edit it and remove these two nodes<\/p>\n<pre><code>\r\n&lt;key&gt;RecoveryBackupDeclinedDate&lt;\/key&gt;\r\n&lt;date&gt;{whatever-the-date}&lt;\/date&gt;\r\n<\/code><\/pre>\n<\/p>\n<p style=\"color: #141412;\">Finally you want to change<\/p>\n<pre><code>\r\n&lt;key&gt;VerificationState&lt;\/key&gt;\r\n&lt;integer&gt;2&lt;\/integer&gt;\r\n<\/code><\/pre>\n<\/p>\n<p style=\"color: #141412;\">to<\/p>\n<pre><code>\r\n&lt;key&gt;VerificationState&lt;\/key&gt;\r\n&lt;integer&gt;0&lt;\/integer&gt;\r\n<\/code><\/pre>\n<\/p>\n<p style=\"color: #141412;\">Now you can reconnect the drive to your Airport Extreme and start up Time Machine. It will do a Verification and then proceed with backups as normal.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I use an external hard drive attached via USB to an Airport Extreme N for my Time Machine backups. This effectively works for the four household computers. Occasionally though, things go wrong \u2013 very wrong. You will be stuck with \u2018Making Disk Available\u2019 or \u2018Invalid Sibling Link\u2019 \u2026 but there is a fix. Another error\u2026 <span class=\"read-more\"><a href=\"https:\/\/ustinych.net\/wordpress\/?p=177\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[26],"class_list":["post-177","post","type-post","status-publish","format-standard","hentry","category-mac-os-x","tag-timemachine"],"_links":{"self":[{"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/177","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=177"}],"version-history":[{"count":1,"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/177\/revisions"}],"predecessor-version":[{"id":178,"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/177\/revisions\/178"}],"wp:attachment":[{"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=177"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=177"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}