Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
    
Where is it physically located? Another partition? Another computer? NAS? Online library? What's the path? –  Raystafarian Feb 29 '12 at 13:08

2 Answers 2

up vote 3 down vote accepted

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:

/Volumes/music

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à:

enter image description here

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:

umount ~/Desktop/music/
share|improve this answer
    
When I try this I get: mount_smbfs: server connection failed: Cannot allocate memory –  Rooster242 Aug 30 '13 at 3:25

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/
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.