Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Mounting shared Windows folder using mount command not working

Hi,
I am trying to mount a shared folder on a Windows XP machine to my Mac. Its a snap to use the finder GUI. However I need to use the mount command in a script file. This is the command I type in terminal:
mount -t smbfs //workshop2/ORE /volumes/ORE

I have created the directory /volumes/ORE with mkdir - OK.

After the mount command is entered I am prompted with a password. I enter the password and the response is:
mount_smbfs: mount error: /Volumes/ORE: Broken pipe

I have checked the availability of the shared folder with:
smbclient -L //workshop2/

ORE is listed under the Sharename heading.
If I use finder to mount the shared folder and then type mount to list the file systems, ORE is mounted to /volumes/ORE-1:
//GUEST:@workshop2:139/ORE on /Volumes/ORE-1 (smbfs, nodev, nosuid, mounted by Jeff)

How do I get the mount command by itself to do this?

Jeff.

MacBook, Mac OS X (10.5.8)

Posted on Nov 12, 2009 11:29 PM

Reply
Question marked as Best reply

Posted on Nov 13, 2009 12:04 AM

Hi Jeff,
The usage of mount_smbfs reads like this:
usage: mount_smbfs [-Nh] [-d mode] [-f mode]
//[domain;][user[:password]@]server[/share] path

I don't know much about mounting windows shares but maybe you can try if one of the following work:
mount -t smbfs //GUEST:@workshop2:139/ORE /volumes/ORE
mount -t smbfs smb://workshop2/ORE /volumes/ORE

or a combination of both:
mount -t smbfs smb://GUEST:@workshop2:139/ORE /volumes/ORE

If neither of these work then perhaps you will have better luck asking in the [Networking and the Web|http://discussions.apple.com/forum.jspa?forumID=733] forums.
Cheers.
3 replies
Question marked as Best reply

Nov 13, 2009 12:04 AM in response to Jeffrey Young

Hi Jeff,
The usage of mount_smbfs reads like this:
usage: mount_smbfs [-Nh] [-d mode] [-f mode]
//[domain;][user[:password]@]server[/share] path

I don't know much about mounting windows shares but maybe you can try if one of the following work:
mount -t smbfs //GUEST:@workshop2:139/ORE /volumes/ORE
mount -t smbfs smb://workshop2/ORE /volumes/ORE

or a combination of both:
mount -t smbfs smb://GUEST:@workshop2:139/ORE /volumes/ORE

If neither of these work then perhaps you will have better luck asking in the [Networking and the Web|http://discussions.apple.com/forum.jspa?forumID=733] forums.
Cheers.

Nov 15, 2009 5:44 PM in response to hungryjoe

Thanks. The first solution worked. I just needed the 'GUEST:@' part inserted into my command. I think this tells it to connect as GUEST with no password.
However I had problems mounting a shared folder that had a space in its name:

*mount -t smbfs //GUEST:@workshop2:139/TuneMap\ Data /volumes/TuneMap\ Data*
*mount_smbfs: failed to intitialize the smb library: Invalid argument*

I solved this by changing the shared name to TuneMap_Data.

Jeff.

Nov 16, 2009 1:17 AM in response to Jeffrey Young

I think this tells it to connect as GUEST with no password.

Yes, that's exactly what it does.
mount -t smbfs //GUEST:@workshop2:139/TuneMap\ Data /volumes/TuneMap\ Data

I'm not sure but perhaps enclosing the share name within double quotes might help as well.
mount -t smbfs //GUEST:@workshop2:139/"TuneMap Data" /volumes/TuneMap\ Data

However if you've already changed the share name it doesn't matter. Also I for one think that it's better not to have spaces in names.

Mounting shared Windows folder using mount command not working

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.