Tomasz Korwel
programmer, administrator, engineer – my everyday fights with reality

July 21st, 2011

Ubuntu NAS vs. OS X Lion 10.7

Posted by tomasz in Home brew NAS, tips & tricks vault

Today when I woke up my MacBook greeted me with very unpleasant alert:

The network backup disk does not support the required AFP features.

It turnes out that during the upgrade to Lion Apple used their newest set of commands that were not compatible with stable netatalk package in Ubuntu.
To get my network storage to work again I had to upgrade to the latest netatalk 2.2.beta4.

First download all needed files from Ubuntu’s repositories

wget http://launchpadlibrarian.net/73070555/netatalk_2.2~beta4-1_amd64.deb
wget http://launchpadlibrarian.net/74978789/libgcrypt11_1.5.0-1_amd64.deb
wget http://launchpadlibrarian.net/75629511/multiarch-support_2.13-9ubuntu3_amd64.deb
wget http://launchpadlibrarian.net/72120162/libgpg-error0_1.10-0.3ubuntu1_amd64.deb
wget http://launchpadlibrarian.net/74358655/libdb5.1_5.1.25-11_amd64.deb

Then install it:


dpkg -i multiarch-support_2.13-9ubuntu3_amd64.deb
dpkg -i libgpg-error0_1.10-0.3ubuntu1_amd64.deb
dpkg -i libgcrypt11_1.5.0-1_amd64.deb
dpkg -i libdb5.1_5.1.25-11_amd64.deb
dpkg -i netatalk_2.2~beta4-1_amd64.deb

I’ve chosen to keep old version of configuration files, the only notable difference was that now afpd.conf lists -tcp -noddp options as defaults. I added them to my list. Quick restart of netatalk daemon and voila – Time Machine works again.

3 Responses to ' Ubuntu NAS vs. OS X Lion 10.7 '

Subscribe to comments with RSS or TrackBack to ' Ubuntu NAS vs. OS X Lion 10.7 '.

  1. Javier said,
    on July 21st, 2011 at 11:26 am

    Hi,

    I have taken the files from the site posted in: http://www.tristanwaddington.com/2011/07/debian-time-machine-server-os-x-lion/comment-page-1/#comment-907

    but it should be the same as you explain.

    I am using Ubuntu 10.4 and I have done what you explain and now the time machine backups work as before installing Lion on my mbp

    The only thing is to remove the /etc/avahi/services/afpd.service file so the afpd is announced by netatalk directly.

    I have 2 disks exported that keep working fine and a backup disk that is displayed in the mbp as a time capsule.

    Thanks a lot for the instructions.

    Best regards.

  2. tomasz said,
    on July 21st, 2011 at 11:32 am

    The site you’ve mentioned uses a little better approach by using repositories, but in my case I had to make sure that nothing but netatalk would be upgraded, and I have a habit to run apt-get upgrade way to often so I opted for manual operation here.

  3. Thomas said,
    on August 28th, 2011 at 6:56 am

    Thanks for sharing this! It was hard to find to correct install instructions on the Internet but this did the trick. I got it working on Ubuntu 10.04 LTS as well.

    After installing the required packages and the netatalk beta4 I was also overwriting my config files and changing some settings:

    - added “tm” option to the “:DEFAULT: options” line below (:DEFAULT: options:tm,upriv,usedots)
    - commented out the default Home Directory setting (#~/ “Home Directory”)
    - used a separate disk and named it with “Time Machine UBU”

    sudo pico /etc/netatalk/AppleVolumes.default

    #

    # The line below sets some DEFAULT, starting with Netatalk 2.1.
    :DEFAULT: options:tm,upriv,usedots

    # By default all users have access to their home directories.
    #~/ “Home Directory”
    /media/BACKUP/timemachine/ “Time Machine UBU”
    # End of File

Leave a reply

:mrgreen: :neutral: :twisted: :shock: :smile: :???: :cool: :evil: :grin: :oops: :razz: :roll: :wink: :cry: :eek: :lol: :mad: :sad:

ZEND Certified Engineer
Listed on BlogShares

Tomasz Korwel is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com