I think that may be the longest title Iâ€™ve ever had on my blog. Anywayâ€¦
Last week, my Macbook Pro hard drive suddenly died after about two years of dedicated service. While itâ€™s a bit surprising, I did push the little guy pretty hard â€“ I regularly run OS X alongside Windows 7 on VMWare, and I keep both platforms busy. Considering the VM is actually running off the Boot Camp partition, itâ€™s a lot of work for the drive. But I digress.
Iâ€™ve been running Time Machine for a while, so I was hoping that I could restore its most recent backup onto my replacement hard drive. There was just one snag, and I knew this would be an issue: my Time Machine backups are stored on my Windows Home Server. As you can imagine, doing this is a bit of a hack (here are some instructions if you donâ€™t know how to do this yet). And as Iâ€™m sure you can also imagine, doing a hack like this makes a â€œnormalâ€ Time Machine restore impossible.
What I mean by â€œnormalâ€ is that if you boot off the OS X installation disk, you can choose to restore a Time Machine backup instead of installing a brand new copy of the operating system. When you choose this option, it scans for a Time Machine backup â€“ but only the locations it supports, like external hard drives or Time Capsules.
Now, sure, you could probably copy the Time Machine backup on your WHS to an external drive, since the backup on the WHS is essentially just a disk image. But I didnâ€™t have an external drive large enough to spare â€“ and besides, there must be a better way.
Perhaps my Googling was sub-par at the time (I was in the middle of restoring my laptop, after all), but it took a while to find the answer. You canâ€™t do a normal Time Machine restore, but you can use the Migration Assistant:
- Install a brand spanking new copy of OS X. Make a throw-away account when youâ€™re prompted to create your first account. I named mine â€œAdminâ€.
- Mount your Time Machine backup. In Finder, use the menu option Go â€“> Connect to Serverâ€¦, and type the address to your Windows Home Server. This is usually â€œsmb://â€ plus the serverâ€™s name. (For me, it was â€œsmb://beatâ€.) OS X should find the server, connect to it, and list the available shares. Connect to the share that contains your Time Machine backup, and double-click the .sparsebundle file to mount the disk. (Enter your Home Server username and password, if prompted.)
- Run Migration Assistant. This tool is located under Applications â€“> Utilities on your Mac hard drive. Start it up, and read the intro if youâ€™d like. Click Continue when youâ€™re ready. Choose the â€œFrom a Time Machine backup or other diskâ€ option, and click Continue. If you were able to mount the disk image in step #2, then it should be an option to choose from. Select it and Continue.
- Restore the backup. The last screen shows you the available items to restore, and how much space theyâ€™ll take up. If you created the throw-away account in step #1, then there should be no conflicts with restoring your real account from the Time Machine backup. Select what you do or do not want to restore, and then click Continue. The restore can take a while depending on how much data you have.
Thatâ€™s it! When it finishes, your account should be back to the way it was, exactly as you left it (as of the last Time Machine backup). You can now throw away your throw-away account, or leave it as a battle scar.
Since it took me a while to find this on Google, Iâ€™m writing it up to hopefully give it more exposure. And if this is already well know and I just missed it, well â€“ at least now I have a record in my blog of when my hard drive failed and I was sad. :P