How to adapt LS-QL for use with Time machine function on Mac OS version 10.7(Lion) or later

Disclaimer:The owner of ClipTags Blog will not be liable for any errors or omissions in this information nor for the availability of this information.
The owner will not be liable for any losses, injuries, or damages from the display or use of this information.

LS-QL was very useful NAS which was produced by Buffalo.

But Buffalo does not support Mac OS version 10.7 or later even today(2012/09/25).
http://www.buffalo-asia.com/support/macosxlion/index.html#networkhdd
I ‘m using Mac OS version 10.8(Mountain Lion) ,therefore I can’t make use of Time machine function with LS-QL Because of that.

So I decided to adapt LS-QL for use with Time machine function.

The procedure for adapting LS-QL is as follows.

  1. Update firmware to Ver1.11
  2. Create shared foloder for Time machine function
  3. Enable telnet function on LS-QL
  4. Install ipkg to LS-QL
  5. Install netatalk2.2.0 and libgcrypt to LS-QL
  6. Change netatalk settings and reboot LS-QL


1.Update firmware to Ver1.11

Update firmware to Ver1.11.
[for english]
http://www.buffalo-asia.com/cgi-bin/support/download.cgi?country=ph&to=ls_ql_r5
[for japanese]
http://buffalo.jp/download/driver/hd/ls-ql_fw.html


2.Create shared foloder for Time machine function which name is “Time-Machine”

Create shared foloer like this.


3.Enable telnet function on LS-QL

Put HDD into LS-QL’s slot 1 only (like this) and turn on power supply switch of LS-QL.

Install java on your local PC. You can download java from here. http://java.com/en/download/index.jsp

Download acp_commander.jar from here and put apc_commander.jar into C:\tmp on your local PC.
http://downloads.buffalo.nas-central.org/TOOLS/ALL_LS_KB_ARM9/ACP_COMMANDER/

Launch command prompt and enter command like this.

