Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-24-2010, 03:53 PM   #1
Registered: Nov 2004
Location: London, UK
Distribution: CentOS, RHEL, Debian, IPCop, PS2Linux
Posts: 95

Rep: Reputation: 23
Question fstab, space in mount point/directory names?

Hi everyone

I'm adding some bind mounts to my /etc/fstab file.

If a path that I want to use has a space in, I'm guessing I need to escape the space character in the fstab file.

Do I just add a "\" character before a space, like when typing paths in the shell?

eg: /mnt/raid6/folder\ name/

Cheers, B
Old 11-24-2010, 05:58 PM   #2
Registered: Jan 2008
Posts: 105

Rep: Reputation: 28
If your source has a white space in the folder name then you can escape it with a \040.

e.g. in /etc/exports on your source server
on your destination server /etc/fstab
Code:\040space /my/mountpt nfs defaults 1 2
Old 11-25-2010, 02:42 AM   #3
Registered: Nov 2004
Location: London, UK
Distribution: CentOS, RHEL, Debian, IPCop, PS2Linux
Posts: 95

Original Poster
Rep: Reputation: 23
That's awesome.
I'll see how that goes!

Cheers, B


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
A gawk program to mount all ISO images in a directory under a specified mount-point PTrenholme Programming 11 11-18-2010 06:29 PM
[SOLVED] fstab entry for NFS mount of directory with a space bkorb Linux - Server 5 05-26-2010 10:40 AM
How to mount a Windows shared directory and have mount point be owned by nonroot user Arodef Linux - Software 3 09-14-2009 12:23 AM
redirecting folders to a separate mount point in /etc/fstab etortola Linux - Server 1 06-20-2009 09:47 AM
Mount point space jayraj005 General 15 05-29-2009 08:31 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:14 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration