Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

entering smbfs shares with spaces in name in fstab

4 views
Skip to first unread message

Matt Smith

unread,
Jan 8, 2003, 10:07:11 AM1/8/03
to
I am looking to make an entry in my fstab for an smb file share that has
a space in the name.

<snip one line from fstab>

//Account@NBName/MY SHARE /mntpoint smbfs
rw,noauto,-W=AccountDomain,-I=RealName.My.Domain.Edu 0 0

</end snip>

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 <ma...@forsetti.com>


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

Thomas Spreng

unread,
Jan 8, 2003, 11:15:51 AM1/8/03
to
Hi,

you might try writing your space character as an ascii escape sequence (\040).

bye,
Tom

Matt Smith

unread,
Jan 8, 2003, 12:33:48 PM1/8/03
to
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?

0 new messages