Udev

From Indie IT Wiki

Fixing UDEV Start Errors

The new version of udev gives out warnings when it starts similar to the following:-

Oct 23 11:22:37 server1 udevd[1146]: BUS= will be removed in a future udev version, please use SUBSYSTEM= to match the event device, or SUBSYSTEMS= to match a parent device, in /etc/udev/rules.d/10-local.rules:1
Oct 23 11:22:37 server1 udevd[1146]: SYSFS{}= will be removed in a future udev version, please use ATTR{}= to match the event device, or ATTRS{}= to match a parent device, in /etc/udev/rules.d/10-local.rules:1
Oct 23 11:22:37 server1 udevd[1146]: NAME="%k" is superfluous and breaks kernel supplied names, please remove it from /etc/udev/rules.d/10-local.rules:1

The solution is very simple. The old rules line was:-

ACTION=="add", BUS=="usb", KERNEL=="sd*", SYSFS{idVendor}=="1058", SYSFS{idProduct}=="1001", SYSFS{serial}=="574341533837343637363836", NAME="%k", SYMLINK="externalhdd"

Change it to read:-

ACTION=="add", SUBSYSTEM=="usb", KERNEL=="sd*", ATTR{idVendor}=="1058", ATTR{idProduct}=="1001", SYSFS{serial}=="574341533837343637363836", SYMLINK="externalhdd"