The following is taken from an embedded system which does not have hard drive in it.
KERNEL=="sd?", SUBSYSTEMS=="usb", DRIVERS=="usb-storage", NAME="sda"
KERNEL=="sd?2", SUBSYSTEMS=="usb", DRIVERS=="usb-storage", NAME="sda2" RUN+="/bin/mount -n -o sync /dev/sda2 /media/usb2"
KERNEL=="sda2" ACTION=="remove", RUN+="/bin/umount -n /media/usb2"
Is it for auto mount and unmount? Can anyone provide brief explanation?
Thanks.