Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-29-2010, 11:46 AM
|
#1
|
Member
Registered: Oct 2005
Posts: 542
Rep:
|
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?
|
|
|
12-29-2010, 12:01 PM
|
#2
|
LQ Newbie
Registered: Dec 2010
Posts: 7
Rep:
|
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.
|
|
|
12-29-2010, 12:16 PM
|
#3
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
You can't mount folders, only partitions and filesystem-containers, such as .iso-files, can be mounted.
|
|
|
12-29-2010, 12:19 PM
|
#4
|
Member
Registered: Oct 2005
Posts: 542
Original Poster
Rep:
|
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 "\".
|
|
|
12-29-2010, 12:32 PM
|
#5
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Please post the commands you are using and the error messages you get.
|
|
|
12-29-2010, 01:56 PM
|
#6
|
Moderator
Registered: Aug 2002
Posts: 26,466
|
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
|
|
|
12-30-2010, 07:10 AM
|
#7
|
LQ Newbie
Registered: Dec 2010
Posts: 7
Rep:
|
Quote:
Originally Posted by TobiSGD
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 ?
|
|
|
All times are GMT -5. The time now is 11:52 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|