LinuxQuestions.org
Visit Jeremy's Blog.
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 05-18-2010, 01:10 PM   #1
bkorb
GNU Contributor
 
Registered: Sep 2006
Location: Sta. Cruz, CA
Distribution: openSUSE
Posts: 62

Rep: Reputation: 17
Thumbs down fstab entry for NFS mount of directory with a space


Hi, I'm trying to figure out if there is any valid syntax I can
use to NFS mount a directory that has a Windows spacy name in it.
I could write a script that does it, but it would be a lot more
convenient if there were fstab syntax I could use. I've tried
these:

"nas:/DOCUMENT MANAGEMENT" /nas/DOCUMENT-MANAGEMENT nfs ro 0 0
nas:/DOCUMENT\ MANAGEMENT /nas/DOCUMENT-MANAGEMENT nfs ro 0 0
nas:/DOCUMENT%20MANAGEMENT /nas/DOCUMENT-MANAGEMENT nfs ro 0 0

I'm afraid the answer is going to be, "I'm sorry, but you cannot
get there from here." I am just hoping not.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 05-18-2010, 01:49 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613
nas:"/DOCUMENT MANAGEMENT"
would be my guess, though I don't have an easy way to test it
 
Old 05-18-2010, 01:58 PM   #3
bkorb
GNU Contributor
 
Registered: Sep 2006
Location: Sta. Cruz, CA
Distribution: openSUSE
Posts: 62

Original Poster
Rep: Reputation: 17
Code:
# cp fstab /etc/fstab ; mount /nas/DOCUMENT-MANAGEMENT
[mntent]: line 46 in /etc/fstab is bad
mount: can't find /nas/DOCUMENT-MANAGEMENT in /etc/fstab or /etc/mtab
Thank you. The problem is that the fstab is parsed with space separated tokens and does not honor quotes. The real question is, "Is there some way to specify a particular character with some escape sequence?" I tried the URL %20 trick, but no luck. \x20 does not work either. I'll try \040 in a couple minutes, but my hopes are not high.
 
Old 05-18-2010, 02:01 PM   #4
bkorb
GNU Contributor
 
Registered: Sep 2006
Location: Sta. Cruz, CA
Distribution: openSUSE
Posts: 62

Original Poster
Rep: Reputation: 17
Despite my lack of high hopes, the octal flavor works!!!

Code:
nas:/DOCUMENT\040MANAGEMENT /nas/DOCUMENT-MANAGEMENT nfs ro 0 0
 
2 members found this post helpful.
Old 05-25-2010, 03:13 PM   #5
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613
By the way, I just found that in the man page for fstab:

Code:
 The  second field, (fs_file), describes the mount point for the filesystem.  For swap par‐
       titions, this field should be specified as ‘none’. If the name of the mount point contains
       spaces these can be escaped as ‘\040’.
I assume it applies to the first field as well.
 
1 members found this post helpful.
Old 05-26-2010, 10:40 AM   #6
bkorb
GNU Contributor
 
Registered: Sep 2006
Location: Sta. Cruz, CA
Distribution: openSUSE
Posts: 62

Original Poster
Rep: Reputation: 17
Yep, those observations are correct. But since it wasn't in the first field description and it wasn't in a general description and since I didn't re-read the entire man page looking for it, .... I sent an email to the linux man page project coordinator and he said that man page is not part of it any more. Oh, well. Ya do what you can.....
 
  


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
fstab entry does not mount nfs share nanbudh Linux - Networking 13 06-07-2012 02:05 PM
[SOLVED] fstab entry to mount second Hard disk. flatstan SUSE / openSUSE 5 02-11-2010 07:10 AM
Fstab Entry To Mount Vista stratcat Linux - Desktop 5 05-15-2007 07:36 PM
usb fstab entry won't mount r/w Kilka Linux - Hardware 4 07-27-2004 11:05 AM
Why a FSTAB entry will mount using -a switch but will not mount automatically at boot mjen Linux - Newbie 3 05-19-2004 07:45 AM

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

All times are GMT -5. The time now is 01:12 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration