Fix Time Machine Sparsebundle Network Backup Errors

[UPDATE - The post below is mostly for people using a USB hard drive attached to an Airport Extreme - if your sparsebundle is on a network drive or NAS, please see my modified post here.]

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 – very wrong. You will be stuck with ‘Making Disk Available’ or ‘Invalid Sibling Link’ … but there is a fix.

Another error you may see is “Time Machine completed a verification of your backups. To improve reliability, Time Machine must create a new backup for you.” This can also be fixed by following the below.

First, disconnect the external disk from the Airport Extreme and attach to your Mac via Firewire (or USB).

At the top level of the drive are the various sparsebundles that make up your individual computer backups.

Do not double click on these sparsebundles or try to repair with Disk Utility.

We are going to use the same underlying tools as Disk Utility but from the command line.

Second, open Terminal and then switch to root by typing

sudo su -

and then enter your password. Now type

hdiutil attach -nomount -noverify -noautofsck /Volumes/{name of your disk}/{name of}.sparsebundle

You will then see something like

/dev/diskx Apple_partition_scheme
/dev/diskxs1 Apple_partition_map
/dev/diskxs2 Apple_HFSX

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.

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

tail -f /var/log/fsck_hfs.log

and wait until you see it give up. Type Control-C to exit the tail command.

Now type

fsck_hfs -drfy /dev/diskxs2

Make sure to replace x with whatever number your disk is from the output above.

The letters “drfy” tell the filecheck utility different things. d for ‘Show Debug’ – r for ‘Rebuild Catalog Tree’ – f for ‘Force’ and y for assume ‘yes’ to any prompts.

Now go do something for an hour or two. When you come back the last output you will see is

‘The Volume was repaired successfully’

Now you need to type

hdiutil detach /dev/diskxs2

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.

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.

1. The sparsebundle will be locked, and you cannot unlock it from the Finder. Once again, as root from the command line type

chflags -R nouchg /Volumes/{name of your disk}/{name of}.sparsebundle

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

mv /Volumes/{name of your disk}/{name of}_YYYY-MM-DD.sparsebundle /Volumes/{name of your disk}/{name of}.sparsebundle

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

<key>RecoveryBackupDeclinedDate</key>
<date>{whatever-the-date}</date>

Finally you want to change

<key>VerificationState</key>
<integer>2</integer>

to

<key>VerificationState</key>
<integer>0</integer>

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.

Gift Card Laundering, or Buying Other Gift Cards with a Visa Gift Card

I recently received a Visa Gift Card, which is a very nice thing to get, but unfortunately has a couple issues when used online. Namely, there is no ‘Billing Address’ associated with the card, so trying to use the Visa Gift Card as payment at online merchants such as the Apple Store, Apple iTunes Music Store (iTMS) or Amazon, the payment is unable to be processed.

What to do?

So I headed over to Safeway and bought some gift cards for Amazon and Apple iTunes, paid Safeway with the Visa Gift Card and then proceeded to redeem the vendor specific cards as needed.

A little convoluted, but it worked.

So why is there a crown in the QFC logo?

Nobody seems to know. I’ve asked three people at the local store. They didn’t know. I sent a note to QFC via their online contact form about a week ago – no response yet. So today I called their customer support number, and the operator didn’t know and now it has been sent to “research”.

Seems like a question for their marketing department – but we’ll see. I had no idea Camden’s simple question would be so hard to answer. Seems like employees should know about their company’s logo and what any symbolism means.

Maybe – ‘Quality is King’ – seems like a good guess – but let’s see if anyone at QFC corporate knows.

QFC Logo

Update: I did actually get ahold of the current marketing director for QFC and while she was not sure of the definitive reason for the crown in the logo, she does have an old advertisement in her office where the slogan for QFC was ‘Royal Service.’

iPhone OS 3 drops Friday June 5?

Update: June 8 – Guess not! :) OS 3 drops June 17.

Just some Tuesday morning conjecture.

After I updated the our Macs to iTunes 8.2 last night and synced the iPhones, I noticed that the ‘next check’ for iphone software updates is June 5. It seems to me that normally the ‘next check’ goes out a couple weeks at least, so based on this and some practical matters regarding Monday’s Keynote, here’s my theory.

iPhone OS 3.0 drops Friday. Apple then basically owns the Friday news cycle with the new features in OS 3.0. Palm Pre launches Saturday – but weekends are rough for news, so Palm will get press, but reporters will have valid comparisons to make between the Pre’s Web OS and the iPhone OS.

WWDC Keynote is Monday – this again lets Apple own the Monday/Tuesday news cycle. I predict the keynote will cover two things, Snow Leopard and new iPhone/iPod hardware with a mid to late-June, early July release.

This has the result of really taking the wind out of Palm’s sails and gets Apple through a weekend where some users will be tempted to switch to a Pre.

With the new iPhone hardware rumors coming fast and furious, I’m figuring that OS 3 has already gone gold and is the hands of manufacturers now for new iPhone assembly. So why not drop it before Monday? I don’t see Apple wasting part of a Keynote re-hashing iPhone 3.0 features they went over in the ‘Sneak Preview’. It’s a developer conference after all and they want to talk about Snow Leopard and reasons that you “need” to upgrade from Leopard.

Letter to Apple about movie availability

I sent this to Apple today to let them know of yet another lost revenue opportunity. Not expecting a response – but they really need get out of ‘hobby’ mode and improve this.

—-
I thought it would be great to watch Pinocchio with my son as he’s never seen it. It was released this past Tuesday (3.12.09). I go to iTMS and lo and behold, its not there. This despite saying last year that Disney was the first studio to support the ‘Same as DVD release date’ availability in the iTMS.

So really, why isn’t it there? And this isn’t the first time. You really need to improve this. I can buy it from any number of retail stores right now (CostCo, Best Buy, Blockbuster – I can order it from Amazon) all of whom are your competitors. Which one should I buy it from to sting the most and prompt some changes?

This is another lost sale for Apple. Apple really needs to improve this. Tuesday mornings should have all the same new DVD releases as Best Buy, Amazon, etc. if you want this business.

At the very least say when it will be available on iTMS. I know Apple loves to keep secrets – but c’mon, it’s already out there and it’s Disney, your second best studio buddy after Pixar.

Confused and bewildered,
Garth Gillespie