LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   small problem with smbfs mount (https://www.linuxquestions.org/questions/slackware-14/small-problem-with-smbfs-mount-302203/)

synapse 03-16-2005 04:22 AM

small problem with smbfs mount
 
Hi

I am trying to mount a windows share that has a name with a space within it, how do i go about it without removing the space.

ie.

mount -t smbfs \\ComputerName\The Share /mnt/share -o username=somebody password=something.

The Share is where the problem is lying.

Thanx

NoXiS 03-16-2005 05:33 AM

I don't use SMB much yet (wireless network is sooo slow), but in normal pathnames you can use a space by 'backslashing' it. Maybe you have tried this already, but just in case. (note the extra slash after 'the').....mmmm I'm starting to feel a bit dumb with this one. It could work I suppose if you could use forward slashes (I changed the slashes around to illustrate) in the rest of the path.... nah maybe try the second idea.

Code:

mount -t smbfs //ComputerName/The\ Share /mnt/share -o username=somebody password=something.
stick in a %20.... hey it's just an educated guess, worth a quick shot though.

Code:

mount -t smbfs \\ComputerName\The%20Share /mnt/share -o username=somebody password=something.
note both of these guesses are HIGHLY speculative.

Namaseit 03-16-2005 06:19 AM

Actually a "\" should be use just before the space.

On my server the name of the share is:
Vault 89

So to mount it I type:
mount -t smbfs //10.0.0.8/Vault\ 89/ /mnt/hd

If that doesn't work then its not the real share name or there is something weird with your network.

AhYup 03-16-2005 08:32 AM

Yeah but
 
qoutes work as well and its easier than all of the /

mount -t smbfs \\ComputerName\"The Share" /mnt/share -o username=somebody password=something.

That should work fine.

Namaseit 03-16-2005 09:26 AM

or if you use kde then you could use smb4k. nifty little proggy.


All times are GMT -5. The time now is 07:14 PM.