Time Machine on Lion with DNS-320

The Apple File Protocol (AFP) stopped working the day I upgraded to OS X Lion. Network shares on the NAS (DNS-320, ReadyNAS Duo) can no longer be browsed through AFP because none of them supports AFP 3.X calls and the authentication standards required by Lion.

I need a fix fast! Why? My iMac’s 1TB Seagate HDD got recalled and I needed Time Machine (TM) to work before the tech guy replace it on site.

(Re)setup my compiling environment, this time for the DNS-320. Did some compiling, wrote some shell scripts and Time Machine (on OS X Lion) is working with my D-Link DNS-320 once again. Well, it still throws some CNIB warning messages when accessing the share but at least it works now. The CNIB issue is fixed with help from Ben Archer.


  1. funplug-ed D-Link DNS-320
  2. telnet running on the DNS-320
  3. Mac running OS X Lion (10.7)
  4. Intermediate knowledge of Linux commands (ls, dir, cd, vi)


Packages to be downloaded

The following packages have been self-compiled or sourced from forums (credits: rr-m, hcdwoo).

  1. netatalk-2.2.0-1.tgz
  2. avahi-0.6.30-1.tgz
  3. db51-5.1.25.tgz
  4. libdaemon-0.14-1.tgz
  5. libgcrypt-1.5.0-1.tgz
  6. libgpg-error-1.10-1.tgz


Disabling the built-in AFP support on the DNS-320

If you have enabled AFP on the DNS-320,  disable it through the web administration page on the DNS-320.

  1. Using a web browser, navigate to your DNS-320 web administration page
  2. Login to the web administration
  3. Navigate to Application Management –> AFP Service
  4. Select the Disable radio button
  5. Click on the Save Settings button to save


Downloading the packages to your NAS

Download the six packages to the NAS’s Volume_1 (/mnt/HD/HD_a2). You can download them using your web browser or using wget.

If you intend to use wget, use the following:

  1. Telnet to the DNS-320’s IP address
  2. Navigate to Volume_1 by typing “cd /mnt/HD/HD_a2” without the quotes
  3. Download the six files by typing:
    wget http://www.shadowandy.net/wp/wp-content/uploads/netatalk-2.2.0-1.tgz
    wget http://www.shadowandy.net/wp/wp-content/uploads/avahi-0.6.30-1.tgz
    wget http://www.shadowandy.net/wp/wp-content/uploads/db51-5.1.25-1.tgz
    wget http://www.shadowandy.net/wp/wp-content/uploads/libdaemon-0.14-1.tgz
    wget http://www.shadowandy.net/wp/wp-content/uploads/libgcrypt-1.5.0-1.tgz
    wget http://www.shadowandy.net/wp/wp-content/uploads/libgpg-error-1.10-1.tgz


Installing the packages

  1. Telnet to the DNS-320
  2. Navigate to Volume_1 by typing “cd /mnt/HD/HD_a2
  3. Install the six packages by typing “funpkg -i libgpg-error-1.10-1.tgz libgcrypt-1.5.0-1.tgz db51-5.1.25-1.tgz libdaemon-0.14-1.tgz avahi-0.6.30-1.tgz netatalk-2.2.0-1.tgz


Setting up the AppleVolumes.default and afpd.conf

The AppleVolumes.default specifies the volumes to be accessed and by which user though AFP. All these are done automatically when you are using the built-in AFP Service. But now, you are on your own. What we will do here is to use back the last known copy of AppleVolumes.default generated by the built-in AFP service.

  1. Telnet to the DNS-320
  2. Backup the current ffp’s AppleVolumes.default by typing “mv /ffp/etc/netatalk/AppleVolumes.default /ffp/etc/netatalk/AppleVolumes.default.orig
  3. Set the tm options for Time Machine to work by typing “echo “:DEFAULT: options:usedots,upriv,tm” > /ffp/etc/netatalk/AppleVolumes.default
    Note: There is a space between :DEFAULT: and options:
  4. Copy the last known copy of AppleVolumes.default and replace the cnidscheme to dbd by typing “cat /etc/netatalk/AppleVolumes.default | sed -e ‘s/\”cdb\”/\”dbd\”/’ >> /ffp/etc/netatalk/AppleVolumes.default
  5. Update the afpd.conf by typing “echo “- -tcp -noddp -uamlist uams_dhx2.so -nosavepassword” >> /ffp/etc/netatalk/afpd.conf



Upgrading the afpd.sh shell script


  1. Telnet to the DNS-320
  2. Navigate to the shell script directory by typing “cd /ffp/start
  3. Backup the current afpd.sh by typing “mv afpd.sh afpd.orig
  4. Download the updated copy by typing “wget http://www.shadowandy.net/wp/wp-content/uploads/afpd_netatalk220.sh
  5. Rename the updated copy to afpd.sh by typing “mv afpd_netatalk220.sh afpd.sh

