From owner-freebsd-questions@FreeBSD.ORG Tue May 19 10:21:59 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 0E38D273 for ; Tue, 19 May 2015 10:21:59 +0000 (UTC) Received: from homiemail-a94.g.dreamhost.com (sub5.mail.dreamhost.com [208.113.200.129]) by mx1.freebsd.org (Postfix) with ESMTP id E7B9213CA for ; Tue, 19 May 2015 10:21:58 +0000 (UTC) Received: from homiemail-a94.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a94.g.dreamhost.com (Postfix) with ESMTP id 2411538A06F; Tue, 19 May 2015 03:21:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=ozzmosis.com; h=date:from :to:cc:subject:message-id:references:mime-version:content-type: in-reply-to; s=ozzmosis.com; bh=CID31NB2kDDIrDtSUJZvwvxrHg8=; b= GFzSTwAlnwBj177RF3mdBHaM7x1in5W8ll6J0YfawBtwQ2EK1i4FlNG6t9l0bH5K YIYv2YVoS47uTVx3hmi5r4s/+Cl1tvMJ881jn2JFwlBhdbLzNJzvOqaSShm0VXiI Zn4b78DXNKHKHagEQWJdOafKpj+8NgERAYNTapzEa9s= Received: from blizzard.ozzmosis.com (203-206-127-199.dyn.iinet.net.au [203.206.127.199]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: relay@ozzmosis.com) by homiemail-a94.g.dreamhost.com (Postfix) with ESMTPSA id DF01238A059; Tue, 19 May 2015 03:21:57 -0700 (PDT) Received: by blizzard.ozzmosis.com (Postfix, from userid 1001) id BE0C4946; Tue, 19 May 2015 20:21:55 +1000 (AEST) Date: Tue, 19 May 2015 20:21:55 +1000 From: andrew clarke To: Helmut Schneider Cc: freebsd-questions@freebsd.org Subject: Re: 'mount_smbfs -o' on FreeBSD 10.1 Message-ID: <20150519102155.GA88695@ozzmosis.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) 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 10:21:59 -0000 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. 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