how i did it: getting your Time Machine back-up to restore on a non-Apple NAS (Drobo).

- Or – how I pulled baby back from the dead.

[Note: for the funny video of me pining for my iMac, “Baby,” go here.]

20120810-115239.jpg“Baby” is my iMac, a big ol’ 27-inch behemoth from mid-2010 with an Intel Core i7 processor, 12 GB of RAM, and a Terabyte hard drive.

Or it had a Terabyte hard drive, until things went horribly, horribly wrong and way far south.

Now I’m gonna warn you, this post is going to eventually get a little tetchy and command-line geeky, which is part of what I’m about, and therefore part of what this blog is about. So if that’s not your cup of tea, you might skip on to another post.

That said, my cautionary tale of woe begins with my decision to upgrade form Mac OS X 10.7.4 Lion to the 10.8 Mountain Lion (or Mounty Lion, as I like to refer to it; or in this case, no-longer-will-Mounty-Lion). Yes, I am well aware that early adopters pay a price, and living on the bleeding edge means, well, sometimes you bleed. Sometimes, a lot.

Basically, after starting the upgrade after purchase (which i felt smugly satisfied with myself for getting it downloaded and started over a VNC screen sharing connection from my iPad — ah, how pride goes before the fall). I got the install and restart of Mac OS X 10.8 Mountain Lion started and went off for a few hours while it did its thing, figuring I’d come back to a pristine new system with oodles of new features.

Big Mistake.

When i got back home to Baby, the screen displayed was not what any user ever wants to see: big white dialogue, with a big yellow warning triangle with a white exclamation point was in the top center of it, the universal symbol for something just done shit the bed.

The verbiage on the screen basically said the hard drive failed (!) during the upgrade/install and to hit restart and try again.

Which I tried to do.

A couple of times.

Same ugly result with the “hard drive failed” message and that yellow warning triangle with the white exclamation point, taunting me. Taunting, I say.

A phone call to AppleCare tech support and tossing it up the chain a couple times landed me with a senior AppleCare support tech… who also determined there was nothing else to be done, call code blue.

Upon getting to my local Apple Store Genius Bar with Baby, the Genius Bar tech there ran a quick couple of tests on the hard drive — and quickly found 18,000+ I/O errors. “Wow,” I replied, sort of glassy-eyed at that point, “that’s… a few.”

Fortunately, under warranty, they could just drop in a new hard drive for me, and I had an easily accessible back-up (or so I thought) on the Drobo-FS at home. It took them most of the weekend (as I pined for Baby, see post with video of that here). Even then, I wasn’t done with them, as, thinking they were doing me a favor, they put on the newer Mac OS X 10.8 Mountain Lion on there, when I needed 10.7 Lion to match and restore my back-up first. Sigh. Back to then Apple Store Genius Bar with Baby to have them load that for me.

Once home, I was now in the hell where the Apple Migration Assistant, either in the set-up after you first install the OS or after the set-up running Migration Assistant wouldn’t see the Drobo-FS drive share that had my back-up.

Several more calls and e-mails to AppleCare and Drobo tech support ensued.

We figured part of this was because the Drobo-FS and its shares were password protected, as they should be — you don’t want your network hacked and people getting into your sensitive data and back-ups; the other part was because Apple’s Migration Assistant, under both 10.7 Lion and 10.8 Mountain was not going to look for network drives, like on third party NAS (Network Attached Storage) drives like the Drobo-FS (which is ethernet only, how we wanted so everyone in our house office could back-up to it), except Apple’s own Time Capsule. It had previously done this under 10.6 Snow Leopard and earlier Mac OS X versions. I acknowledged to the AppleCare support tech the Apple Party Line that they really only ever want you to use Time Capsule for such devices, but I really just needed my back-up off the Drobo-FS and back on Baby.

After much back and forth, we got it figured out, and below is the terminal command line Fu (富) you too can use if you ever run into the same problem, restoring your Time Machine back-up from a third-party NAS.

- – - – -

So before we get into the deeper tech of it, I want to just give the appropriate shout-outs and acknowledgements to the Apple Store Pioneer Place and, in particular, Nate of the Genius Bar there; Ashley the senior tech on AppleCare phone support and his many call backs & e-mails helping me through this; and also, Bradley from Drobo tech support, who provided many of the tech links by which I pieced this together and finally succeeded. Thanks, folks.

Now, my, “How I Did It By Victor Frankenstein,” for others in similar dire straits, on restoring an Apple Mac OS X Time Machine back-up from a third party network only NAS that has Time Machine compatibility but is not Apple’s Time Capsule (Drobo-FS [ethernet only], Netgear ReadyNAS, QNAP, etc.). Ready? Propeller beanies on tight? Here we go.

