file permissions on vfat USB Stick

Thilo Six T.Six at gmx.de
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:
> http://www.reactivated.net/writing_udev_rules.html
> 
> 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:
http://ubuntuforums.org/showthread.php?t=168221

$ cat /etc/udev/rules.d/10-local.rules
BUS=="usb", ATTRS{serial}=="07631B38026D", KERNEL=="sd?1", NAME="vfat",
SYMLINK="usbdevices/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.

hmm

bye Thilo





More information about the ubuntu-users mailing list