Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Nov 2009 07:02:02 +1100
From:      andrew clarke <mail@ozzmosis.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: /etc/fstab + embedded spaces
Message-ID:  <20091103200202.GA20480@ozzmosis.com>
In-Reply-To: <BLU0-SMTP53624F939B9FDCB52DACB793B20@phx.gbl>
References:  <BLU0-SMTP53624F939B9FDCB52DACB793B20@phx.gbl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue 2009-11-03 06:57:12 UTC-0500, carmel_ny (carmel_ny@hotmail.com) 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.

A workaround may be to run mount_smbfs from /etc/crontab (or perhaps
the root user's crontab), eg.

@reboot		/usr/sbin/mount_smbfs -N "//user@bios/My Documents" /laptop

or similar.

Regards
Andrew



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091103200202.GA20480>