First, when it’s and ethernet-only NAS like Drobo-FS, skip over the step support techs usually are told to tell people: “Try plugging the Ethernet cable from the NAS into the back of the Mac!” Reason: that does nothing. Nada. Nichts. Big Goose Egg. Null, the empty set. If it’s not seeing it on the network with a decent ethernet connections, good cable and router, it won’t see it that way either.

As I said, the main problem why the opening screens of set-up in Mac OS X 10.7 Lion or 10.8 Mountain Lion offering migration did not see the Drobo-FS and it’s shares (partitions), or the Migration Assistant in Utilities after set-up, was the drive us password secured on the net. Also, the reason regular Migration Assistant could not see it even after initial system set-up and you’re in Finder and have mounted the network drive on the desktop is probably due to the fact that Migration Assistant shuts down all other applications, including Finder and all other mounted connections, and will only look for Time Capsule on the net at best.

So then how to get it to be seen so you can do the restore?

First, if it is possible, restart the Mac holding down Command-key-R to boot into Mac OS X 10.7 Lion or 10.8 Mountain Lion recovery partition. If you can do that, you are 1/3 of the way home.

If the recovery partition is not working for you, there is no reason to despair… yet. You will need to create a mac os x 10.7 Lion or 10.8 Mountain Lion bootable DVD or USB thumb drive to start the machine. You might have to go to someone else’s Intel Mac and have them create a log-in account for you, or ask at your Apple Store Genius Bar, or wait until AppleCare tech support mails you one. ;)

To create said bootable Mac OS X 10.7 Lion or 10.8 Mountain Lion DVD or USB thumb drive, rather than go over all that here, I suggest these tech notes or videos I found —

For a Mac OS X 10.7 Lion boot drive, there’s this tech note, or this video, or this other video.

For Mac OS X 10.8 Mountain Lion, here’s one video on making a boot drive, and here’s another video.

There’s also a cool applescript application called Lion Disk Maker, that, if you have the installs for 10.7 Lion or 10.8 Mountain Lion, it will make the DVD or USB thumb drive for you. You might throw a donation the developer’s way to say thanks and support his efforts & updates.

O.K., back to the recovery and restore —

Once you’re booted either into the recovery partition or from a recovery DVD or USB thumb drive, go up to the “Utilities” menu and choose the Terminal.

Once in the Terminal, first switch to the Volumes directory off of the root —

#> cd /Volumes

#> pwd [to make sure that is where you wound up]

#> ls -a [to see what is in there]

Now you need to create a sub-directory in “Volumes” for your network NAS volume/partition/share to mount there. You could name it anything, it disappears once you restart the Mac. I named mine “TimeMachine.” —

#> mkdir TimeMachine [< — no need to “sudo” first here, as when you boot from a recovery partition, you access terminal as “root” — SO BE CAREFUL!]

#> ls -a [to make sure the directory got created]

Next, you need to mount the network NAS volume/partition/share with its log-in & password. You’ll have to find the IP address of the network NAS first, using command line tools like ping, ifconfig, nmap, etc., or looking it up from another computer on the net.

#> mount -t afp afp://[your user log-in]:[password]@[192.168.xx.xx, etc., whatever the network NAS IP is]/[your Volume or Share Name] /Volumes/TimeMachine

Important: remember in this bit of terminal-command-line-Fu that you use the IP address, not whatever network name you gave the network NAS — your Mac in this recovery partition state won’t recognize that name and will not mount it, it will return something like a “-1069” network error in the terminal.

Wait a bit, it’ll take maybe up to a minute or so across the network, but if you get the plain “#>” prompt again with no error, it mounted.

Now do —

#> ls -a /Volumes/TimeMachine [< — to see that your volume/partition/share did, indeed, mount and get the exact name of your Time Machine back-up, *.sparsebundle]

You should see now, the contents of your network NAS volume/partition/share. Yay!

(To see the blog tech note where i learned about this, provided by Drobo tech support, see this blog’s tech note, here.)

However, you are not home free yet! Do not switch back to restore from a Time Machine back-up yet, it won’t work!

There is still one more step to go in Terminal. You have to use the hdid” (hard drive image driver) to mount the sparsebundle image. This is perhaps the most important step of all —>

#> hdid /Volumes/TimeMachine/[your back-up name].sparsebundle

Again, it might take a minute or two across the network, but if you get back just the “#>” prompt, it has mounted! In mounting the sparsebundle image, “hdid” will also probably list what volume assignations it mounted (“ds1dsk3,” etc.). it will also put it in another sub directory under “Volumes,” called, “Time Machine Backups,” or to get there in a unix terminal, “Time\ Machine\ Backups.” switch there —

#> cd /Volumes/Time\ Machine\ Backups

Then —

#> ls -a [to make sure it looks like your back-up is, indeed, in there]

