New answers tagged udev
I think the problems come from the system not being up to date and using vol_id rather than blkid. with blkid -o list it is possible to get the list of devices and their label.
sdb is failing, as evidenced by the line: [sdb] Add. Sense: Unrecovered read error - auto reallocate failed You need make sure everything is backed up and replace the drive. For good measure, check all other drives in the system to see if they are having issues, using the drive manufacturer's tools. From what you've posted I can't tell what's going on ...
Instead of using an environment variable, can you pass it in to the script as an argument? Something like: RUN+="/usr/local/bin/udevtest %k" RUN+="/usr/local/bin/udevtest $KERNEL" Assuming your script can be modified to handle arguments
Top 50 recent answers are included