From owner-freebsd-questions Wed Jan 8 9:33: 6 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 6AD1437B401 for ; Wed, 8 Jan 2003 09:33:04 -0800 (PST) Received: from mail2.uits.uconn.edu (mail2.uits.uconn.edu [137.99.25.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id A470643E4A for ; Wed, 8 Jan 2003 09:33:03 -0800 (PST) (envelope-from matt@forsetti.com) Received: from [137.99.80.149] (d80h149.public.uconn.edu [137.99.80.149]) by mail2.uits.uconn.edu (8.11.6/8.11.6) with ESMTP id h08HW5h31699; Wed, 8 Jan 2003 12:32:05 -0500 Subject: Re: entering smbfs shares with spaces in name in fstab From: Matt Smith To: Thomas Spreng Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: <20030108161521.GA99872@rock.stable.ch> References: <1042037002.72844.6.camel@d80h149.public.uconn.edu> <20030108161521.GA99872@rock.stable.ch> Content-Type: text/plain Organization: Message-Id: <1042047124.576.11.camel@d80h149.public.uconn.edu> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.0 Date: 08 Jan 2003 12:32:05 -0500 Content-Transfer-Encoding: 7bit X-MailScanner: Found to be clean X-MailScanner-SpamCheck: not spam, SpamAssassin (score=-0.9, required 6, AWL, IN_REP_TO, QUOTED_EMAIL_TEXT, REFERENCES, SIGNATURE_SHORT_DENSE, SPAM_PHRASE_00_01, TO_BE_REMOVED_REPLY) 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 Wed, 2003-01-08 at 11:15, Thomas Spreng wrote: > > On Wed, Jan 08, 2003 at 09:43:22AM -0500, Matt Smith wrote: > > I am looking to make an entry in my fstab for an smb file share that has > > a space in the name. > > > > > > > > //Account@NBName/MY SHARE /mntpoint smbfs > > rw,noauto,-W=AccountDomain,-I=RealName.My.Domain.Edu 0 0 > > > > > > > > I have tried many variations on the share name using double-quotes, > > single-quotes, "\ ", with no success. > > > > >mount /mntpoint > > fstab: /etc/fstab:17: Inappropriate file type or format > > fstab: /etc/fstab:17: Inappropriate file type or format > > mount: /mntpoint: unknown special file or file system > > > > mount is parsing the fstab and using the space in the share name as a > > delimiter. > > > > Any ideas how I can make this entry in my fstab? Unfortunately, > > renaming my share is NOT an option. > > > > Thanks all, > > -Matt > > > > > > -- > > Matt Smith > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message Hi, > > you might try writing your space character as an ascii escape sequence (\040). > > bye, > Tom > > > Tom -- thanks for the reply. I found the same info on google, but it was from Linux sites. Ufn, no luck -- now I get: smbfs: unable to open connection: syserr = No such file or directory To use the ascii escape sequence, do I need anything more than: Account@NBName/MY\040SHARE /mntpoint smbfs rw,noauto,-W=AccountDomain,-I=RealName.My.Domain.Edu 0 0 Even the following fails from a command line: #>mount -tsmbfs -o -I=RealName.My.Domain.Edu,-W=AccountDomain //Account@NBName/MY\040SHARE mntpoint/ This show a little more info (note the -d -v): #>mount -tsmbfs -d -v -o -I=RealName.My.Domain.Edu,-W=AccountDomain //Account@NBName/MY\040SHARE mntpoint/ Which returns: >exec: mount -tsmbfs -d -v -o -I=RealName.My.Domain.Edu,-W=AccountDomain //Account@NBName/MY040SHARE mntpoint/ Which seems to mean that \040 resolves to simply 040. The following works (using "\ ") from a command line: #>mount -tsmbfs -o -I=RealName.My.Domain.Edu,-W=AccountDomain //Account@NBName/MY\ SHARE mntpoint/ But "\ " does NOT work in the fstab file. Any other ideas, anyone? -Matt -- Matt Smith To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message