Netatalk outdated with Mac OS X Lion 10.7

Post Reply
JamieD360
Posts: 8
Joined: Fri Jun 10, 2011 8:56 am

Netatalk outdated with Mac OS X Lion 10.7

Post by JamieD360 » Sat Jun 11, 2011 12:09 pm

This NAS runs a version of Netatalk which is outdated when it comes to Mac OS X Lion, sadly.

This doesn't stop you from mounting AFP shares, but it does break Time Machine support :(

Time Machine will complain that the AFP sever does not support the required services (TM Lock Stealing / Server Reply Cache)

The solution is updating Netatalk on the NAS, to version 2.2 which is currently in beta, but does support TM Lock Stealing / Server Reply Cache.

As for Iomega releasing new firmware for Lion support, we could be waiting a very long time.


In the meantime:
Would it be possible to build and install Netatalk 2.2 beta 4 onto this NAS?

The project page is here:
http://netatalk.sourceforge.net/

It would need compiling for the correct CPU architecture of this NAS. (Plus all dependencies)

I'm not the best when it comes to these things. I do have experience in programming/compiling Objective-C. But this is slightly out of my depth.

Is there anyone here that has the expertise to do this? Or is it too big of a job?

Mijzelf
Posts: 6199
Joined: Mon Jun 16, 2008 10:45 am

Re: Netatalk outdated with Mac OS X Lion 10.7

Post by Mijzelf » Sat Jun 11, 2011 5:44 pm

Did you already make a backup of your system partition? In that case you can just try.

On the HomeMedia v1 a compiler is already installed. So to install the package you can:

Code: Select all

wget http://url/to/package.tar.gz
tar -xzf package.tar.gz
cd package
./configure
make
su
make install
And if your box is completely screwed up (unlikely), you put back your backup.

JamieD360
Posts: 8
Joined: Fri Jun 10, 2011 8:56 am

Re: Netatalk outdated with Mac OS X Lion 10.7

Post by JamieD360 » Sat Jun 11, 2011 6:50 pm

I'm not sure a compiler is present. This is the Cloud Edition. I get this when i run ./configure

Code: Select all

checking build system type... armv6l-unknown-linux-gnu
checking host system type... armv6l-unknown-linux-gnu
checking target system type... armv6l-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking for gawk... (cached) gawk
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

First though, how would i make a backup of the system partition?
Just backup /mnt/system with tar?

Apologies if i sound like i don't know what i'm talking about. Like i said i'm not totally up-to-speed with linux based stuff yet. But i can make sense of it coming from iPhone programming. :)

Mijzelf
Posts: 6199
Joined: Mon Jun 16, 2008 10:45 am

Re: Netatalk outdated with Mac OS X Lion 10.7

Post by Mijzelf » Sun Jun 12, 2011 11:08 am

You are right, there is no compiler. In a perfect world you could install it by executing

Code: Select all

apt-get update
apt-get install gcc
But maybe apt-get is crippled, as on the HMv1.

But before poking around, make a backup. I must admit that it's not clear to me how the system is build up. The wiki tells about 2 partitions, 3 logical volumes and some loop devices. Assuming that the almost 2TB data partition (and logical volume) won't contain any system data, I'd just backup partition 1. Because everything on mounted on each other, you should first isolate it:

Code: Select all

mkdir /tmp/sda1
mount -o ro /dev/sda1 /tmp/sda1
And now backup it, using tar:

Code: Select all

cd /tmp/sda1
tar czf /mnt/pools/A/A0/sda1.tar.gz *
(Have a look if /mnt/pools/A/A0 is indeed your data partition.)
When everything goes wrong, you can take out the drive out, reformat sda1 (what is the current filesystem?) and extract the tar file to it.

JamieD360
Posts: 8
Joined: Fri Jun 10, 2011 8:56 am

Re: Netatalk outdated with Mac OS X Lion 10.7

Post by JamieD360 » Sun Jun 12, 2011 11:54 am

Yes, apt-get is indeed crippled.

But first, backing up..
mkdir /tmp/sda1
mount -o ro /dev/sda1 /tmp/sda1
Gave me:
mount: unknown filesystem type 'mdraid'
:?
So, mdraid.

Mijzelf
Posts: 6199
Joined: Mon Jun 16, 2008 10:45 am

Re: Netatalk outdated with Mac OS X Lion 10.7

Post by Mijzelf » Sun Jun 12, 2011 1:18 pm

Can you post the outputs of:

Code: Select all

cat /proc/mounts
cat /proc/mdstat
losetup -a
cat /proc/cmdline

