smithjw
Posts: 2
Joined: Thu Aug 23, 2012 6:31 am

Accessing AFP Shares Over Local Network

Thu Aug 30, 2012 11:45 am

So I'm having a wee bit of trouble at the moment. I'm trying to mount some shares from a Mac Mini on my home network but no matter what I try I cant seem to get it working. I've gone ahead and installed AFPFS

Code: Select all

sudo apt-get install afpfs-ng
This installs fine and seems to work until I want to mount a share. I've already set up some folders to mount the shares to:

Code: Select all

/Volumes/Movies/
/Volumes/TV/
When I run the command

Code: Select all

mount_afp afp://Username:Password@IPAddress/ShareName /MountLocation
I get this:

Code: Select all

The afpfs daemon does not appear to be running for uid 0, let me start it for you
Mounting 10.0.1.42 from Steve on /Volumes/Steve
Mounting of volume Steve of server Steve succeeded.
Which seems ok until I try to access the folder when I get a

Code: Select all

-bash: cd: /Volumes/Steve/: Permission denied
More errors if I try

Code: Select all

sudo cd /Volumes/Steve/
sudo: cd: command not found
Hopefully someone out there will be able to help. I know that there are other Distros that have native support for AFP but I've put a fair amount of time into my Rasbian image to start over with something new. Cheers

snelson48
Posts: 1
Joined: Thu Aug 30, 2012 9:13 pm

Re: Accessing AFP Shares Over Local Network

Fri Sep 07, 2012 9:13 pm

CODE: SELECT ALL
-bash: cd: /Volumes/Steve/: Permission denied
More errors if I try
CODE: SELECT ALL
sudo cd /Volumes/Steve/
sudo: cd: command not found

Hopefully someone out there will be able to help. I know that there are other Distros that have native support for AFP but I've put a fair amount of time into my Rasbian image to start over with something new. Cheers
-----------
Sounds like you have not set file permissions correctly. Make sure you have rw permsiion on the /Volumes and Steve directory. I live dangerously, so I would 'sudo chmod 777 /Volumes' and 'sudo chmod 777 /Volumes/Steve'. Then use /Volumes/Steve as your mount point.

I am doing much the same as you, mounting AFP shares from my Mac as server. I am sometimes unable to unmount a share and thus remained connected to my Mac until I reboot the rpi and restart the Mac. This is repeatable under the following condition. Play a video file from the server using either omxplayer or mplayer. After the video finishes, afp_client unmount /mountpoint returns no response from server, as well as afp_client status returns no response from server. The server is still active and I can continue to access files, but am unable to disconnect/unmount. This happens with video only if the video completes. If I stop the video before it completes the server connection is normal and I can do a status or unmount successfully. Weird.

Anyone else noticed this abnormal behavior?

PhillyNJ
Posts: 112
Joined: Sat Dec 29, 2012 4:07 am

Re: Accessing AFP Shares Over Local Network

Sat Dec 29, 2012 8:54 pm

I was having the same issue. After you mount the shared folder type:

Code: Select all

sudo su
then type:

Code: Select all

mount
This will display all your mounted disks. It will also give you the path to the mount e.g.

Code: Select all

/home/pi/mountname
Type:

Code: Select all

cd /home/pi/mountname
I am new to linux and having a ball with all the permissions :twisted:

PhillyNJ
Posts: 112
Joined: Sat Dec 29, 2012 4:07 am

Re: Accessing AFP Shares Over Local Network

Sat Dec 29, 2012 9:49 pm

Forgot to mention, if you use "sudo su" and it prompts you for the root password and fails, type:

Code: Select all

sudo gconftool-2  --type bool  --set  /apps/gksu/sudo-mode  true
I found this (can't remember where), but there seems to be a bug where the su password will always fails. This usually fixes it.

PhillyNJ
Posts: 112
Joined: Sat Dec 29, 2012 4:07 am

Re: Accessing AFP Shares Over Local Network

Sun Dec 30, 2012 2:50 pm

Thought this would be a good tutorial for the wiki. Comments, suggestions welcome http://elinux.org/Mounting_AFP_Shares_T ... al_Network

kjsorbo
Posts: 5
Joined: Mon Oct 10, 2016 4:15 pm

Re: Accessing AFP Shares Over Local Network

Mon Oct 17, 2016 8:22 pm

Any luck on automounting afp-share on boot?

dwbro1
Posts: 3
Joined: Wed Dec 07, 2016 2:10 am

Re: Accessing AFP Shares Over Local Network

Mon Dec 12, 2016 5:25 pm

PhillyNJ wrote:Thought this would be a good tutorial for the wiki. Comments, suggestions welcome http://elinux.org/Mounting_AFP_Shares_T ... al_Network
FYI
These directions on the wiki are very hard to follow and did not work for me.

Dale

mischievous.demon
Posts: 1
Joined: Tue Mar 21, 2017 4:05 pm

Re: Accessing AFP Shares Over Local Network

Tue Mar 21, 2017 4:11 pm

So I could never get this to work... But I just found the missing steps.

sudo apt-get install fuse afpfs-ng

mkdir ~/mntPoint
chmod og-rwx ~/mntPoint
mount_afp afp://user:password@mac/share /home/pi/mntPoint

Should work. No fiddiling around. No sudo except for the install. No gconftool-2. Works as designed for fuse.

falco_rocks
Posts: 1
Joined: Sat Jul 22, 2017 12:47 pm

Re: Accessing AFP Shares Over Local Network

Sat Jul 22, 2017 12:49 pm

mischievous.demon
you are a hero, works perfectly

Return to “Networking and servers”

Who is online

Users browsing this forum: No registered users and 17 guests