/etc/fstab + embedded spaces

andrew clarke mail at ozzmosis.com
Tue Nov 3 20:02:06 UTC 2009


On Tue 2009-11-03 06:57:12 UTC-0500, carmel_ny (carmel_ny at hotmail.com) wrote:

> I was attempting to create this entry in the /etc/fstab file. It is to
> a WinXP machine.
> 
> //user at 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 at bios/My Documents" /laptop

or similar.

Regards
Andrew


More information about the freebsd-questions mailing list