Starting the upgraded AFP service

  1. Telnet to the DNS-320
  2. Start the upgraded AFP service by typing “sh /ffp/start/afpd.sh start
    Note: if you want to make it start automatically every time, do a “chmod a+x /ffp/start/afpd.sh”


Accessing network shares using the upgraded AFP service

Try accessing your network shares on the DNS-320 using Finder (afp://<IP Address>/<Share name>). It should be working. If you have previously set up Time Machine backup to DNS-320. Try doing a backup to check if it works.

Notes: You might get an warning on CNIB error. I am still trying to figure out the cause so try to live with it for now. If you know what is causing it and know how to solve it, please share with me. Thanks! Ben Archer to the rescue! I have updated the guide based on his findings. It works fine now. 🙂

If you are using DNS-323, ensure that your AppleVolumes.default is not blank. Populate it with the correct entries, restart the afpd (sh /ffp/start/afpd.sh restart) and it should work. 🙂

Like to buy shadowandy a cup of Starbucks for his work?



Treat shadowandy!

If these step-by-step guides have been very helpful to you and saved you a lot of time, please consider treating shadowandy to a cup of Starbucks.  

84 thoughts on “Time Machine on Lion with DNS-320

  • August 10, 2011 at 11:25 pm

    Hi, thank you for great workaround.
    Is it possible to cancel this changes and uninstall the packages, after D-Link has fixed the issue with AFP-protocol?
    Can new firmware do this?

  • August 11, 2011 at 12:10 am


    Yes, you can easily reverse the workaround by uninstalling the six packages (funpkg -u ).

    I am also hoping that D-Link release a new firmware that supports OS X Lion soon.

  • August 11, 2011 at 3:18 am

    I can connect to an afp share on de DNS-320 and get the CNIB error but TimeMachine still says it doesn’t support its AFP version.

  • August 11, 2011 at 6:50 am


    Check if your /ffp/etc/netatalk/afpd.conf is updated correctly to have the following line at the end.

    – -tcp -noddp -uamlist uams_dhx2.so -nosavepassword

  • August 11, 2011 at 3:20 pm

    The afpd.conf contains the correct line. So does the AppleVolumes.default. Any idea what else could be wrong?

  • August 12, 2011 at 9:23 am

    I’m having the exact same problem Pieter. I’m on a DNS-321.

  • August 12, 2011 at 12:50 pm

    having a couple problems …

    first, I can’t seem to download the db51-5.1.25-1.tgz file. It gets anywhere between 50 and 75% and then fails using wget. I did all the other files in your how to and am getting ‘some’ success with connecting.

    second, when I start the afpd it starts fine, then when I try to connect using finder it spins and tries to connect … if I run ps on the dns-323 it shows a second afpd process. if I kill that second one (higher pid) then I get the login prompt to which I can enter my creds and after about 20-30 seconds then it mounts and I get the CNID error.

    Any thoughts on the second problem? I understand you’re still trying to work out the CNID thing, but I’m hoping you have some insight into the double process thing.

    Also note that I did the chmod a+x thing … maybe that is causing it? don’t know enough about linux to know otherwise.

    thanks in advance for any help you can provide.

  • August 12, 2011 at 2:36 pm

    Hi Pieter, Ragelic,

    Can paste me the results of the following command without the quotes?

    “ps | grep afpd”

    Need to check if it is running the afpd from the installed packages (/ffp/sbin/afpd)

    Another thing to check is on /ffp/etc/netatalk/AppleVolumes.default . Check if it starts with the line.

    :DEFAULT: options:usedots,upriv,tm

    We need the “tm” option for Time Machine to work.

  • August 12, 2011 at 2:40 pm


    The DNS-323 has a slower processor than the DNS-320. The newer netatalk package with components supporting OS X Lion actually consumes more CPU power hence it might take some time for the authentication and connection to establish.

    Maybe you can paste me the result of “ps | grep afpd” when you are hitting the problem. 🙂

  • August 12, 2011 at 3:08 pm


    The ps | grep afpd returns:

    4029 root /ffp/sbin/afpd
    4031 root grep afpd

    The AppleVolumes.default is as follows:

    “/mnt/HD/HD_a2/TimeMachine” “TimeMachine” rwlist:”nobody”,”@allaccount” allow:”nobody”,”@allaccount” dbpath:”/mnt/HD_a4/.AppleDB/TimeMachine” cnidscheme:”cdb” volcharset:”UTF8″ options:”usedots”,”upriv” veto:”/Network Trash Folder/recycle/.systemfile/lost+found/Nas_Prog/”

  • August 12, 2011 at 3:11 pm


    Try leaving a space between the :DEFAULT: and options.

    You can just repeat step 2 and 3 of “Setting up the AppleVolumes.default and afpd.conf”

  • August 12, 2011 at 3:43 pm

    That was it. It now works. Thanks for your input. I’ll keep monitoring this website in case you find a solution to the CNIB error. 😀

  • August 12, 2011 at 4:43 pm


    Just wanted to say thanks for the guide. Although I hope D Link fix this your workaround is excellent. It worked first time.



  • August 12, 2011 at 4:54 pm

    Hi Pieter, Paul,

    Glad that it works. If you manage to find the solution to the CNIB issue, do share. 🙂

  • August 13, 2011 at 9:04 am


    thanks for the response. tried waiting longer and you’re right, it connected fine.

    now it’s just the CNID error. I’ve been continuing to read up on it and it appears to have something to do with the db51. if you run dbd -s what does yours tell you? mine said “dbd: can’t load library ‘libdb-4.8.so'”.

    does this mean anything to you? I also read that if you use did -r -f [volumepath] that it should fix it but it won’t work for me. I’ve been digging around and I can’t find libdb-4.8.so so I’m thinking it’s missing? maybe there’s someone out there that can supply me/us with a copy of theirs?

    Hope this helps some,

  • August 13, 2011 at 12:31 pm

    you were right, was missing that package.
    rebuilding now … hope this works.

  • August 13, 2011 at 8:13 pm


    I still can’t get it working. The below error messages from the console.

    13/8/11 8:00:19.470 PM com.apple.backupd: Starting standard backup
    13/8/11 8:00:19.553 PM com.apple.backupd: Network destination already mounted at: /Volumes/Time Machine
    13/8/11 8:00:34.806 PM com.apple.backupd: afpfs fsctl failed to read settings: 45 Operation not supported
    13/8/11 8:00:44.815 PM com.apple.backupd: Backup failed with error: 45

    Any ideas?

  • August 13, 2011 at 8:50 pm


    Paste me the results of “ps | grep afpd”.

    It seems like either you are not using the new netatalk or tm options is not set in AppleVolumes.default

  • August 13, 2011 at 9:13 pm


    “ps | grep afpd” got be the below:

    4030 root /ffp/sbin/afpd

    In “/mnt/HD/HD_a2/ffp/etc/netatalk/AppleVolumes.default”, I have the following:

    :DEFAULT: options:usedots,upriv,tm

    Not sure what I did incorrectly.

    Thanks in advance.

  • August 13, 2011 at 9:55 pm

    Alright, I have resolved my CNID error, and backups are now working perfectly.

    Apparently my issue was that “/ffp/sbin/cnid_metad” wasn’t running. It was launched automatically on older netatalk versions, but not with the new version.

    I added a reference to it in my afpd.sh, so it is now launched on startup.

    For more details, refer to Ivan’s comment at this site:

  • August 14, 2011 at 1:14 am


    Got it working by re-building the CNID database’s using dbd -r and then just restarted afpd.

    Thanks for your contributions in this article and in comment replies!


  • August 14, 2011 at 10:27 am

    I tried reinstalling, doing all the steps again with no improvements.

    Where did you run your dbd -r? When I run this command it just give me a help menu on dbd?


  • August 14, 2011 at 11:36 am

    Hi Edward,

    Was your time machine backup working with the DNS-320 prior to Lion? How did you set up in the past?

    Or is this is the first time you are setting it up?

  • August 14, 2011 at 11:39 am

    Hi Ragelic, Darryl,

    Glad that you got the CNID DB issue resolved. Gotta try it out myself one of these days when I am free. Thanks for sharing!

  • August 14, 2011 at 11:54 am


    Yes, it was working before I installed Lion.

    I followed your guide athttp://www.shadowandy.net/wp/2011/06/enabling-time-machine-on-d-link-dns-320.htm

    I can connect using Finder. I can select the Time Machine backup disk but when i run “Backup Now” I got those messages in the console.

  • August 14, 2011 at 10:25 pm

    Hi Shadowandy,

    First of all thanks for collating all the various information and posting this thread! The pre-compiled archives saved me a lot of time.

    With regard to the CNID Warning, as some people have posted above there is a fix which I can confirm works.

    So here we go: CNID FIX in simple step by step terms.

    First of all follow all of Andy’s instructions and ensure that AFP/TM is working (but you will get the CNID warnings when mounting any drives)

    1. Now, you need to kill the afpd and cnid_metab services (if it is running)

    Execute the following commands via SSH:

    killall afpd
    killall cnid_metab

    2. One of the problems is that apparently in the new version of netatalk, cnid_metab may not automatically start, so we need to modify the /ffp/start/afpd.sh file.

    Use your favourite command line editor (vi, nano) to edit the file and replace with this:


    Then save the file and overwrite. This will ensure that cnid_metab is started when you start the service (you may need to chmod +ax the file again as per shadowandy’s instructions)

    3. Now we need to double check we’re using the dbd cnidscheme. So open the /ffp/etc/netatalk/AppleVolumes.default file, again in your favourite text editor.

    Check that on EACH line (for each volume) the cnidscheme:”” is set to cnidscheme:”dbd”

    Save the file and overwrite.

    4. Now at this point, I’m not sure if the following steps are optional (because I performed them in my testing and don’t know if it will work without – let me know!)

    The best thing to do at this point, is to test if the warning has gone.

    So, start up afpd with sh /ffp/start/afpd.sh

    Try TM or mounting your volumes: see if the message still occurs. If not, fixed!

    Otherwise continue on:

    5. If you did start afpd to test, make sure to kill it and cnid_metad first as in step 1.

    6. The next step involves rebuilding the dbd database. First of all (again this part may not be neccessary), delete the .AppleDB file in each of your volumes:

    rm -rf /mnt/HD/HD_a2/.AppleDB
    (repeat for each volume)
    7. Now rebuild each volume

    dbd -r /mnt/HD/HD_a2
    (repeat for each volume)

    8. Restart afpd, (sh /ffp/start/afpd.sh start) and it should be fixed. Mine now works perfectly!

    Good luck!

  • August 16, 2011 at 4:30 pm

    Hi shadowandy,

    Interestingly, I uninstall netatalk by using funpkg -u and then install netatalk 2.2 using funpkg -i and go through the steps all over again and this time round, Time Machine seems to working.

    So this is good news.

    I will be trying out remove the CNIB error messages next.

    Thanks for your help!

  • August 18, 2011 at 6:43 am

    Edward : I’ve already posted steps for removing CNIB error, see my above post.

  • August 19, 2011 at 11:46 am

    Ben, It works. Thanks.

  • August 19, 2011 at 8:23 pm

    Hi All,
    I’m trying to set this up for the first time using DNS-320 and Lion.

    I’ve done most of the steps, however when I try to connect to the afp in Finder I’m getting a username and password request. I’ve tried a few things (root/password, admin/password) nothing seems to work. Any idea what to do here or am I doing something horribly wrong?


  • August 19, 2011 at 11:57 pm

    Ben Archer,

    Thanks! Your solution works perfectly. I have inserted into the guide and using sed to do the text replacement. 🙂

  • August 20, 2011 at 2:58 am

    Hi shadowandy,

    Glad to be of help. Hopefully this guide will help a few people, and make the transition to Lion a bit smoother!


  • August 20, 2011 at 4:50 pm

    Adam Leclerc,

    Have you tried adding a user (with password) on the DNS-320’s web administration page?

    You should try to get the basic functionality up before attempting to set up time machine.

  • August 23, 2011 at 4:45 pm

    Hallo shadowandy,

    could it be, that the
    db51-5.1.25.tgz is damaged? What should be the right size? 6.1MB?

    because telnet says: Faild to unpack package.


  • August 23, 2011 at 11:09 pm


    The db51-5.1.25.tgz is roughly 19.6M and the md5sum is d29a8c306f1a15ac2422748788406ca9

    After you download just do a md5sum

  • August 26, 2011 at 12:03 am

    Thanks for the informations…. I’ve just a clue… how is started Avahi ?

    I cannot see something firing it up….


  • August 26, 2011 at 3:50 pm

    To me seems that the avahi is started up by the box itself but, the one started is that in /usr/local/modules/bin/ and not the one in /ffp/sbin/.

    Btw seems that when restarting he NAS the ./etc/avahi/avahi-daemon.conf is overwritten (i’ve changed the server name line but on restart i’ve found it changed to default) and the one in ./mnt/HD/HD_a2/ffp/etc/avahi/avahi-daemon.conf is not used at all…

    I’m really new to DNS-320, coming from another NAS since 2 days :)… thanks again expecially for your patience…

  • August 30, 2011 at 1:00 am


    I can’t manage the step 4 in “Setting up the AppleVolumes.default and afpd.conf”, here is the response : can’t find label for jump to ‘s/b’.

    I’m a complete novice with telnet and this stuff..


  • September 1, 2011 at 7:07 pm

    Hi Ben,

    Try to check if you have typed the command properly

    cat /etc/netatalk/AppleVolumes.default | sed -e ‘s/\”cdb\”/\”dbd\”/’ >> /ffp/etc/netatalk/AppleVolumes.default

    There are a combination of single quote (‘) and double quotes (“)

  • September 4, 2011 at 6:22 pm

    Wonderful guide. Which version of the firmware should I be using in order for this work? 1.00 or 2.00?

  • September 5, 2011 at 9:35 am

    Hi Andy,

    I am on 2.00. I think it is better to be on 2.00 before you attempt this guide.

  • September 6, 2011 at 12:06 pm

    Thanks so much for the directions! Now I’ve got my DNS-323 running as a TimeMachine network host, and without all of the hacks that were necessary pre-Lion!!

  • September 10, 2011 at 4:41 pm

    I was trying this on my DNS-343 but got this error when I typed the command.

    /mnt/HD_a2 # cat /etc/netatalk/AppleVolumes.default | sed -e ‘s/\”cdb\”/\”dbd\”/
    ‘ >> /ffp/etc/netatalk/AppleVolumes.default

    cat: can’t open ‘/etc/netatalk/AppleVolumes.default’: No such file or directory

    Would you be able to advise? Thanks.

  • September 10, 2011 at 11:50 pm

    fareez: I can’t comment too much on the 343 as I’ve never used it. But the error suggests that the file doesn’t exist. Are you sure you have Netatalk installed? AppleVolumes.default is a standard configuration file that comes with Netatalk.

  • September 11, 2011 at 12:14 pm

    Hi fareez,

    This is because DNS-343 doesn’t support AFP out of the box hence the missing file (/etc/netatalk/AppleVolumes.default).

    Instead, type the following commands for step 4:

    echo “/mnt/HD_a2” “Volume_1″ cnidscheme:”dbd” volcharset:”UTF8″ >> /ffp/etc/netatalk/AppleVolumes.default

    echo echo “/mnt/HD_b2” “Volume_2″ cnidscheme:”dbd” volcharset:”UTF8″ >> /ffp/etc/netatalk/AppleVolumes.default

  • September 11, 2011 at 4:25 pm

    Thanks Ben and Andy.

    I’ll give it a shot.

  • September 13, 2011 at 6:26 am

    I was trying this on my DNS-320 but got this error:

    This error after this command:

    root@dlink-C92D29:/mnt/HD/HD_a2/ffp/home/root# cat /etc/netatalk/AppleVolumes.de
    fault | sed -e .s/\.cdb\./\.dbd\./. >> /ffp/etc/netatalk/AppleVolumes.default

    sed: unsupported command .

    Would you be able to advise? Thanks.

  • September 13, 2011 at 4:58 pm

    This command: cat /etc/netatalk/AppleVolumes.de
    fault | sed -e s/\cdb\/\dbd\/ >> /ffp/etc/netatalk/AppleVolumes.default

    need typing without ” and . (dots)

  • September 13, 2011 at 7:33 pm

    Hi Kirill,

    There is a reason why I put double quotes. Without the double quotes it will replace all instances of cdb with dbd. Hence I did a specific match for “cdb”

  • October 18, 2011 at 1:25 pm

    First time setting up TM on Lion for me. When I get to step #4 under “Setting up the AppleVolumes.default and afpd.conf” I get the following error.

    “sed: unsupported command ?”

    I’m installing on a DNS-323. TM is able to recognize the disk and I can start a back-up, but it errors out with “The network backup disk does not support the required AFP features.”

  • October 19, 2011 at 1:19 pm

    Barron L,

    Make sure you are typing the correct command and not simply copying-and-pasting. I think you hit the same type of problem as Kirill.

    This guide is for DNS-320 and not for DNS-323 so paths to the file might be different. You will need to amend the codes accordingly.

  • October 20, 2011 at 5:10 pm

    Baught a new DNS320 and tried to set up TM with Lion 10.7.2 and these instructions here, but TM doesnt recognize the NAS as a backup source anymore. Accessing the NAS via finder is no problem. Ideas?

  • October 20, 2011 at 7:24 pm

    I have the same issue as Adam had above:

    I have a DNS-323 and Lion.

    I’ve done most of the steps, however when I try to connect to the device using finder (afp) I’m getting a username and password request.

    I have usernames/passwords set up on the device, but the login credentials set on the 323 doesnt work with this password prompt.

    Funny thing, is that when I try to connect using SMB, it works just fine.

    For example: smb:// works well
    afp:// presents a username/password screen that I can’t seem to get past.

    One more wrinkle:

    While following the installation instructions, I get the following error when I tried to execute teh CAT command:

    cat: can’t open ‘/etc/netatalk/AppleVolumes.default’: No such file or directory

    I navigated to the /etc/netatalk/ directory and confirmed that the file was there (as well as the one that we backed up in the prior step). I even went so far as to chmod 777 the AppleVolumes.default file to ensure that it was writeable.

    I think that I’m 99% there, just need a little help getting over the finish line.

    Also – I tried to install the latest (2.x beta) firmware but it failed on the 323. Has anyone successfully installed it on their 323?



  • October 29, 2011 at 2:23 am

    I can’t get it to work. I bought a DNS-320 and want to set up the Time Machine on it…. I followed the instruction and now can access my NAS through AFP, thanks fot that!

    I also can find the network volume in my Time Machine options and can select it. I login with my created user name (alex) and password….

    When Time Machine makes the backup, I get an error. It’s Dutch but the translation is something likes this:
    The network backup disk does not support the required AFP features.

    What am I doing wrong or what can I do?

  • October 30, 2011 at 4:15 pm

    Brian M,

    The DNS-323 do not come with AFP support out of the box hence the missing AppleVolumes.default.

    If you see AppleVolumes.default, can you list the contents? The 2.x beta firmware is only for DNS-320 and not the DNS-323.

  • October 30, 2011 at 4:16 pm


    Did you disable the native AFP support? Do paste me the results of “ps | grep afpd” without the quotes.

  • October 31, 2011 at 3:53 pm

    Hi Shadowandy,

    Thanks for your reply. I indeed disabled AFP support. I know what I did wrong, due to my lack of Linux knowledge I simply did copy/paste on the commands.

    Especially the commands:
    echo “:DEFAULT: options:usedots,upriv,tm” > /ffp/etc/netatalk/AppleVolumes.default

    cat /etc/netatalk/AppleVolumes.default | sed -e ‘s/\”cdb\”/\”dbd\”/’ >> /ffp/etc/netatalk/AppleVolumes.default


    echo “- -tcp -noddp -uamlist uams_dhx2.so -nosavepassword” >> /ffp/etc/netatalk/afpd.conf

    Gave problems when viewing the files on the NAS. This was because of the ” and ´….. I did it over again without copy/paste and now it works! Thanks a lot for the nice guide.

  • November 2, 2011 at 11:17 pm


    Glad that you figured it out! Yeap, that is what happened to some earlier on. 🙂

  • November 11, 2011 at 4:42 pm

    Hi Shadowandy

    The steps should work for dns323 that has tm working before on snow leopard right? Like Adam and Brian, i couldnt get past the password/username field when trying to do AFP mount on finder. No problem with SMB though.

  • November 11, 2011 at 4:57 pm

    Hi CK,

    So far those who did not get it to work are all DNS-323 users. I suppose the AppleVolumes.default is blank or incorrectly fill. Do explore it. 🙂

  • November 14, 2011 at 6:42 pm

    I got tm working again, thanks for the guide.

  • November 15, 2011 at 10:33 pm

    hi shadowandy,

    thanks for the great guide. i got the afp to work on my dns 323 so that i can see all my files but i can’t write anything. my mac says i don’t have the permission. any idea how i can fix this?


  • November 15, 2011 at 10:36 pm

    p.s. i can only mount it by using my ftp user/password combination. is this correct?

  • November 16, 2011 at 10:47 pm

    I am trying to set this up on a 323 and it does seem that the AppleVolumes.default isn’t set up correctly because there was no native AFP support and therefore no file to copy. Can anyone help with how that file should look?

  • November 30, 2011 at 4:00 am

    If you wish to have Time Machine automatically find your NAS as a valid backup target, add the following avahi service:



    dk0=adVF=0xa1,adVN=Share Name

    (Replace ‘Share Name’ with whatever you’ve named your share in AppleVolumes.default)

    With this, you will not have to create the sparsebundle or anything else to get backups running. Time Machine will simply think your NAS is an actual apple product.

  • November 30, 2011 at 4:03 am

    Bleah, the comment system mangled that. Not sure if I can do a code block, either.

  • December 4, 2011 at 4:44 am

    Seems the process was completed fine as I do not get errors after starting a backup on a 323 But, after about 15 minutes of backing up could be more, and after 3 retries I’m convinced somethings wrong.

    Get the following message: The backup disk may have been ejected or disconnected from your computer.

    Checked console for details a little much to post here I supposed but a caption is as follows:

    11-12-03 3:30:06.000 PM kernel: ASP_TCP Disconnect: triggering reconnect by bumping reconnTrigger from curr value 0 on so 0xffffff800eb29c48
    11-12-03 3:30:06.000 PM kernel: AFP_VFS afpfs_DoReconnect started /Volumes/TimeMachine prevTrigger 0 currTrigger 1
    11-12-03 3:30:06.000 PM kernel: AFP_VFS afpfs_DoReconnect: doing reconnect on /Volumes/TimeMachine
    11-12-03 3:30:06.000 PM kernel: AFP_VFS afpfs_DoReconnect: soft mounted and hidden volume so do not notify KEA for /Volumes/TimeMachine
    11-12-03 3:30:06.000 PM kernel: AFP_VFS afpfs_DoReconnect: Max reconnect time: 30 secs, Connect timeout: 15 secs for /Volumes/TimeMachine
    11-12-03 3:30:06.000 PM kernel: AFP_VFS afpfs_DoReconnect: connect to the server /Volumes/TimeMachine
    11-12-03 3:30:06.000 PM kernel: ASP_TCP asp_SetTCPQoS: sock_settclassopt got error 57
    11-12-03 3:30:06.000 PM kernel: AFP_VFS afpfs_DoReconnect: Logging in with uam 8 /Volumes/TimeMachine
    11-12-03 3:30:12.492 PM diskarbitrationd: mds [36]:22787 not responding.
    11-12-03 3:30:12.822 PM com.apple.launchd: (org.postfix.master) Failed to count the number of files in “/Library/Server/Mail/Data/spool/maildrop”: No such file or directory
    11-12-03 3:30:12.822 PM com.apple.launchd: (org.postfix.master) Failed to count the number of files in “/Library/Server/Mail/Data/spool/maildrop”: No such file or directory
    11-12-03 3:30:12.861 PM diskmanagementd: DM ..T-[DMToolBootPreference recoveryPartitionInfoForVolume:what:dict:]: did if-needed-best-effort unmount
    11-12-03 3:30:12.861 PM diskmanagementd: DM <-T-[DMToolBootPreference recoveryPartitionInfoForVolume:what:dict:]: retErr=0 outInfoDict={
    ProductBuildVersion = 11C74;
    ProductCopyright = "1983-2011 Apple Inc.";
    ProductName = "Mac OS X";
    ProductUserVisibleVersion = "10.7.2";
    ProductVersion = "10.7.2";
    11-12-03 3:30:39.000 PM kernel: AFP_VFS afpfs_DoReconnect: Restoring session /Volumes/TimeMachine
    11-12-03 3:30:43.976 PM KernelEventAgent: tid 00000000 received event(s) VQ_DEAD (32)
    11-12-03 3:30:43.976 PM KernelEventAgent: tid 00000000 type 'afpfs', mounted on '/Volumes/TimeMachine', from 'afp_14jwY206uBXG2m8SnV1eJ6N8-2.2e000016', dead
    11-12-03 3:30:43.976 PM KernelEventAgent: tid 00000000 force unmount afp_14jwY206uBXG2m8SnV1eJ6N8-2.2e000016 from /Volumes/TimeMachine
    11-12-03 3:30:43.000 PM kernel: AFP_VFS afpfs_DoReconnect: Primary Reconnect failed 22 on /Volumes/TimeMachine
    11-12-03 3:30:43.000 PM kernel: AFP_VFS afpfs_DoReconnect: Secondary Reconnect disabled on /Volumes/TimeMachine
    11-12-03 3:30:43.000 PM kernel: ]
    11-12-03 3:30:43.000 PM kernel: AFP_VFS afpfs_DoReconnect: posting to KEA to unmount /Volumes/TimeMachine
    11-12-03 3:30:43.000 PM kernel: ASP_TCP Disconnect: triggering reconnect by bumping reconnTrigger from curr value 1 on so 0xffffff800eb29c48
    11-12-03 3:30:43.000 PM kernel: AFP_VFS afpfs_DoReconnect started /Volumes/TimeMachine prevTrigger 1 currTrigger 2
    11-12-03 3:30:43.000 PM kernel: AFP_VFS afpfs_DoReconnect: already in unmount /Volumes/TimeMachine
    11-12-03 3:30:43.000 PM kernel: sparsebundle/bands/12ee] [FSLogMsgID 1738080729] [FSLogMsgOrder Last]
    11-12-03 3:30:43.988 PM KernelEventAgent: tid 00000000 found 1 filesystem(s) with problem(s)

    Perhaps I should delete the current sparse on the 323 and let it recreate…

  • December 5, 2011 at 3:48 am

    Resolved, simply deleted the incomplete and corrupt sparse bundle through ssh…

    Restart backup…

    Cheers 🙂

  • December 22, 2011 at 5:31 am

    Thanks, this also works on the DNS-321 with some slight modifications.

  • January 24, 2012 at 6:04 am

    Thanks for all the contributions, it helped me to get TimeMachine working with a DNS-323.

  • January 26, 2012 at 1:24 am

    Yes – just wanted to second Mark’s comment, I used this site (after many other) to compile enough data and knowledge of the components needed to get my newly purchased DNS-323 performing as a Time Machine disk for my Lion-based Macs.

  • January 26, 2012 at 1:58 am

    Getting it to work is one thing – Getting it to perform a complete restore from recovery is another thing…

    What’s the point of having a backup solution that you can’t restore in case you need to?????

    This isn’t a sacrifice worth making for most people.

  • February 10, 2012 at 10:55 pm

    hi i have a fonera 2.0n with firmware
    can i use this on my fonera?


  • March 1, 2012 at 12:20 pm

    Appreciate it for all your efforts that you have put in this. Very interesting information.

  • March 2, 2012 at 5:16 am

    Thanks for this great post! Sadly it didn’t work completely for me. After several days trying I reach the point where I need some help.

    I’m setting a DNS-323, FMW 1.10, my Mac OSX 10.7.3 Lion
    I followed all instructions just with the difference that I’ve used funplug 0.7 packages.

    I am able to connect using AFP (Read/write from Finder) but Time Machine fail to backup with the message “The network backup disk doesn’t support the required AFP features.”.
    Time Machine does find the NAS volume.
    I’ve created the sparse bundle disk and moved it to the root of the disk’s volume (properly named as mymacname_MAC)

    I’ve used /ffp/afpd_netatalk220.sh (renamed as afpd.sh) to start/stop the services

    #ps -ef shows
    root 9411 1 0 17:35 ? 00:00:00 /ffp/sbin/afpd
    root 9414 1 0 17:35 ? 00:00:00 /ffp/sbin/cnid_metad

    AppleVolumes.default (recreated from scratch, there is nothing else than this)

    :DEFAULT: options:usedots,upriv,tm

    /mnt/HD_a2 Volume_1 cnidscheme:”dbd”
    /mnt/HD_b2 Volume_2 cnidscheme:”dbd”

    afpd.conf (recreated from scratch, there is nothing else than this)
    – -tcp -noddp -uamlist uams_dhx2.so -setuplog “default log_info /ffp/var/log/afp.log” -cnidserver localhost -nosavepassword

    Packages Installed:


    I’ve tried also with avahi started, but with same results, so the deamon isn’t started at this time.

    Mar 01 17:35:58.418989 afpd[9411] {status.c:740} (I:AFPDaemon): “NAS”‘s signature is 8E1B91BD1312790471078392619D3450
    Mar 01 17:35:58.425676 afpd[9411] {dsi_tcp.c:318} (I:DSI): dsi_tcp_init: socket: Address family not supported by protocol
    Mar 01 17:35:58.427012 afpd[9411] {afp_config.c:372} (N:AFPDaemon): AFP/TCP started, advertising (2.2.2)
    Mar 01 17:35:58.439061 afpd[9411] {auth.c:136} (I:AFPDaemon): uam: “DHX2” available
    Mar 01 17:35:58.597084 afpd[9411] {volume.c:2221} (W:AFPDaemon): volume “Volume_1” does not support Extended Attributes, using ea:ad instead
    Mar 01 17:35:58.602327 afpd[9411] {volume.c:2221} (W:AFPDaemon): volume “Volume_2” does not support Extended Attributes, using ea:ad instead
    Mar 01 17:35:58.602957 afpd[9411] {cnid.c:53} (I:AFPDaemon): Registering CNID module [last]
    Mar 01 17:35:58.603266 afpd[9411] {cnid.c:53} (I:AFPDaemon): Registering CNID module [dbd]
    Mar 01 17:35:58.603553 afpd[9411] {cnid.c:53} (I:AFPDaemon): Registering CNID module [tdb]

    SYSTEM.log (filtered by backups, shows:

    3/1/12 5:36:56.769 PM System Preferences: TMShowUnsupportedNetworkVolumes is set to TRUE. Use of an unsupported Time Machine destination may result in loss of backup data!!!
    3/1/12 5:37:19.661 PM com.apple.backupd: Starting standard backup
    3/1/12 5:37:19.927 PM com.apple.backupd: Network destination already mounted at: /Volumes/Volume_2
    3/1/12 5:37:35.183 PM com.apple.backupd: afpfs fsctl failed to read settings: 45 Operation not supported
    3/1/12 5:37:45.200 PM com.apple.backupd: Backup failed with error: 45

    BTW, long time ago before Lion I have TM working fine, but this machine has been rebuild since then.

    I’m really stacked and any help would be greatly appreciated.


  • March 2, 2012 at 8:14 am

    Hi Flijfi,

    Does the oarm version of netatalk support AFP 3.x calls?

    Another way to test whether is the netatalk issue is to set your Lion to support AFP 2.x calls (those supported in SL). If it works then the AFP 3.x calls has not been enabled in netatalk (oarm).

  • March 2, 2012 at 9:01 am


    I’ve used the OARM version because it was required by funplug 0.7.
    Should I can use the other one? I think I’ve tried but didn’t install…

    How may set up Lion to support AFP 2 calls?
    Will this make TM to work?



  • March 10, 2012 at 5:10 pm

    I’ve got a DNS-323 and followed your tutorial.

    Everything works in OS X Lion…

    … but: my backup gets corrupted every single time. I’ve re-done the full backup for the third time now. Every time it works for a day or two and then tells me that my backup is corrupted and has to be done from scratch.

    Any ideas? I’d really appreciate any help.

Comments are closed.