Automounting an AFP share for multiple users

I have a Promise SmartStor 4 drive RAID array that supports SMB, AFP, NFS and FTP. All work if I manually mount the drive, however I can't seem to get the drive to automount at boot time.

I tried adding it to the "login items" as some have suggested, however then each user gets a separate mount at /Volumes/PUBLIC-1, /Volumes/PUBLIC-2, etc. I need the mount point to be the same for each user though so this doesn't work for me.

I also tried adding the share to /etc/fstab as follows:


smartstor.local:/PUBLIC/Features /Volumes/Features url automounted,url==afp://USER:PASSWORD@smartstor.local:/PUBLIC/Features 0 0

however when I issue the automount command (as root) I get the following:

sh-3.2# automount -vc
automount: /net updated
automount: /home updated
automount: /Volumes/Features updated
automount: no unmounts

This seems to work, however if I log into a different account and then go to /Volumes I see the "Features" folder with the red circle-minus sign on it indicating I have no access. When I look at the permissions I see they are as follows:

drwx------@ 6 root wheel 264 Apr 3 13:37 Features

which makes sense that I wouldn't be able to access them from another account. Additionally, even though the volume shows up under /Volumes it doesn't show up in the Finder.



I guess what I want to know is if I'm going about this all wrong. What I want it for the network share to work like a Firewire or USB drive in that it will be always connected and available to all users at all times. It's important that it have the same mount point as it's main use is for storing movies that will be accessed by Plex (XBMC-like media center)

I need it to be automatic as others in my household don't know how to mount a drive and so I set up a non-admin account for Plex to run in that they can use.

Ideally I'd like to have the drive read only for all users other than mine, however since this is on a home network I don't really even need any security. It would be fine if the drive was read/write for all users.

From searching around various sites it seems that this is one area of the OS that really needs some simplification. If anyone can provide a link that explains how to accomplish this it would be greatly appreciated.

Mac Pro 2.8GHz 8 core, Mac OS X (10.6.7)

Posted on Apr 3, 2011 2:30 PM

Reply
2 replies

Apr 7, 2011 10:08 AM in response to TeenTitan

That worked perfectly, I had to add the following parameters I found on another forum:

-i,-s,-w=32768,-r=32768

but now it shows up in all accounts. Strangely enough I sometimes get a -36 error when copying files to the NFS share, however it's only happened a few times. I'm not sure if increasing or decreasing the read and write parameters will help or not.

Does anyone more familiar with NFS have any suggestions. The errors only seem to happen when I'm copying a relatively large (>2GB) file to the share. Small files seem to work fine.

There also seems to be a delay before the copy operation starts. Just a few seconds and only at the beginning. If I select 10 small files and drag them over to the NFS share there is a two second delay before the copy starts and then all 10 files are copied in about a second.

I'm not sure if any of this is important, other than the errors with large files, but thought it might help diagnose the issue.

Thanks!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Automounting an AFP share for multiple users

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.