C:\tmp> [Java Installed Folder]\bin\java -jar C:\tmp\acp_commander.jar -t [ your LS-QL's IP] -o

ACP_commander out of the nas-central.org (linkstationwiki.net) project.

Used to send ACP-commands to Buffalo linkstation(R) LS-PRO.

WARNING: This is experimental software that might brick your linkstation!
Using random connID value = AFFADA612199
Using target: LINKSTATION/xx.xx.xx.xx
Starting authentication procedure…
Sending Discover packet…
Found: LINKSTATION (/xx.xx.xx.xx) LS-QL(NINTOKU) (ID=00640) mac: xxxxxxxxx Firmware= 1.110 Key=23D777ED
Trying to authenticate EnOneCmd… ACP_STATE_OK
start telnetd…
Reset root pwd…

You can now telnet to your box as user ‘root’ providing no / an empty password.

Then enter following commands.

C\:tmp> telnet [your LS-QL's IP]
BUFFALO INC. LinkStation series
LINKSTATION login: root
Password: [push Enter key]

root@LINKSTATION:~# passwd
Changing password for root
Enter the new password (minimum of 5, maximum of 127 characters)
Please use a combination of upper and lower case letters and numbers.
New password:[Your new root password]
Re-enter new password:[Your new root password]
Password changed.
root@LINKSTATION:~# mkdir -p /usr/local/src/backup
root@LINKSTATION:~#  cp -p /etc/init.d/rcS /usr/local/src/backup
root@LINKSTATION:~# vi /etc/init.d/rcS
Change as follows.


/usr/local/bin/share_delete.sh &

# Optware setup
[ -x /etc/init.d/rc.optware ] && /etc/init.d/rc.optware start

exit 0



/usr/local/bin/share_delete.sh &
#start telnet
/usr/sbin/telnetd &

# Optware setup

[ -x /etc/init.d/rc.optware ] && /etc/init.d/rc.optware start

exit 0


4.Install ipkg to LS-QL
root@LINKSTATION:~# mkdir -p /usr/local/src/ipkg
root@LINKSTATION:~# cd /usr/local/src/ipkg
root@LINKSTATION:~# wget http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/ls-mvkw-bootstrap_1.2-7_arm.xsh
Connecting to ipkg.nslu2-linux.org (140.211.169.161:80)
ls-mvkw-bootstrap_1. 100% |*******************************| 246k 00:00:00 ETA
root@LINKSTATION:/usr/local/src/ipkg# ls
ls-mvkw-bootstrap_1.2-7_arm.xsh
root@LINKSTATION:/usr/local/src/ipkg# chmod 755 ls-mvkw-bootstrap_1.2-7_arm.xsh
root@LINKSTATION:/usr/local/src/ipkg# sh ls-mvkw-bootstrap_1.2-7_arm.xsh
Optware Bootstrap for ls-mvkw.
Extracting archive… please wait
bootstrap/
bootstrap/bootstrap.sh
bootstrap/ipkg-opt.ipk
bootstrap/ipkg.sh
1244+1 records in
1244+1 records out
bootstrap/optware-bootstrap.ipk
bootstrap/wget.ipk
Error: CPU not Marvell Kirkwood, probably wrong bootstrap.xsh

root@LINKSTATION:/usr/local/src/ipkg# vi /usr/local/src/ipkg/bootstrap/bootstrap.sh

Change The 21st line as follows.

if ! grep Feroceon-KW /proc/cpuinfo >/dev/null 2>&1; then



#if ! grep Feroceon-KW /proc/cpuinfo >/dev/null 2>&1; then
if ! grep Feroceon /proc/cpuinfo >/dev/null 2>&1; then

root@LINKSTATION:/usr/local/src/ipkg# sh /usr/local/src/ipkg/bootstrap/bootstrap.sh

Creating temporary ipkg repository…
Installing optware-bootstrap package…
Unpacking optware-bootstrap.ipk…Done.
Configuring optware-bootstrap.ipk…Setting up ipkg arch-file
Modifying /etc/init.d/rcS
Done.
Installing ipkg…
Unpacking ipkg-opt.ipk…Done.
Configuring ipkg-opt.ipk…Done.
Removing temporary ipkg repository…
Installing wget…
Installing wget (1.12-2) to root…
Configuring wget
Successfully terminated.
Creating /opt/etc/ipkg/cross-feed.conf…
Setup complete.


5.Install netatalk2.2.0 and libgcrypt to LS-QL
root@LINKSTATION:/mnt/array1/share/ipkg#ipkg install netatalk

Installing netatalk (2.2.0-2) to root…
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/netatalk_2.2.0-2_arm.ipk
package netatalk suggests installing libgcrypt
Installing libdb52 (5.2.28-1) to root…
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/libdb52_5.2.28-1_arm.ipk
Configuring libdb52
Configuring netatalk
Successfully terminated.


root@LINKSTATION:/mnt/array1/share/ipkg# ipkg install libgcrypt

Installing libgcrypt (1.5.0-1) to root…
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/libgcrypt_1.5.0-1_arm.ipk
Installing libgpg-error (1.10-1) to root…
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/libgpg-error_1.10-1_arm.ipk
Configuring libgcrypt
Configuring libgpg-error
Successfully terminated.

 root@LINKSTATION:/mnt/array1/share/ipkg# 


 6.Change netatalk settings and reboot LS-QL

Download following files to your local PC
netatalk.zip
afpd.zip
atalkd.zip
atalk.zip

Put those files to LS-QL by FTP and move them to /mnt/array1/share .

Then enter following commands.
root@LINKSTATION:# cp -p /opt/etc/netatalk/afpd.conf /usr/local/src/backup
root@LINKSTATION:# cp -p /opt/etc/netatalk/netatalk.conf /usr/local/src/backup
root@LINKSTATION:# cp -p /opt/etc/netatalk/atalkd.conf /usr/local/src/backup
root@LINKSTATION:# cp -p /etc/init.d/atalk.sh /usr/local/src/backup 

root@LINKSTATION:# cd /opt/etc/netatalk
root@LINKSTATION:/opt/etc/netatalk# unzip /mnt/array1/share/netatalk.zip
root@LINKSTATION:/opt/etc/netatalk# unzip /mnt/array1/share/afpd.zip 
root@LINKSTATION:/opt/etc/netatalk# unzip /mnt/array1/share/atalkd.zip 
root@LINKSTATION:/opt/etc/netatalk# chown root:root *.conf

root@LINKSTATION:/opt/etc/netatalk# cd /etc/init.d
root@LINKSTATION:/etc/init.d#  unzip /mnt/array1/share/atalk.zip
root@LINKSTATION:/etc/init.d# chmod 755 atalk.sh
root@LINKSTATION:/etc/init.d# chown root:root atalk.sh
root@LINKSTATION:/etc/init.d# vi /etc/init.d/rcS
Change as follow.

/usr/local/bin/share_delete.sh &

# Optware setup
[ -x /etc/init.d/rc.optware ] && /etc/init.d/rc.optware start

exit 0



/usr/local/bin/share_delete.sh &
#start telnet
/usr/sbin/telnetd &

#start netatalk
/etc/init.d/atalk.sh start &

# Optware setup
[ -x /etc/init.d/rc.optware ] && /etc/init.d/rc.optware start

exit 0

Then reboot your LS-QL

root@LINKSTATION:/etc/init.d# reboot

 

 

5 thoughts on “How to adapt LS-QL for use with Time machine function on Mac OS version 10.7(Lion) or later

  1. Can’t get netatalk to start properly after following install instructions. Also, looks like the install directory is going to /mnt/disk1 rather than /mnt/array1 (not sure if this make a difference. Also seems like the files in /opt/etc get removed after reboot. I’m a newb, so any help would be greatly appreciated. Thank you!

    atalk start output –>

    Starting AppleTalk services: configure atalkd atalk_name=
    load_info ItemValue = off
    LoadConfFileString:key=[ad_dns] not found in /etc/melco/info.
    file:/etc/atalk/AppleVolumes.default
    file:/etc/pam.d/netatalk
    file:/etc/atalk/afpd.conf
    file:/etc/atalk/atalkd.conf
    /etc/init.d/atalk.sh: line 67: /opt/etc/netatalk/AppleVolumes.default: No such file or directory
    /etc/init.d/atalk.sh: line 69: /opt/sbin/cnid_metad: No such file or directory
    /etc/init.d/atalk.sh: line 74: /opt/sbin/afpd: No such file or directory
    Starting Bonjour services: done

    <–

    • Thank you for letting me know your situation.

      I think you could not mount /mnt/disk1/.optware as /opt for some reason.
      Please try to execute following commands after reboot LS-QL.
      And would you mind giving me your feedback?

      root@LINKSTATION:# cd /
      root@LINKSTATION:/# /etc/init.d/rc.optware start
      root@LINKSTATION:/# /etc/init.d/atalk.sh start

      • Thanks for helping me out on this. I don’t have a rc.optware under /etc/init.d, rather it is installed as /mnt/disk1/.optware/etc/rc.optware. I ran the start command you suggested from that location, then ran the start command for atalkd which yields the following output:

        Starting AppleTalk services: configure atalkd atalk_name=_NAS
        load_info ItemValue = off
        LoadConfFileString:key=[ad_dns] not found in /etc/melco/info.
        file:/etc/atalk/AppleVolumes.default
        file:/etc/pam.d/netatalk
        file:/etc/atalk/afpd.conf
        file:/etc/atalk/atalkd.conf
        /etc/init.d/atalk.sh: line 67: /opt/etc/netatalk/AppleVolumes.default: No such file or directory
        /etc/init.d/atalk.sh: line 69: /opt/sbin/cnid_metad: No such file or directory
        /etc/init.d/atalk.sh: line 74: /opt/sbin/afpd: No such file or directory
        Starting Bonjour services: done

        • Please try to execute following commands after reboot LS-QL.

          root@LINKSTATION:# cd /
          root@LINKSTATION:# mkdir -p /opt
          root@LINKSTATION:/# mount -o bind /mnt/disk1/.optware /opt
          root@LINKSTATION:/# /etc/init.d/atalk.sh start