'mount_smbfs -o' on FreeBSD 10.1

Helmut Schneider jumper99 at gmx.de
Mon May 18 18:54:10 UTC 2015


I upgraded from 9.3 to 10.1 yesterday. I used to use a script that
mounts SMB shares and not fstab because 9.3 booted to single user mode
when the SMB server was unavailable.

It seems that with 10.1 mount_smbfs does not support the "-o" switch

[helmut at BSDHelmut ~]$ sudo mount_smbfs -o noexec,nosuid,noatime,ro -N
-I -W DOMAIN //unix-smb-dummy at fs01/install
mount_smbfs: mount error: /var/www/var/www/smbfs/install Invalid option
[helmut at BSDHelmut ~]$ sudo mount_smbfs -N -I -W DOMAIN
//unix-smb-dummy at fs01/install /var/www/var/www/smbfs/install
[helmut at BSDHelmut ~]$

How can I pass those options with 10.1?

Thanks, Helmut

More information about the freebsd-questions mailing list