> From: Marc Haber <[EMAIL PROTECTED]> > To: Marco d'Itri <[EMAIL PROTECTED]>, [EMAIL PROTECTED] > Cc: Marc Haber <[EMAIL PROTECTED]> > Subject: Re: Re: Bug#350235: ide pcmcia problem > > found 350235 0.84-1 > thanks > > On Sat, Jan 28, 2006 at 01:51:39PM +0100, Marco d'Itri wrote: > > Indeed... But maybe the recent changes in sysfs processing in udev broke > > the rule. First, try removing the symlink to persistent.rules to verify > > that it actually is what is exposing the bug, then after you succesfully > > loaded the driver check with something like: > > > > udevinfo -a -p /block/hde/hde1 > > > > why it's not working. > > I have seen the same issues on my notebook, with udev 0.84-1. > > > A workaround may be to add again this rule: > > > > BUS=="ide", SYSFS{../removable}=="1", DRIVER!="ide-cdrom", > > GOTO="no_volume_id" > > I needed that addition to make the PCMCIA CF card work.
Hmm, I found a CF card and the rule works fine for me: match_key: key DRIVER value='ide-cdrom' match_key: match DRIVER 'ide-cdrom' <-> 'ide-disk' match_key: DRIVER is true (non-matching value) match_key: key BUS value='ide' match_key: match BUS 'ide' <-> 'ide' match_key: BUS is true (matching value) match_rule: check 1 SYSFS keys sysfs_attr_get_value: open '/devices/pci0000:00/0000:00:1e.0/0000:04:00.0/0.0/ide0/0.0'/'removable' sysfs_attr_get_value: new uncached attribute '/sys/devices/pci0000:00/0000:00:1e.0/0000:04:00.0/0.0/ide0/0.0/removable' sysfs_attr_get_value: add to cache '/sys/devices/pci0000:00/0000:00:1e.0/0000:04:00.0/0.0/ide0/0.0/removable' sysfs_attr_get_value: attribute '/sys/devices/pci0000:00/0000:00:1e.0/0000:04:00.0/0.0/ide0/0.0/removable' does not exist sysfs_attr_get_value: open '/block/hda'/'removable' sysfs_attr_get_value: new uncached attribute '/sys/block/hda/removable' sysfs_attr_get_value: add to cache '/sys/block/hda/removable' sysfs_attr_get_value: cache '/sys/block/hda/removable' with value '1' match_rule: removed 0 trailing whitespace chars from '1' match_key: key SYSFS value='1' match_key: match SYSFS '1' <-> '1' match_key: SYSFS is true (matching value) match_rule: all 1 SYSFS keys matched udev_rules_get_name: moving forward to label 'persistent_end' What does udevtest print on your box? This is for the CF card: pim:/home/kay/work/src/udev # ./udevtest /block/hda main: looking at device '/block/hda' from subsystem 'block' udev_rules_get_name: no node name set, will use kernel name 'hda' create_node: creating device node '/dev/hda', major = '3', minor = '0', mode = '0640', uid = '0', gid = '6' main: run: '/lib/udev/idedma.sh /dev/hda' main: run: 'socket:/org/freedesktop/hal/udev_event' main: run: 'socket:/org/kernel/udev/monitor' This is for a real disk: pim:/home/kay/work/src/udev # ./udevtest /block/sda main: looking at device '/block/sda' from subsystem 'block' run_program: '/sbin/usb_id -x' run_program: '/sbin/usb_id' returned with status 1 run_program: '/sbin/scsi_id -g -x -s /block/sda -d /dev/.tmp-8-0' run_program: '/sbin/scsi_id' (stdout) 'ID_VENDOR=ATA' run_program: '/sbin/scsi_id' (stdout) 'ID_MODEL=HTS726060M9AT00' run_program: '/sbin/scsi_id' (stdout) 'ID_REVISION=MH4O' run_program: '/sbin/scsi_id' (stdout) 'ID_SERIAL=SATA_HTS726060M9AT00_MRH453M4HWHG7B' run_program: '/sbin/scsi_id' (stdout) 'ID_TYPE=disk' run_program: '/sbin/scsi_id' (stdout) 'ID_BUS=scsi' run_program: '/sbin/scsi_id' returned with status 0 udev_rules_get_name: add symlink 'disk/by-id/scsi-SATA_HTS726060M9AT00_MRH453M4HWHG7B' run_program: '/sbin/path_id /block/sda' run_program: '/sbin/path_id' (stdout) 'ID_PATH=pci-0000:00:1f.2-scsi-0:0:0:0' run_program: '/sbin/path_id' returned with status 0 udev_rules_get_name: add symlink 'disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0' run_program: '/sbin/vol_id --export /dev/.tmp-8-0' run_program: '/sbin/vol_id' returned with status 4 run_program: '/sbin/edd_id --export /dev/.tmp-8-0' run_program: '/sbin/edd_id' (stdout) 'ID_EDD=int13_dev80' run_program: '/sbin/edd_id' returned with status 0 udev_rules_get_name: add symlink 'disk/by-id/edd-int13_dev80' udev_rules_get_name: no node name set, will use kernel name 'sda' create_node: creating device node '/dev/sda', major = '8', minor = '0', mode = '0640', uid = '0', gid = '6' create_node: creating symlink '/dev/disk/by-id/scsi-SATA_HTS726060M9AT00_MRH453M4HWHG7B' to '../../sda' create_node: creating symlink '/dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0' to '../../sda' create_node: creating symlink '/dev/disk/by-id/edd-int13_dev80' to '../../sda' main: run: 'socket:/org/freedesktop/hal/udev_event' main: run: 'socket:/org/kernel/udev/monitor' Kay -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]