ToxicCode =Home= / =Config Files= / =Shell Scripts= / =Articles= / =Text Files= / =Misc= /
Register | Login | Submit new config file#For use on a system without a volume #manager like gnome-volume, thunar-volman, #etc. Place in /etc/udev/rules.d/ and customize for your system ######################################### KERNEL=="sdb", NAME="%k", SYMLINK+="usb%m", GROUP="storage", OPTIONS="last_rule" ACTION=="add", KERNEL=="sdb1", SYMLINK+="usb%n", GROUP="storage", NAME="%k" ACTION=="add", KERNEL=="sdb1", RUN+="/bin/mkdir -p /media/usb%n" ACTION=="add", KERNEL=="sdb1", PROGRAM=="/lib/udev/vol_id -t %N", RESULT=="ntfs-3g", RUN+="/bin/mount -t ntfs-3g -o rw,noauto,nodev,nosuid,noexec,noatime,umask=0000 /dev/%k /media/usb%n", OPTIONS="last_rule" ACTION=="add", KERNEL=="sdb1", RUN+="/bin/mount -t auto -o rw,noauto,sync,dirsync,noexec,nodev,noatime,umask=0000,dmask=000,fmask=111 /dev/%k /media/usb%n", OPTIONS="last_rule" ACTION=="remove", KERNEL=="sdb1", RUN+="/bin/umount -l /media/usb%n" ACTION=="remove", KERNEL=="sdb1", RUN+="/bin/rmdir /media/usb%n", OPTIONS="last_rule"