Mount afp share over command line

April 29, 2010 – 1:15 pm

This is so useful to me that I have to repost it here, just in case it disappears.

# create a folder for the mount point
sudo mkdir /Volumes/music

# mount the disk
mount -t afp afp:/// /Volumes/music/

#refresh the finder for when you get back
disktool -r

# when you're done
sudo umount /Volumes/music

Found on macosxhints

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
  1. 2 Responses to “Mount afp share over command line”

  2. You can also do this via the ‘open’ command:

    open afp://

    The name of the share point will become the mount point under /Volumes

    Then you can umount:

    umount /Volumes/

    Sudo not required (in my limited testing).

    A.

    By Armando Rivera on May 19, 2010

  3. Seems as though items after “/” get stripped out here. ;)

    By Armando Rivera on May 19, 2010

Post a Comment