file permissions on vfat USB Stick

Thilo Six T.Six at
Sun Nov 12 17:11:47 UTC 2006

Thilo Six wrote the following on 12.11.2006 16:49:
> Thilo Six wrote the following on 12.11.2006 15:12:
> <snip>
>> I have looked at /etc/udev/rules.d but i do not have any glue about them.
> According to:
> When i understand correctly udev are "only" for creating devices.
> The settings for default mount options for a fs must be set somewhere else?
> bye Thilo

I have managed it to some point:

$ cat /etc/udev/rules.d/10-local.rules
BUS=="usb", ATTRS{serial}=="07631B38026D", KERNEL=="sd?1", NAME="vfat",

$ grep /mnt/vfat /etc/fstab
/dev/vfat /mnt/vfat  vfat rw,uid=1000,dmask=0077,fmask=0177    0  0

it works so far. The only drawback of this solution so far is,
i have to
$ sudo mount -a

manually after plugin to get the device mounted.


bye Thilo

More information about the ubuntu-users mailing list