Friday, 7 August 2009

Mac Tip: Mount an afp drive at the command line

Sometimes I ssh into my desktop Mac from home and want to access the network, but to do this I need to mount the file system. In this case it is an AFP. It took me a little while to figure this out so I am putting it here for future reference. 

mkdir /Volumes/drive_name
mount_afp afp://USERNAME:PASSWORD@SERVER/drive_name /Volumes/drive_name/

The thing I could not get right originally was putting in the username and password, which I assumed it would know as my user name is the same on my laptop at home and my desktop, but any way this works fine. 

No comments:

Post a Comment