I have a NTFS volume mounted on my OS X Server box. I'd like to access it over the net using AFP. It's not showing up as an available AFP share. What gives?
The NTFS volume mounts fine on the server:
admin@os-x-server$ sudo mount_smbfs //user@windows-fileserver/SHARE ~/ntfsdir
Password: os-x-server-password
Password: windows-password
admin@os-x-server$ ls -l ~ | grep ntfsdir
drwxr-xr-x 1 admin staff 16384 Dec 31 1969 ntfsdir
admin@os-x-server$ ls -l ~/ntfsdir
drwxr-xr-x 1 admin staff 16384 Feb 23 05:27 dir1
drwxr-xr-x 1 admin staff 16384 Jun 3 09:42 dir2
drwxr-xr-x 1 admin staff 16384 Apr 15 16:24 dir3
.
.
.
So it's mounting fine and the permissions look okay. In the Workgroup Manager for the OS X Server, ~/ntfsdir is set as a share point, owner is given read and write access, and AFP is enabled for that share. But when I try to mount the AFP share on my local machine, I get the following error:
user@os-x-client$ sudo mount_afp afp://admin:password@os-x-server/ntfsdir ~/afpdir
Password: os-x-client-password
mount_afp: the mount flags are 0000 the altflags are 0020
mount_afp: AFPMountURL returned error -5019, errno is 2
user@os-x-client$
Google says that error -5019 means bad share name. And indeed, when I use Connect to Server... from the the Finder on the client machine, the share ntfsdir doesn't show up, even though it's enabled in the Workgroup Manager, AFP access is on, and owner has full read/write permissions to the share (both in AFP share config and in the server's filesystem itself).
Even weirder, the I can't even mount the share over AFP from within the server itself! I get the following error:
admin@os-x-server$ sudo mount_afp afp://admin:password@localhost/ntfsdir ~/testdir
Password: os-x-server-password
mount_afp: the mount flags are 0000 the altflags are 0020
mount_afp: AFPMountURL returned error -5019, errno is 32
admin@os-x-server$
So for some reason this share is not being advertised properly. I've tried making other test AFP shares, and they work fine... it must have something to do that I'm trying to share a directory that is itself a mount point for a mounted NTFS share.
I don't see why the AFP service even knows that ~admin/ntfsdir (on the server) is an NTFS mounted share... seems like it should just be another directory in the filesystem, from its perspective. Unless it's a permissions thing that I'm missing, although, like I said, the permissions for ~admin/ntfsdir look good; I can browse the mounted NTFS volume on the server through the command line, etc.
Any clever suggestions for me?
posted by disclaimer at 5:27 PM on June 15, 2008