Posts List

Workaround: Automount Removable Media with udev

Got this tricks from Arch guy somewhere on the internet. I did this thing because the default KDE shipped with Slackware does not do the automount job well, at least on my machine. This tricks uses udev. Here is my addition of udev rule: bowo@pcxthinkslack:~$ cat /etc/udev/rules.d/10-my-media-automount.rules # /etc/udev/rules.d/10-my-media-automount.rules # start at sdb to ignore the system hard drive KERNEL!="sd[c-z]*", GOTO="my_media_automount_end" ACTION=="add", PROGRAM!="/sbin/blkid %N", GOTO="my_media_automount_end" # import some useful filesystem info as variables IMPORT{program}="/sbin/blkid -o udev -p %N" # get the label if present, otherwise assign one based on device/partition ENV{ID_FS_LABEL}!