Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jan 2008 10:55:25 +0100
From:      Nikola =?UTF-8?B?TGXEjWnEhw==?= <nikola.lecic@anthesphoria.net>
To:        Ben Williams <benw04@gmail.com>
Cc:        FreeBSD-questions@FreeBSD.org
Subject:   Re: mount vs mount_msdosfs - invalid file mode
Message-ID:  <20080104105525.4c30df7e@anthesphoria.net>
In-Reply-To: <477DDEA6.5080009@gmail.com>
References:  <477DDEA6.5080009@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 04 Jan 2008 17:52:14 +1030
Ben Williams <benw04@gmail.com> wrote:

[...]=20
> The one I want to mount is "drive". I can mount it properly with=20
> mount_msdosfs:
>=20
> [root@roma /mnt]# mount_msdosfs -m 666 -M 777 /dev/ad3s1 /mnt/drive
>=20
> But I'm not sure how to get mount to call mount_msdosfs with the
> right params:
>=20
> [root@roma /mnt]# mount -t msdosfs -v -o '-m 666 -M 777' /dev/ad3s1=20
> /mnt/drive
> mount_msdosfs: invalid file mode:  666 -M 777
[...]

Hello Ben,

The right command would be:

  # mount -t msdosfs -v -o -m=3D666,-M=3D777 /dev/ad3s1 /mnt/drive

According to mount(8) manpage:

   Any additional options specific to a file system type that is not one
   of the internally known types (see the -t option) may be passed as a
   comma separated list; these options are distinguished by a leading
   ``-'' (dash).  Options that take a value are speci- fied using the
   syntax -option=3Dvalue.=20

> This is on FreeBSD 6.2-RELEASE. I'm a bit of a newbie - this is my
> first FreeBSD install :)

Welcome! :-)

--=20
Nikola Le=C4=8Di=C4=87 :: =D0=9D=D0=B8=D0=BA=D0=BE=D0=BB=D0=B0 =D0=9B=D0=B5=
=D1=87=D0=B8=D1=9B



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