Hi Andy.
Andy Hawkins, 23.04.2007 11:20:
> Yesterday I upgraded my system to etch, and now my udev rules aren't working
> any more. I've had a read of the man pages and have changed one of them (for
> my parallel ZIP drive) to read:
>
> SUBSYSTEMS=="scsi", ATTR{model}=="ZIP 100", KERNEL=="sd?4", NAME=="%k",
> SYMLINK+="zip"
>
> (I've wrapped this line for clarity, it appears all on one line in the file)
>
> udevinfo -a -p $(udevinfo -q path -n /dev/sda)
>
> reports:
>
>
> […]
>
> looking at device '/block/sda':
> KERNEL=="sda"
> SUBSYSTEM=="block"
> DRIVER==""
> ATTR{stat}==" 10 7 136 1256 0
> 0 0 0 0 1256 1256"
> ATTR{size}=="196608"
> ATTR{removable}=="1"
> ATTR{range}=="16"
> ATTR{dev}=="8:0"
>
> looking at parent device '/devices/platform/host9/target9:0:6/9:0:6:0':
> KERNELS=="9:0:6:0"
> SUBSYSTEMS=="scsi"
> DRIVERS=="sd"
> ATTRS{ioerr_cnt}=="0x5"
> ATTRS{iodone_cnt}=="0x26"
> ATTRS{iorequest_cnt}=="0x26"
> ATTRS{iocounterbits}=="32"
> ATTRS{timeout}=="30"
> ATTRS{state}=="running"
> ATTRS{rev}=="D.13"
> ATTRS{model}=="ZIP 100 "
> ATTRS{vendor}=="IOMEGA "
> ATTRS{scsi_level}=="3"
> ATTRS{type}=="0"
> ATTRS{queue_type}=="none"
> ATTRS{queue_depth}=="1"
> ATTRS{device_blocked}=="0"
How do you expect your rule to match these properties?
You say:
> SUBSYSTEMS=="scsi"
But it is 'SUBSYSTEM=="block"' instead.
You say:
> ATTR{model}=="ZIP 100"
But it is 'ATTRS{model}=="ZIP 100 "' instead.
And besides: you cannot mix properties of two different device sections. Have a
look at how to write udev rules[0] properly.
One rule which should work could look like this:
ATTRS{model}=="ZIP 100 ", ATTRS{vendor}=="IOMEGA ", SYMLINK+="zip"
Regards, Mathias
[0] http://www.reactivated.net/writing_udev_rules.html#udevinfo
--
debian/rules
Attachment:
signature.asc
Description: OpenPGP digital signature