From owner-freebsd-questions Tue Feb 18 14:37:18 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D2E737B401 for ; Tue, 18 Feb 2003 14:37:17 -0800 (PST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 79B3343F3F for ; Tue, 18 Feb 2003 14:37:11 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-b130.otenet.gr [212.205.244.138]) by mailsrv.otenet.gr (8.12.6/8.12.6) with ESMTP id h1IMb1Fw018845; Wed, 19 Feb 2003 00:37:02 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.7/8.12.7) with ESMTP id h1IMb1wr013580; Wed, 19 Feb 2003 00:37:01 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.7/8.12.7/Submit) id h1IMatWx013579; Wed, 19 Feb 2003 00:36:55 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Wed, 19 Feb 2003 00:36:55 +0200 From: Giorgos Keramidas To: Matt Smith Cc: freebsd-questions@freebsd.org Subject: Re: spaces in fstab Message-ID: <20030218223655.GA13256@gothmog.gr> References: <1045588121.18332.15.camel@d80h149.public.uconn.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1045588121.18332.15.camel@d80h149.public.uconn.edu> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2003-02-18 12:08, Matt Smith 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