Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Feb 2003 00:36:55 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Matt Smith <matt@forsetti.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: spaces in fstab
Message-ID:  <20030218223655.GA13256@gothmog.gr>
In-Reply-To: <1045588121.18332.15.camel@d80h149.public.uconn.edu>
References:  <1045588121.18332.15.camel@d80h149.public.uconn.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2003-02-18 12:08, Matt Smith <matt@forsetti.com> wrote:
> Could anyone tell me how to put spaces in fstab for mount points or
> device names?
>
> I am trying to use mount_smbfs to mount an SMB share with spaces in
> the name.  However, I am sure this same difficulty would apply if my
> mount point contained spaces, such as /home/me/My\ Documents.  I
> have tried various combinations of \040, escaping, and quoting, with
> no luck so far.

This is impossible with the current implementation of getfsent(3).
You can circumvent this by mounting at a pathname that doesn't include
space or tabs characters and symlink to it, i.e. with this in your
fstab:

	/dev/ad0s3e  /home/me/my.docs  msdos  rw,noauto  2  2

You can always run:

	# mount /home/me/my.docs

and then symlink "/home/me/My Documents" to /home/me/my.docs.

Giorgos.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030218223655.GA13256>