Udev rule is not working

Solution 1:

KERNEL=="sd??" matches to the device with a partition table (/dev/sda1) only. If your device doesn't have a partition table (/dev/sda), the rule isn't working.

You can change your rule to KERNEL=="sd?" to detect all kind of device.