Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Mounting an SMB directory with a space from command line on MAC OSX

Posted on 2014-09-20
2
Medium Priority
?
538 Views
Last Modified: 2014-09-29
I am having a problem mounting a SMB directory that contains a space from the command line I have tried all of the following (USERNAME, PASSWORD are the correct username and password in my case, XX.XX.XX.XX is the correct ip address, SHARENAME is the correct share name):

mount -t smbfs smb://USERNAME:PASSWORD@XX.XX.XX.XX/SHARENAME/My\ Shapes /tmp/share
mount -t smbfs smb://USERNAME:PASSWORD@XX.XX.XX.XX/SHARENAME/My\040Shapes /tmp/share

directories with no spaced work perfectly e.g. with above command this works perfectly:

mount -t smbfs smb://USERNAME:PASSWORD@XX.XX.XX.XX/SHARENAME/MyShapes /tmp/share
0
Comment
Question by:Javier_Arroyo
2 Comments
 
LVL 53

Expert Comment

by:strung
ID: 40334385
I think you need to put the share name in quotes if it includes spaces:

http://support.microsoft.com/kb/92781
0
 
LVL 9

Accepted Solution

by:
Lieven Embrechts earned 2000 total points
ID: 40334400
In place of any space in the share name, type: %20
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Connectivity using SMB Symptoms When connecting to Windows Server shares from a Mac you receive an error similar to "Connection failed because the original item could not be found"Authentication persistently fails to a Windows Server from a Mac wi…
Deploystudio is a system which can be used to deploy OSX clients and servers within the small/medium or large business environments. The system is built onto of the OSX Server NetBoot system and uses images & workflows as its core assets. While work…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question