Hi list:
I have had this line in my /etc/udev/rules.d/10-local.rules for a
couple years now
<snip>
BUS=="usb", KERNEL=="sd?[0-9]", SYSFS{serial}=="DEF10BDD77EE", NAME="%k",
SYMLINK+="BackUpDrive"
</snip>
which matched my external USB harddrive enclosure and name it
/dev/BackUpDrive for convenience. I haven't plugged in the drive
for a few months now, and udev has been updated from 115-r1 to
124-r1 in the meantime, and the rule doesn't work any more.
I think this may have to do with the fact that udevinfo now gives
me
<snip>
looking at device '/bus/usb/devices/1-4:1.0/host24/target24:0:0/24:0:0:0':
KERNEL=="24:0:0:0"
SUBSYSTEM==""
DRIVER=="sd"
ATTR{ioerr_cnt}=="0x1"
ATTR{iodone_cnt}=="0x1f"
ATTR{iorequest_cnt}=="0x1f"
ATTR{iocounterbits}=="32"
ATTR{timeout}=="60"
ATTR{state}=="running"
ATTR{rev}=="0000"
ATTR{model}=="0A "
ATTR{vendor}=="ST332062"
ATTR{scsi_level}=="3"
ATTR{type}=="0"
ATTR{queue_type}=="none"
ATTR{queue_depth}=="1"
ATTR{device_blocked}=="0"
ATTR{max_sectors}=="240"
looking at parent device '/devices/pci0000:00/0000:00:1d.7/usb1/1-4':
KERNELS=="1-4"
SUBSYSTEMS==""
DRIVERS=="usb"
ATTRS{configuration}==""
ATTRS{serial}=="DEF10BDD77EE"
ATTRS{product}=="USB2.0 Storage Device"
ATTRS{manufacturer}=="Cypress Semiconductor"
ATTRS{maxchild}=="0"
ATTRS{version}==" 2.00"
ATTRS{devnum}=="40"
ATTRS{speed}=="480"
ATTRS{bMaxPacketSize0}=="64"
ATTRS{bNumConfigurations}=="1"
ATTRS{bDeviceProtocol}=="00"
ATTRS{bDeviceSubClass}=="00"
ATTRS{bDeviceClass}=="00"
ATTRS{bcdDevice}=="0001"
ATTRS{idProduct}=="6830"
ATTRS{idVendor}=="04b4"
ATTRS{bMaxPower}==" 0mA"
ATTRS{bmAttributes}=="c0"
ATTRS{bConfigurationValue}=="1"
ATTRS{bNumInterfaces}==" 1"
</snip>
Here's the thing, I am pretty sure that the serial number entry
DEF10BDD77EE refers to the drive, and is/was a much better way of
matching the actual drive (it is more unique than any of the other
bits of information in the udevinfo listing for the sd device), and
I would prefer to still match via the serial number in the udev
rules.
Any suggestions on how I can get my desired behaviour or on how I
can debug this?
Thanks,
Willie
--
"`You'd better be prepared for the jump into hyperspace.
It's unpleasently like being drunk.'
`What's so unpleasent about being drunk?'
`You ask a glass of water.'"
- Arthur getting ready for his first jump into hyperspace.
Sortir en Pantoufles: up 739 days, 46 min