From owner-freebsd-questions@FreeBSD.ORG Wed Jun 11 07:52:17 2003 Return-Path: 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 6F92837B401 for ; Wed, 11 Jun 2003 07:52:17 -0700 (PDT) Received: from tomts6-srv.bellnexxia.net (tomts6.bellnexxia.net [209.226.175.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E12543FA3 for ; Wed, 11 Jun 2003 07:52:16 -0700 (PDT) (envelope-from matt@gsicomp.on.ca) Received: from gabby.gsicomp.on.ca ([65.95.177.176]) by tomts6-srv.bellnexxia.netESMTP <20030611143409.OKAV17332.tomts6-srv.bellnexxia.net@gabby.gsicomp.on.ca>; Wed, 11 Jun 2003 10:34:09 -0400 Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by gabby.gsicomp.on.ca (8.12.6/8.12.6) with SMTP id h5BETGmK079494; Wed, 11 Jun 2003 10:29:16 -0400 (EDT) (envelope-from matt@gsicomp.on.ca) Message-ID: <003f01c33026$707a4e60$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "John DeStefano" , References: <20030611142414.30537.qmail@web40605.mail.yahoo.com> Date: Wed, 11 Jun 2003 10:33:34 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: Re: mounting Win with spaces via samba in fstab X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2003 14:52:17 -0000 > I'm trying to mount a remote Windows directory, which happens to have a space in its name; "mount -a" returns the following error: > fstab: /etc/fstab:14: Inappropriate file type or format > > I have tried both of the following formats: > //user@host/Win\ Partition /mountpoint smbfs rw 0 0 > "//user@host/Win Partition" /mountpoint smbfs rw 0 0 > > I pulled this format directly from "man mount_smbfs 8": > "//guest@samba/public /smb/public smbfs rw,noauto 0 0" > > I searched the archives, and it seems this question had been asked once before, but no conclusion was reached: > http://groups.google.com/groups?hl=en&lr=lang_en&ie=UTF-8&threadm=1042037002.72844.6.camel%40d80h149.public.uconn.edu.lucky.freebsd.questions&rnum=1&prev=/groups%3Fq%3D%2522fstab:%2B/etc/fstab%2522%2B%2522Inappropriate%2Bfile%2Btype%2Bor%2Bformat%2522%2Bsmbfs%26hl%3Den%26lr%3Dlang_en%26ie%3DUTF-8%26selm%3D1042037002.72844.6.camel%2540d80h149.public.uconn.edu.lucky.freebsd.questions%26rnum%3D1 I think the problem is that the fstab(5) file format treats spaces as field delimiters, and the routines used to parse fstab (/usr/src/lib/libc/gen/fstab.c, fstabscan() in particular) do not know how to handle escaped spaces nor quoted fields. -- Matt Emmerton