JamieD360
Posts: 8
Joined: Fri Jun 10, 2011 8:56 am

Re: Netatalk outdated with Mac OS X Lion 10.7

Post by JamieD360 » Sun Jun 12, 2011 3:43 pm

Code: Select all

sh-3.2# cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root.old /initrd ext2 rw,relatime,errors=continue 0 0
none / tmpfs rw,relatime,size=51200k,nr_inodes=31939 0 0
/dev/md0_vg/BFDlv /boot ext2 rw,noatime,errors=continue 0 0
/dev/loop0 /mnt/apps ext2 ro,relatime 0 0
/dev/loop1 /etc ext2 rw,sync,noatime 0 0
/dev/loop2 /oem cramfs ro,relatime 0 0
proc /proc proc rw,relatime 0 0
none /proc/bus/usb usbfs rw,relatime 0 0
none /sys sysfs rw,relatime 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620 0 0
tmpfs /mnt/apps/lib/init/rw tmpfs rw,nosuid,relatime,mode=755 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0
/dev/mapper/md0_vg-vol1 /mnt/system xfs rw,noatime,attr2,inode64,logbufs=8,noquota 0 0
/dev/mapper/3146c720_vg-lv66f3a26a /mnt/pools/A/A0 xfs rw,noatime,attr2,logbufs=8,noquota 0 0

Code: Select all

sh-3.2# cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] 
md1 : active linear sda2[0]
      955758208 blocks super 1.0 64k rounding
      
md0 : active linear sda1[0]
      20971456 blocks 64k rounding
      
unused devices: <none>

Code: Select all

sh-3.2# losetup -a
/dev/loop0: [fd00]:49154 (/sysroot/boot/images/apps)
/dev/loop1: [fd00]:49155 (sysroot/boot/images/config)
/dev/loop2: [fd00]:49156 (/sysroot/boot/images/oem)

Code: Select all

sh-3.2# cat /proc/cmdline
root=/dev/md0 console=ttyS0,115200 elevator=cfq mem=256M poweroutage=yes mac_adr=0x00,0xd0,0xb8,0x11,0xc4,0x5f
Thanks ;)

Mijzelf
Posts: 6199
Joined: Mon Jun 16, 2008 10:45 am

Re: Netatalk outdated with Mac OS X Lion 10.7

Post by Mijzelf » Sun Jun 12, 2011 6:15 pm

Boy, this is complex. According to your dumps sda1 is assembled to raid array md0. This is also the rootfs, according to the cmdline. But /dev/md0 is nowhere mounted, and there is no filesystem with the right size.

You can try:

Code: Select all

mkdir /tmp/sda1
mount -o ro /dev/md0 /tmp/sda1
cd /tmp/sda1
tar czf /mnt/pools/A/A0/sda1.tar.gz *
But it is possible that it will give a ridiculous big tarball. md0 seems to contain several filesystems.

JamieD360
Posts: 8
Joined: Fri Jun 10, 2011 8:56 am

Re: Netatalk outdated with Mac OS X Lion 10.7

Post by JamieD360 » Sun Jun 12, 2011 7:19 pm

I tried mounting /dev/md0 too. Same error.
The filesystem seems to be set out really strangely.

I'm probably better off waiting (and hoping) for a firmware update from Iomega themselves.
I've submitted a feature request, i hope they take notice.

I could always try cross-compiling the package on my Mac?

Mijzelf
Posts: 6199
Joined: Mon Jun 16, 2008 10:45 am

Re: Netatalk outdated with Mac OS X Lion 10.7

Post by Mijzelf » Tue Jun 14, 2011 9:24 am

JamieD360 wrote:I tried mounting /dev/md0 too. Same error.
The filesystem seems to be set out really strangely.
You could do a direct dump, but the disadvantage it that it will give a bigger file (unoccupied space is also stored), and you can only restore to a partition which is at least as big:

Code: Select all

dd if=/dev/sda1 | gzip -9 >/mnt/pools/A/A0/sda1.gz
I could always try cross-compiling the package on my Mac?
Sure. Crosscompiling itself will never hurt, the part which can give problems is the installing, or better, the uninstalling in case of problems. But if you carefully backup each file you overwrite, that won't be a problem too.

Neepawa
Posts: 1
Joined: Tue Jul 19, 2011 4:25 pm

Re: Netatalk outdated with Mac OS X Lion 10.7

Post by Neepawa » Tue Jul 19, 2011 4:29 pm

How would I go about updating the Netatalk component on a non-CE NAS? I have apt-get working, but I'm not sure which of the available packages is correct: http://packages.debian.org/wheezy/netatalk

Post Reply