From owner-freebsd-questions@FreeBSD.ORG Fri Jan 4 07:50:52 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C5F8716A418 for ; Fri, 4 Jan 2008 07:50:52 +0000 (UTC) (envelope-from benw04@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.191]) by mx1.freebsd.org (Postfix) with ESMTP id 9909713C442 for ; Fri, 4 Jan 2008 07:50:52 +0000 (UTC) (envelope-from benw04@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so6465131rvb.43 for ; Thu, 03 Jan 2008 23:50:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; bh=8BG+Kq3vKIR7DpjliFoPsjGcf/9jOTunsN/IhOsFp7E=; b=mNFEqGoPVoEkQifX7SQpxPK2/qppVocvDiTKEkg/Aj85LSUadiRBQ9rKwBQ3Scf1Jkirz99eRRIFkS/2F+Mwogm16FYpBwcZolbku53eZNkwyHUTfisTgDf9l1iyvJ5Q+jpMd+fXT1KWZ6+S2UXRvfeQUesKTOrKnubh8iq+Jm4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=m17hQ3Ghou1ciP06jQ1nHBygP2dtIyEZvwIrRi4cby4RDhfLNqMujgNg6JBScTqm+S48aiAAJdhAg2FCz18J5JSaX5G5HxrBg43LNDKneiJ3Kn1KbraIWzSQjC2aSeuhDD+MU13NlDwbnNMe5XXGJ1P0sfwTd9C/oKOSQnMeN2Q= Received: by 10.141.99.4 with SMTP id b4mr8639164rvm.40.1199431358682; Thu, 03 Jan 2008 23:22:38 -0800 (PST) Received: from ?192.168.0.12? ( [150.101.102.174]) by mx.google.com with ESMTPS id g1sm3182590rvb.0.2008.01.03.23.22.37 (version=SSLv3 cipher=RC4-MD5); Thu, 03 Jan 2008 23:22:37 -0800 (PST) Message-ID: <477DDEA6.5080009@gmail.com> Date: Fri, 04 Jan 2008 17:52:14 +1030 From: Ben Williams User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: mount vs mount_msdosfs - invalid file mode X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jan 2008 07:50:52 -0000 Hi all, I'm trying to mount a fat32 drive with the permissions so the right users (in the group "mine") can read & write to it. [root@roma /mnt]# l total 8 drwxrwxrwx 19 ben mine 4.0K Jan 1 13:21 downloads/ drwxrwxr-x 2 ben mine 512B Jan 1 17:31 drive/ The one I want to mount is "drive". I can mount it properly with mount_msdosfs: [root@roma /mnt]# mount_msdosfs -m 666 -M 777 /dev/ad3s1 /mnt/drive But I'm not sure how to get mount to call mount_msdosfs with the right params: [root@roma /mnt]# mount -t msdosfs -v -o '-m 666 -M 777' /dev/ad3s1 /mnt/drive mount_msdosfs: invalid file mode: 666 -M 777 I've tried various combinations of quoting around the -m and -M params with no luck. The end result is that I need to work out what to put in /etc/fstab to achieve those mount permissions for that drive (and I'm guessing that getting mount to pass the right params across is a start). This is on FreeBSD 6.2-RELEASE. I'm a bit of a newbie - this is my first FreeBSD install :) - Ben -- "Everybody generalizes from one example. At least, I do." - Steven Brust [dreamcafe.com]