Cannot mount afp share from Terminal

I'm having some issues mapping ann afp share from the terminal.


This is what I'm trying:


sudo mount_afp -o nobrowse afp://username:password@servername/Updates (the share I want to map)


It comes back The mountpoint afp://username:password@servername/Updates does not exist, realpath returns 2



I can take the path it says doesn't exist, go to Finder, click on the Go option, copy & paste that exact path from terminal into the Server Address and it goes right there. What am I missing???


I want the -o nobrowse in there because I don't want it to appear on the desktop in case someone was wondering. I have also tried using the IP address of the server instead of the server name and it comes back with the same error, yet when I copy & paste that path into the Server Address window of Finder it also works. I'm completely lost as to why this isn't working.

MacBook, OS X Mavericks (10.9.1)

Posted on Mar 3, 2014 8:25 AM

Reply
8 replies

Mar 3, 2014 7:30 PM in response to cscs_panthers

You could try:


open afp://username:password@servername/Updates


which should mount the in /Volumes as you seem to want to do.


If you want to use mount_afp, then you need to have a 2nd argument on the command line that specifies where you want to mount the file system, as etresoft says


sudo mkdir -p /mnt

sudo mount_afp -o nobrowse afp://username:password@servername/Updates /mnt


as an example

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.

Cannot mount afp share from Terminal

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