LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-19-2009, 10:09 AM   #1
Suncoast
Member
 
Registered: Apr 2009
Location: Largo, Florida
Distribution: Slackware
Posts: 208

Rep: Reputation: 35
Mounting Windows share with a space in the share name


How do I mount Windows shares that contain a space in the name?

This works on shares with no spaces in name -

mount -t cifs //servername/Sharename1 /media/folder1 -o username=name

This does not - Note the space in the Windows Server 2003 share name -

mount -t cifs //servername/Sharename 2 /media/folder2 -o (and so on.)
-or-
mount -t cifs //172.16.1.10/Sharename 2 /media/folder2 -o (and so on.)

All I get is a help screen typical of a syntax error. Does this mean I can't mount shares that have a space in the name? Is there a work-around?

Thanks
 
Old 06-19-2009, 10:15 AM   #2
Suncoast
Member
 
Registered: Apr 2009
Location: Largo, Florida
Distribution: Slackware
Posts: 208

Original Poster
Rep: Reputation: 35
Seems I didn't search well enough before posting. After posting, the system pointed out a thread with the answer. Enclose the share with quotes.

mount -t cifs "//servername/sharename 1" /media/folder1 --and so on.

Thanks anyway.
 
  


Reply


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
mounting a windows share that contains spaces j-me Linux - Server 5 04-30-2009 04:13 PM
mount windows share export to samba share -> improve network performance tuning newuser77 Linux - Server 1 07-23-2008 11:28 AM
Mounting Windows share leupi Linux - Server 10 04-12-2008 08:36 AM
samba mounting windows share gunnix Linux - Software 6 06-25-2006 06:47 PM
Mounting hidden windows share ashjam10 Linux - Networking 1 11-12-2005 10:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:03 PM.

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