LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-29-2010, 10:46 AM   #1
grob115
Member
 
Registered: Oct 2005
Posts: 542

Rep: Reputation: 32
Mount a Windows path


Am trying to do a mount of a Windows folder onto Linux. The path has some spaces in it like //hostname/path 1/path 2/path 3. Anyone know how I should handle this?
 
Old 12-29-2010, 11:01 AM   #2
bicpen
LQ Newbie
 
Registered: Dec 2010
Posts: 7

Rep: Reputation: 0
You can use an 'escape' character in the string
for example:

//hostname/path\ to\ folder/one/two/three\ and\ four


before each space i've put a slash, this is an escape character.
 
Old 12-29-2010, 11:16 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
You can't mount folders, only partitions and filesystem-containers, such as .iso-files, can be mounted.
 
Old 12-29-2010, 11:19 AM   #4
grob115
Member
 
Registered: Oct 2005
Posts: 542

Original Poster
Rep: Reputation: 32
Tried that but it doesn't work and was given an error. Also tried as per the instructions on this website using \40. This returned the command entered 3 times. When I then check using "df -k" I can see the mount path but only the section up till the first "\".
 
Old 12-29-2010, 11:32 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Please post the commands you are using and the error messages you get.
 
Old 12-29-2010, 12:56 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,680

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
As stated you can only mount using the name of the share you created on the windows computer. You can not mount subdirectories.

like:
mount -t cifs "//hostname/share name" /media/windowshare
 
Old 12-30-2010, 06:10 AM   #7
bicpen
LQ Newbie
 
Registered: Dec 2010
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by TobiSGD View Post
You can't mount folders, only partitions and filesystem-containers, such as .iso-files, can be mounted.
i guess i should have been more specific :P

The whole escape char thing can be used in other paths too, i.e. if you have spaces in a local path.


this page: http://www.cyberciti.biz/tips/how-to...der-linux.html

gives some examples of some of the options you can use for a cifs/smb mount in linux

can you describe the error you receive ?
 
  


Reply



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
finding mount point path for Windows CIFS volume visible in Ubuntu file browser knighttof3 Linux - Newbie 6 01-08-2010 03:40 PM
change windows path to unix path gibsosmart Linux - Newbie 7 09-15-2009 03:35 AM
Mount path ust Linux - Networking 2 04-29-2008 01:20 AM
mount path from windows server ust Linux - Software 5 04-07-2008 12:57 AM
script to change unix path to windows path in all files csross Programming 8 04-29-2006 01:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:56 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