Actually I'm 90% of the way there.
Code:
ACTION=="add",KERNEL=="sd[b-z][1-9]",ATTR{removable}=="1", SUBSYSTEMS=="usb", IMPORT{program}="/sbin/blkid -o udev -p %N"
KERNEL!="sd[b-z][1-9]", GOTO="media_label_end"
KERNEL=="sd[b-z][1-9]", ATTR{removable}=="1", SUBSYSTEMS=="usb", IMPORT{program}="/sbin/blkid -o udev -p %N"
ENV{name}="%k_%E{ID_FS_LABEL}"
ACTION=="add", RUN+="/usr/bin/pmount --sync --noatime --umask 000 %k %E{name}"
ACTION=="remove", RUN+="/usr/bin/pumount %E{name}"
LABEL="media_label_end"
The other thing you have to do is turn off automount in BOTH Nautilus and Dolphin via their respective tools and settings.
This rule works for all single partition thumb drives. You do still see a temporary ghost when mounting a thumb drive with multiple partitions. I suspect there is at least one more "default" or "standard" rule I need to kill off/override, but for now moving forward.
Bookmarks