LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Mounting Windows share with a space in the share name (https://www.linuxquestions.org/questions/linux-networking-3/mounting-windows-share-with-a-space-in-the-share-name-734197/)

Suncoast 06-19-2009 10:09 AM

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

Suncoast 06-19-2009 10:15 AM

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.


All times are GMT -5. The time now is 10:29 PM.