From owner-freebsd-questions@FreeBSD.ORG Tue Nov 3 17:12:55 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CCB05106566B for ; Tue, 3 Nov 2009 17:12:55 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 8887D8FC13 for ; Tue, 3 Nov 2009 17:12:55 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.50) id 1N5Mw9-0002BI-Uy for freebsd-questions@freebsd.org; Tue, 03 Nov 2009 18:12:53 +0100 Received: from pool-70-21-18-103.res.east.verizon.net ([70.21.18.103]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 Nov 2009 18:12:53 +0100 Received: from nightrecon by pool-70-21-18-103.res.east.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 Nov 2009 18:12:53 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Michael Powell Followup-To: gmane.os.freebsd.questions Date: Tue, 03 Nov 2009 12:13:24 -0500 Lines: 32 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pool-70-21-18-103.res.east.verizon.net Sender: news Subject: Re: /etc/fstab + embedded spaces X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Nov 2009 17:12:55 -0000 carmel_ny wrote: > I was attempting to create this entry in the /etc/fstab file. It is to > a WinXP machine. > > //user@bios/My Documents /laptop smbfs rw,noauto 0 0 > > It fails because 'fstab' does not allow embedded spaces in device > names, not does it allow enclosing the name in quotes. > > I did some Googling and discovered that I am not the only one annoyed > by this behavior. I discovered this patch that had been submitted awhile > ago. > > http://lists.freebsd.org/pipermail/freebsd-bugs/2007-October/026469.html > > Changing the share name is not really an option. Is there some way of > making this work in 'fstab'? I can use the name including spaces in > 'mount_smbfs' so that is how I am currently mounting the share. It just > seems strange that 'fstab' by not accepting the use of quoting is not in > step with how FreeBSD usually operates. > Don't know if this works for fstab, but the normal way to escape spaces is with a \, like this: //user@bios/My\ Documents /laptop smbfs rw,noauto 0 0 May not work in fstab but you can try it and see. -Mike