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
 

2 Responses to Mount afp share over command line

  1. Armando Rivera says:

    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.

  2. Armando Rivera says:

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

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>