I have a shared drive called "music". It shows up in Finder without problems.
How do I access this from the command prompt on a Mac? I can't find it anywhere – is there a way to access it?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
If a network share is already mounted in the Finder, it will be accessible through
/Volumes in a shell, e.g. if your share is called "music", you'll find it under:
If you still need to mount it, you can actually mount it wherever you like — ideally not to
/Volumes, but for example on your desktop. You can use
mount_smbfs to do so. The complete syntax would be like this:
mount_smbfs //[domain;][user[:password]@]server[/share] ~/Desktop/music
In your case, if you have no special login and just
guest credentials, maybe the following is enough – when prompted for a password, you can just press Enter and skip it:
mkdir -p ~/Desktop/music mount_smbfs //host/music ~/Desktop/music
… and voilà:
If you have a user and password, you could use
//user@host/music, and then enter the password interactively.
To safely unmount it, just call the following:
I have to test this on my Mac, but this article explains using the smbclient to execute what you need.
Take a look over here.
In a nutshell:
$ smbclient -U user -I 192.168.0.105 -L //smbshare/