Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 03-16-2005, 04:22 AM   #1
Registered: Jan 2004
Location: On Planet Earth.
Distribution: Slackware 12
Posts: 244

Rep: Reputation: 30
small problem with smbfs mount


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.


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

The Share is where the problem is lying.

Old 03-16-2005, 05:33 AM   #2
LQ Newbie
Registered: Oct 2004
Location: Edinburgh
Distribution: Slackware 10.1, Ubuntu 5.10 'Breezy'
Posts: 28

Rep: Reputation: 15
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.

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.

mount -t smbfs \\ComputerName\The%20Share /mnt/share -o username=somebody password=something.
note both of these guesses are HIGHLY speculative.
Old 03-16-2005, 06:19 AM   #3
Registered: Dec 2003
Distribution: Slackware
Posts: 325

Rep: Reputation: 30
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 //\ 89/ /mnt/hd

If that doesn't work then its not the real share name or there is something weird with your network.
Old 03-16-2005, 08:32 AM   #4
Registered: Mar 2004
Distribution: Suse
Posts: 85

Rep: Reputation: 15
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.
Old 03-16-2005, 09:26 AM   #5
Registered: Dec 2003
Distribution: Slackware
Posts: 325

Rep: Reputation: 30
or if you use kde then you could use smb4k. nifty little proggy.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
problems with smbfs mount-point in /etc/fstab - "mount -a" works, but not at boottime MarkSide Linux - Software 4 11-20-2005 03:30 PM
mount.smbfs problem lewkh Red Hat 3 03-11-2005 11:39 AM
cannot mount smbfs flipboi Linux - Security 2 08-12-2004 09:18 AM
mount Smbfs problem lupus9537 Linux - Newbie 4 04-26-2004 08:33 AM
mount -t smbfs loganwva Linux - Networking 1 10-21-2003 11:02 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:01 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration