Guide - Using external HDD via router as Time Machine with Mountain Lion

Joined
Aug 17, 2012
Messages
3
Reaction score
0
Points
1
This took me about 4 days to figure out, mainly because of poor documentation and finding the right firmware for my router and also due to me only being a Mac owner for about 8 months! :eek:

What you need:

  1. A router with a usb
  2. A external HDD of at least 1tb ( can be smaller, but not ideal )
  3. A firmware capable of SMB /CIFS - I recommend the latest Gargoyle which is based on OpenWRT that I used for this guide.
  4. Time and patience!

Now I am going to assume you have found the necessary hardware and firmware as stated above, so let's begin.

First off you need to create a sparsebundle image. This is necessary for Time Machine to operate. The main HDD can be in any file format, so long as the router can read it, I have mine in EXT4 as it is the most compatible with my firmware.

You will need to use the HDUtil command, so open Terminal. I am going to give you the option of an unencrypted and encrypted without spotlight backup.

Encrypted Backup:

Type - cd desktop, then select and copy and paste the text below.

PHP:
hdiutil create -size 900g -type SPARSEBUNDLE -encryption AES-128 -nospotlight -volname “Macbook-Pro-Backup.sparsebundle” -fs “Case-sensitive Journaled HFS+” -verbose backup

Unencrypted Backup:

Type - cd desktop, then select and copy and paste the text below.

PHP:
hdiutil create -size 750g -type SPARSEBUNDLE -fs "HFS+J" Macbook-Pro-Backup.sparsebundle

Note -

900 = Size in GB, change as necessary.
Volname = Name of your sparsebundle ( you can name it what you like )

This will now create the aforementioned image on your desktop

Repartition your Sparsebundle:

You need to do this so it will work with Time Machine. To do this you need to right click the bundle and select open with Disk Utility. In the left hand side of the app you will see the newly mounted drive. Next do the following:

  1. Click partition in the main window
  2. Choose one partition in the partition layout section
  3. Name it CIFS Timemachine Backup
  4. Click apply
  5. In dialog box select partition to finalise.
  6. Quit the Disk Utility app.

Phew! Almost there!! :D

  1. Next navigate to you shared hdd
  2. Select your sparsebundle from the desktop and while holding down command, drag it to the share.
  3. Double click the sparsebundle to mount it

Configure your Time Machine:

  1. Now open Terminal again
  2. Type diskutil list
  3. Find the device identifier for your CIFS Timemachine Backup

Enter the following code in Terminal

PHP:
sudo diskutil enableOwnership dev/disk1s2

( replace the disk for your drive )

To verify this has worked type diskutil info disk1s2 ( again replace disk for yours )

Finally you need to set the destination drive


PHP:
sudo tmutil setdestination /Volumes/CIFS\ Timemachine\ Backup

As before replace the name of the drive with yours.

Verify

Code:
tmutil destinationinfo

Enabling on boot:

Open your User and Accounts in settings, click login items and drag your CIFS Timemachine drive to the window.


Success!! All you need do now is enable Time Machine and you are sorted! :D

---------------------------------------------------------------------------------------

Hardware used:

Netgear WNDR 3700V1
Gargoyle Firmware 1.59
WD MyBook 2.0 1TB
Macbook Pro Mid 2012.
 
Joined
Sep 24, 2012
Messages
48
Reaction score
0
Points
6
Your Mac's Specs
iMac
Nice tip, i've Bookmarked
it's will be needed on the future, after i've buy router
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top