From owner-freebsd-questions@FreeBSD.ORG Tue May 19 13:47:07 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B5399561 for ; Tue, 19 May 2015 13:47:07 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 75C491D89 for ; Tue, 19 May 2015 13:47:07 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YuhrL-0003CW-E4 for freebsd-questions@freebsd.org; Tue, 19 May 2015 15:47:03 +0200 Received: from p5dcd60e2.dip0.t-ipconnect.de ([93.205.96.226]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 May 2015 15:47:03 +0200 Received: from jumper99 by p5dcd60e2.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 May 2015 15:47:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: "Helmut Schneider" Subject: Re: 'mount_smbfs -o' on FreeBSD 10.1 Date: Tue, 19 May 2015 13:46:56 +0000 (UTC) Lines: 49 Message-ID: References: <20150519102155.GA88695@ozzmosis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p5dcd60e2.dip0.t-ipconnect.de User-Agent: XanaNews/1.19.1.194 X-Ref: news.gmane.org ~XNS:00000066 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 May 2015 13:47:07 -0000 andrew clarke wrote: > On Mon 2015-05-18 18:53:52 UTC+0000, Helmut Schneider > (jumper99@gmx.de) wrote: > > > 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 > > anymore: > > I think it does... > > > [helmut@BSDHelmut ~]$ sudo mount_smbfs -o noexec,nosuid,noatime,ro > > -N -I 192.168.124.251 -W DOMAIN //unix-smb-dummy@fs01/install > > /var/www/var/www/smbfs/install > > mount_smbfs: mount error: /var/www/var/www/smbfs/install Invalid > > option [helmut@BSDHelmut ~]$ sudo mount_smbfs -N -I 192.168.124.251 > > -W DOMAIN //unix-smb-dummy@fs01/install > > /var/www/var/www/smbfs/install [helmut@BSDHelmut ~]$ > > > > How can I pass those options with 10.1? > > I suspect it's the "noatime" option that it's objecting to, although > you wouldn't know from the error message. Try it without noatime. Good point, and in addition options now have to be separated: [helmut@BSDHelmut ~]$ sudo mount_smbfs -o noexec,nosuid,ro -N -I 192.168.124.251 -W DOMAIN //unix-smb-dummy@fs01/install /var/www/var/www/smbfs/install mount_smbfs: mount error: /var/www/var/www/smbfs/install Invalid option [helmut@BSDHelmut ~]$ [helmut@BSDHelmut ~]$ sudo mount_smbfs -o noexec -o nosuid -o ro -N -I 192.168.124.251 -W DOMAIN //unix-smb-dummy@fs01/install /var/www/var/www/smbfs/install [helmut@BSDHelmut ~]$ > Also, fwiw, you can use mount -t instead. This works for me on 10.1: > > $ sudo mount -t smbfs -o -U=ozzmosis -o noexec,nosuid,ro > //server/share /mnt afaik mount -t smbfs does not know about "-N" (don't ask for a password). Thanks, Helmut