If all looks copacetic, you’re in! Now (and not before this point), you can switch back to the main recovery section by quitting the Terminal.

In the main recovery section, in the dialogue, choose “Restore from a Time Machine back-up.” In the next screen it will let you know what it’s going to do and search for, click “Continue” at the bottom of that screen.

After that screen, it will search for Time Machine backups, and will show you the “Time Machine Backups” directory as a volume that contains your back-up that “hdid” created. Select that and click “Continue” down below.

In the next screen, if all has gone well, will show you all the back-ups incrementally by time and date you can restore from, most recent first. Select the one you want (usually, most recent) and choose to restore from that one.

Voila! If the restore starts, you’re home free. Depending, of course, on amount of data to restore and network connection — mine was ~470 GB and even with the 1 GBit ethernet connection, it took 13+ hours.

Anyway, that’s how i did it. Phew.

A couple last things —

  • I sent a suggestion up e chain through the support tech to the Apple engineers — it would be so much better if the Migration Assistant, either when you first start the Mac after OS install in set-up, or from Finder, would also search for network drives and offer you to log-in and mount them, the same way the standard finder AFP “Connect to server…” does. The OS already had those AFP code libraries to do that, they just need to apply them in any implementation of Migration Assistant, including at set-up.
  • I have now made many redundant copies of the Mac OS X 10.7 Lion & 10.8 Mountain Lion recovery dvd’s & usb thumb drives. I’m once burned, twice paranoid like that. And there was a sale at Office Depot on 32 GB USB thumb drives. ;)

