Finding a path to a connected network share in Mac OS X

I would like to know where the network resource is mounted when the mount command fails as follows:

$ mkdir ~/share
$ mount_afp afp://server/share ~/share
mount_afp: the volume is already mounted

It looked promising ...

$ mount
... snip ...
afp_000000004oMw0q76003DF78u-1.2d000006 on /Volumes/share-1 (afpfs, nodev, nosuid, mounted by username)
afp_000000004oMw0q76003DF78u-2.2d000007 on /Volumes/share-2 (afpfs, nodev, nosuid, mounted by username)

There seems to be a way to map these long afp_000...numbers to URIs ... Is there a way to determine where the volume is mounted, given its URL: // URI?

I actually execute these commands using the Python subprocess module, so if there is a module or library that can do this, this will also be acceptable.

+5
source share
2 answers

Try / Volumes / PUBLIC

(Or, to get information about you after viewing the file using Finder)

What worked for me.

+11

, ? , /Network/Servers, fstab, autofs arg . // ...

+1

All Articles