NAS (Network Access Storage) with Mac OS X’s Time Machine

October 11, 2008

 

 So recently I’ve had to do some work on getting a NAS with a linux file-system to work with Mac OS X’s Time Machine.

To give some background on this, NAS stands for Network Storage Access and is basically a large hard drive (several) used as a network share, a cheap alternative to a server.  Time Machine is Mac OS X’s backup and recovery solution to back up a machine’s data to a specific destination.

In this case the user’s wish was to back up their emails/ user files that were stored locally on the client machine to the NAS.  Normally this would be a simple click of a button with Time Machine doing all the hard work of creating an image file and backing up to it.  However when it interacts with a linux file system it runs into some problems.

This is an initial fix that allows the user to back up to the NAS, further problems are however as yet unknown (at least by me).  

The way Time Machine works in a nutshell is that it creates an image file on whatever backup device you choose and then periodically (depending on the settings) rewrites this file to include any changes.

There are two problems here, first is that when Time Machine attempts to create the image file on the linux file-system based NAS, it fails.  The solution here is to manually create an image file using disk utility, that is a blank image.  The second is that Time Machine will not recognize the Linux file share as a valid backup drive.

 

Enable Unsupported Network Shares  

  • To force Time Machine to recognize the linux-based file system as a valid network share you need to enter the following command into a terminal (type it in and press enter):

defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

Mount Desired Network Share

  •  You need to mount the network share before you can use it for backups,
  •  When in finder go to: Go -> Server and click on “browse”
  • Locate your network share and open it, this should mount it on the desktop.
  •  If it does not show up on the desktop you may need to go to finder -> preferences and tick “show all mounted network shares”

 

Finding the name of the backup image file to be created

There are two ways of doing this:

  • Create it manually by knowing the standard, the name is in the following format: “<computerHostName>_<ComputerMacAddressWithoutColons>.sparsebundle”, so for example if on the network your computer is known as ‘zephor’ and its mac address is “00:A0:C9:14:C8:29″ your image name will be: “zephor_00A0C914C829.sparsebundle”.
  •  Or let time machine fail once, and use the system log to find the name of the file it was trying to create,  I prefer this method as it ensures accuracy:

1.       Select the network share as a drive for time machine to use as backup.

2.       Initialise a backup by going to the toolbar and selecting “backup now”

3.       When the backup fails open up a terminal and type in:

4.       grep backup /var/log/system.log

5.       Find the line in the output that shows when Time Machine is attempting to create and remember this (copy)

 

Creating the Blank Image:  We first Create a blank image on the local machine using disk utility.

  • Open Disk Utility
  • Go to File -> New -> Blank disk image

Use the following values for the fields:

Volume Name: <name obtained from step 3.>

Volume Size: <Whatever maximum size you think your backup will reach>

Volume Format: Mac OS extended (journaled)

Encryption: (none)

Partitions: no partition map

Image Map: Sparse bundle disk image

Save this image file to somewhere on the local machine, somewhere you can access it. (I’d normally use the desktop) I saved as the same as the volume name for consistency.

Copying the Image onto the network share

  • Your network share should already be mounted from step 2
  •  Copy your newly created image file (from step 4) on the network share
  •  NOTE: Make sure you copy the image FILE and not the mounted image folder (disk utility mounts the image automatically after creation), its a simple mistake but if you don’t realise it, it may take hours to troubleshoot.

 

Initialize backup

  • Use the Time Machine Toolbar to initialize a backup by selecting “backup now”

Once the initial backup is complete (and this may take hours depending on how much data is being backed up) You should be able to use Time Machine as normal to do regular backups.  These steps need to be taken on each Mac machine that is to be backed up on the network share.

These steps were based on information provided by:

http://www.readynas.com/?p=253

http://www.flokru.org/2008/02/29/time-machine-backups-on-network-shares-in-leopard/

and applying it to the situation.  The NAS used was D-Link DNS 323

Google Chrome

September 7, 2008

Well, after a few days of using Google Chrome I’ve finally decided to give a post about it.

After years of battle between Mozilla Firefox and Microsoft Internet Explorer in regards to which would be the ultimate browser, google finally decided to enter the race.  Their answer to the browser wars was Chrome, released in beta phase a few days ago.

Since it’s still in beta I’ll refrain from judging too harshly.  I have to say its an impressive concept, it has quite a few neat features that I’d love to have in a browser such as tab browsing with individual processing.  The browser has yet to crash on me so I’ve yet to find out how effective this is but theoretically I think its genius.  It also appears to use up a third of the RAM that firefox did which makes it a win in my books.

Another feature that is of questionable purpose is the incognito mode, although it is a clever little feature, the official reason for its implementation is of a controversial nature (you know what I’m talking about).

In terms of interface design, its quite a nice look, with some smooth effects for opening new tabs.  It does however take some getting used to as it disposes of the conventional menu bars at the top of the window making the tabs the uppermost element of the interface.  The options for the browser are placed elsewhere next to the address bar and it took a while to work out what they meant.  Other than the transition time I’m enjoying the new interface quite a bit.

tabs.png

options.png

My only qualms with this browser is that it still needs some work in the standards departments.  Websites that have shown up perfectly on both IE and Firefox are turning up mis-aligned text, strangely placed menu elements and other funky and unintentional effects.  I have also been having problems with certain sites in the past few days although whether or not this is chrome’s fault or just my ISP i have yet to determine.

Overall the browser’s concept is an excellent one and in its current state it quite usable if you don’t mind switching back to firefox occassionally.  Again since its in beta that is a forgivable issue, for now I’d say give a go and see if you like it, if you do stick with it so that when it becomes as stable and solid as Firefox you won’t have to transition into it.

Here’s a download link, give it a shot:

Download Here

Rocket Dock vs Object Dock

September 2, 2008

We’ve all seen how beautiful Mac OS X’s dock is, who can resist the nice smooth zoom effects and the auto-hiding ability of this little apple invention.  It defeats the windows taskbar hands-down.  This being the case it was only natural for windows users to start wanting the ability to use this invention on thier own machines.  Thus was born the third-party dock applications, two of which (out of the many) are Rocket Dock and Object Dock.

One would expect that Object Dock, being a software you have to pay for would have an array of features that sets it apart from its freeware counterparts.  Now, although it does exhibit quite a number of extra features that rocket dock does not have, admittingly these features are next to useless.  My personal experience is that I have been able to do everything I did with Object dock on my desktop computer with Rocket Dock on my laptop.  In terms of resource eating, both these applications will consume ram (as does any application) but whether it is noticeable or not is a different story.  With 2gb and 3gb of ram on my desktop and laptop respectively I noticed no difference in performance and speed and so the rate of resource consumption is at worst neglligible.

Overall, I’d use RocketDock simply because its FREE and it offers most of the features any average user would need (as average as a user who wants a dock can be).

RocketDock:

http://rocketdock.com/

ObjectDock:

http://www.stardock.com/products/objectdock/