14 thoughts on “how i did it: getting your Time Machine back-up to restore on a non-Apple NAS (Drobo).

  1. Pingback: Baby Done Left Me — The Video | i also went...

  2. Hi,

    Thanks for taking the time to document this. You will save many others a lot of time and trouble by doing so.

    At the present time I do not have need of this information. I am looking for ways to backup to enterprise NAS using TimeMachine. But it was a good read and I enjoyed the thorough recount of the steps you took.

    Hat’s off to you sir!

  3. hi john: thank you, glad you enjoyed and/or got some use out of it. most of the NAS’ i reference in the article (with links to their web sites), Netgear, Drobo, or QNP, have enterprise models and are Time Machine compatible. hope you find one to suit your needs. — f

  4. Hi,

    Thanks for the guide. It helped out!!!!

    But what now…

    Did you then upgrade to Mountain Lion after your backup or not?

    I did the upgrade again successfully, but no matter what cannot get my Network drive to work with time machine like before.
    Have they disabled this functionality in Mountain Lion?

    Thanks again

  5. hi grant,

    sorry, just seeing this comment now.

    yes, i have upgraded to mountain lion. i have not had any problem backing up to my Drobo-FS NAS. i have not noticed that apple has suspended any functionality in 10.8.x.

    can be more specific with what you are working with? which NAS? and have you gone to their support site to make sure you’ve updated any software and drivers to work with Mac OS X 10.8.x? what problems are you experiencing or error messages are you getting when you try to back up with time machine?

    — faddah

    • Hey Faddah,

      Been out of town…
      I am using a windows network drive not a NAS. I eventually managed to get time machine working again after my mountain lion upgrade. There is one more step you need to do compared to doing the same thing in Lion.

      I found the solution here:
      http://basilsalad.com/how-to/create-time-machine-backup-network-drive-lion/

      Strangely the first time I tried this it did not work… after a second attempt it is working now and backing up.

      Thanx for the replies.

      Grant

      • hi grant,

        good to hear back from you, hope your trip was a good one.

        i’m glad, after a couple of tries, things are now working for you with Time Machine under mountain lion. my experience is with NAS, not windows network drives.

        thank you for the info and the link — posting it to help others who might run into the same situation is what this is all about.

  6. Faddah,

    This is a very good set of instructions, which came a few days too late for my wife’s MBP which is backed-up on a Drobo-FS. I also regularly complete another set of TM backups on a FW external HDD, and although a few days out of date, the FW backup worked fine (and was quick).

    I was incredibly frustrated that OSX recovery did not find my Drobo-FS Time Machine backup, and after reading what you did, I can understand why. My goal is to understand how to recovery from the Drobo as this is the base Time Machine device.

    I have replicated your instructions on my iMac, to see if I can see the Drobo-FS timemachine in the recovery option after following your instructions, but I it still does not work. For me, your instructions are very clear and precise through the hdid step. The paragraph that follows this is very confusing as I’m not sure if I need to follow your two steps that follow or not (1. #> cd /Volumes/Time\ Machine\ Backups, then 2. #> ls -a). Are these necessary steps, or after the hdid step, is that enough? I’ve tried both without success.

    What I did find is that my sparsebundle has been renamed by the system from David’s iMac.sparsebundle, to David???s iMac.sparsebundle. Even after trying the system generated name, I fail to see my timemachine backup upon closing Terminal and proceeding with the recovery procedure.

    I feel that I’m 90% of the way there, but just need a tip on that last 10%. Any ideas??

    Thanks,

    David

    • hi david,

      sorry you got only so far to the promised land, but could not get into jericho, as it were. i don’t have a quick solution for you, as all the steps i’ve done and detailed above are what worked for me. however, i have some questions (and in some cases, sorry, restating the steps above) that may point us in the right direction.

      so, to go over what you’re dealing with —

      so you and your wife (and her MacBook Pro) back up across an ethernet network to a Drobo-FS NAS, correct? do you back-up hard wired into your home LAN via ethernet cable, wifi, or a bit of both?

      the reason i ask is because even on gigabit ethernet, what we have at our home LAN, the time it takes for the directory to come up and show the name of your *.sparsebundle after you do the hdid step, it takes some time for the Drobo to crunch that info and spit it back at you over the AppleTalk protocol on ethernet. on wifi? even muuuuuuuuuuuuch sloooooooooower. so that might be one solution — wait a bit more, both in looking inside the directory after hdid with an “ls -a,” and in switching back over to the “Restore from a Time Machine back-up” screens.

      that might be over simplified wishful thinking on my part. so onward…

      the reason i repeat the switch to the back up directory (“#> cd /Volumes/Time\ Machine\ Backups”) and double-check what is inside of that directory (“#> ls -a”) is for the reasons: 1) i’m paranoid, i admit it; 2) to make sure the *.sparsebundle is in there, meaning it mounted as a back-up volume, and make sure you get the correct name.

      yours seems to be having some naming issues, so for that i say —

      you say the *.sparsebundle Time Machine back-up file showed as “David???s iMac.sparsebundle,” instead of what you originally named it, “David’s iMac.sparsebundle.” did you try both in doing the hdid step, the double check (as my paranoid self would), looking inside the “/Volumes/Time\ Machine\ Backups” to see if the *.sparsebundle shows up there? i would try both with the hdid step and see what happens. and remember, wait a bit (perhaps).

      keep in mind also, special characters like an apostrophes, question marks and spaces require a “\” character before them in a BSD Unix command line. also, unix command lines are notoriously sticky about being exact spelling and case sensitive. so, your hdid commands that you try would be —

      #> hdid /Volumes/TimeMachine/David\’s\ iMac.sparsebundle

      – and -

      #> hdid /Volumes/TimeMachine/David\?\?\?s\ iMac.sparsebundle

      …spelled just that way. did you type it like those into the command line? did you try it both ways?

      if you did get some success and saw your mounted *.sparsebundle in the “/Volumes/Time\ Machine\ Backups,” and you switched out of the terminal to the “Restore from a Time Machine back-up” and stepped through the screens there and let it search for the Time Machine back-up you supposedly mounted with hdid, what did you see, if anything? did you try waiting a bit longer for the Drobo-FS NAS to come back with the info to that application over ethernet or (even slower) wifi?

      these are the things i would ask and go over in trying to get your Time Machine back-up mounted and restored over the LAN from the Drobo-FS NAS. please let me know on the above — if it’s still not working, rather than take up more comments here, just e-mail me at faddah[at-sign]ialsowent[dot]com.

      i’m glad you read my post and it got you most of the way, let’s see if we can get you all the way there. i’ll also e-mail you this response.

      take care & happy holidays.

  7. It took me a few days to figure out my problems using this method.

    First my .sparsebundle was incorrectly named something???s macbook pro.
    What I had to do was rename it from finder on a working mac (although it was correctly named from that mac I renamed it, and then back.
    Then I had to use \ before every space and ‘ in my sparsebundle file.
    After this all went well exept for the “check /Vomume/Time Machine Backup”. It was named in swedish and had a “ä” witch I couldn’t write no matter what in the terminal (not even paste).

  8. Thanks very much for the detail rich post! However, I’m still struggling to get this to work on either one of 2 Macbook Pro laptops that I have. On the first, which blew out the hard drive and I installed a fresh image (but need my data back!) the System Restore never finds a hard drive to restore from.

    On my second laptop that is backing up to a separate shared folder on my Synology ds213air, it does not show the synology hosted TimeMachine folder, it shows the laptop’s local hard drive as a TimeMachine backup available.

    I’m wondering if this is because my local drive has a separate timemachine directory setup because of a previous user (which I cannot find any directories for, odd…?

    In any case, neither seems capable of seeing the separate Synology hosted TimeMachine folders. I admit I’m new to synology, but have scoured forums trying to find the answer – I’ve opened the ds213 firewall for virtually everything, don’t have a firewall enabled on my wireless network, and doing this hard wired through a router, all the obvious things. Help appreciated!!!

Leave a Reply