Mount AFP volumes from the terminal

Dec 02, '01 01:02:05AM

Contributed by: dreness

This one's really handy.

First make a directory in /Volumes for the volume you wish to mount, say idisk, for example. You could mount it anywhere, but /Volumes is the logical spot for it:

sudo mkdir /Volumes/idisk
then mount the volume...
sudo mount -t afp afp:// /Volumes/idisk
That's it! To unmount, use the umount command:
sudo umount /Volumes/idisk
[Editor's note: This can be very useful when you connect remotely and then realize you need to put something on your iDisk.]

Comments (13)

Mac OS X Hints