nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Linux Mount CIFS shares that contain spaces in their share name

This is a discussion on Linux Mount CIFS shares that contain spaces in their share name within the Computer Networking and Internet/broadband forums, part of the The Lounge category; Hi, I'm fairly new to Linux and am having a little problem. On our network we have a NAS running ...


Go Back   nixCraft Linux Forum > The Lounge > Computer Networking and Internet/broadband

Linux answers from nixCraft.


Computer Networking and Internet/broadband Talk about computer networking, wireless networking at work or home. Share tips related to networking and broadband Internet.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-03-2009, 06:01 AM
Junior Member
User
 
Join Date: Mar 2009
OS: PCLinuxOS
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
stanners is on a distinguished road
Question Linux Mount CIFS shares that contain spaces in their share name

Hi,
I'm fairly new to Linux and am having a little problem. On our network we have a NAS running the CIFS protocol. Using MOUNT, I'm able to mount some of the shares on the CIFS box, however I don't seem to be able to mount shares that contain spaces in their share name, ie

/share/media works
/share/test media doesn't want to mount

I'm using the following command


# mount -t cifs //server/test media -o username=vivek,password=myPassword /mnt/server

I've tried encapsulating in quotes, but nothing seems to work.
Reply With Quote
  #2 (permalink)  
Old 12-03-2009, 08:16 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 244 Times in 183 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Quote:
Originally Posted by stanners View Post
# mount -t cifs //server/test media -o username=vivek,password=myPassword /mnt/server
If you have a space in your path, you should replace the space with '\040' like so:
Code:
 mount -t cifs //server/test\040media -o username=vivek,password=myPassword /mnt/server
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
Reply

Tags
cifs , fstab , linux , samba , windows


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Grep regular expresion with square brackets and blank spaces sebelk Shell scripting 1 12-11-2008 06:33 PM
read not preserving double spaces bincode1010 Shell scripting 2 26-09-2008 04:49 AM
Automatic Mount of Windows Share bayvista Networking, Firewalls and Security 0 21-02-2008 11:07 AM
Linux Shell script to mount remote windows share angelus_kit Shell scripting 2 06-09-2007 07:18 PM
Share Files Using Linux Groups dfU Linux software 1 23-01-2006 12:08 AM


All times are GMT +5.5. The time now is 05:48 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38