Add dia
[hvlinux.git] / stage2 / misc / udev / 10-media-automount.rules
index 18c365f..4e015d2 100644 (file)
@@ -1,5 +1,5 @@
 # start at sdb to ignore the system hard drive
-KERNEL!="sd[b-z]*", GOTO="my_media_automount_end"
+KERNEL!="sd[b-z][0-9]*", GOTO="my_media_automount_end"
 ACTION=="add", PROGRAM!="/sbin/blkid %N", GOTO="my_media_automount_end"
 
 # import some useful filesystem info as variables
@@ -14,8 +14,8 @@ ACTION=="add", RUN+="/bin/mkdir -p '/media/%E{dir_name}'"
 
 # global mount options
 ACTION=="add", ENV{mount_options}="relatime"
-# filesystem-specific mount options (777/666 dir/file perms for ntfs/vfat) 
-ACTION=="add", ENV{ID_FS_TYPE}=="vfat|ntfs", ENV{mount_options}="$env{mount_options},gid=100,dmask=000,fmask=111,utf8"
+# filesystem-specific mount options (777/666 dir/file perms for ntfs/vfat)
+ACTION=="add", ENV{ID_FS_TYPE}=="vfat|ntfs", ENV{mount_options}="$env{mount_options},gid=98,dmask=000,fmask=111,utf8"
 
 # automount ntfs filesystems using ntfs-3g driver
 ACTION=="add", ENV{ID_FS_TYPE}=="ntfs", RUN+="/bin/mount -t ntfs-3g -o %E{mount_options} /dev/%k '/media/%E{dir_name}'"