Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Jan 2008 17:52:14 +1030
From:      Ben Williams <benw04@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   mount vs mount_msdosfs - invalid file mode
Message-ID:  <477DDEA6.5080009@gmail.com>

next in thread | raw e-mail | index | archive | help
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]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?477DDEA6.5080009>