From: reg@dwf.com Date: Wed, 03 Mar 2004 19:39:15 +0000 Subject: Re: HELP: udev config. Message-Id: <200403031939.i23JdFHk028698@orion.dwf.com> List-Id: References: <200403030757.i237vBjY018430@orion.dwf.com> In-Reply-To: <200403030757.i237vBjY018430@orion.dwf.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org > On Wed, Mar 03, 2004 at 12:57:11AM -0700, reg@dwf.com wrote: > > Mar 3 00:45:11 orion modprobe: FATAL: Module ide_probe_mod not found. > > Mar 3 00:45:11 orion modprobe: FATAL: Module ide_probe not found. > > These lines have nothing to do with udev > > > --- > > > > I have 4 lines in udev.rules, none of them work: > > > > --- > > > > BUS="usb", SYSFS{model}="USB DISK ", NAME="usb_key1" > > > > BUS="usb", model="USB DISK ", NAME="usb_key2" > > > > BUS="scsi", SYSFS{model}="USB DISK ", NAME="usb_key3" > > > > BUS="scsi", model="USB DISK ", NAME="usb_key4" > > > > --- > > > > and yes, the model is returned with 8 trailing blanks. > > there are no new entries of ANY sort in /udev, not usb_key? nor sda? > > What does: > udevinfo -p /sys/block/sda -a > show? > It shows: --- udevinfo starts with the device the node belongs to and then walks up the device chain to print for every device found all possibly useful attributes in the udev key format. Only attributes within one device section may be used in a rule to match the device for which the node will be created. device '/sys/block/sda' has major:minor 8:0 looking at class device '/sys/block/sda': SYSFS{dev}="8:0" SYSFS{range}="16" SYSFS{size}="507904" SYSFS{stat}=" 2 0 16 213 0 0 0 0 0 213 213" follow the class device's "device" looking at the device chain at '/sys/devices/pci0000:00/0000:00:0d.0/usb3/3-2 /3-2:1.0/host8/8:0:0: 0': BUS="scsi" ID="8:0:0:0" SYSFS{detach_state}="0" SYSFS{type}="0" SYSFS{max_sectors}="240" SYSFS{device_blocked}="0" SYSFS{queue_depth}="1" SYSFS{scsi_level}="3" SYSFS{vendor}=" " SYSFS{model}="USB DISK " SYSFS{rev}="2.08" SYSFS{online}="1" looking at the device chain at '/sys/devices/pci0000:00/0000:00:0d.0/usb3/3-2 /3-2:1.0/host8': BUS="" ID="host8" SYSFS{detach_state}="0" looking at the device chain at '/sys/devices/pci0000:00/0000:00:0d.0/usb3/3-2 /3-2:1.0': BUS="usb" ID="3-2:1.0" SYSFS{detach_state}="0" SYSFS{bInterfaceNumber}="00" SYSFS{bAlternateSetting}=" 0" SYSFS{bNumEndpoints}="03" SYSFS{bInterfaceClass}="08" SYSFS{bInterfaceSubClass}="06" SYSFS{bInterfaceProtocol}="50" SYSFS{iInterface}="00" looking at the device chain at '/sys/devices/pci0000:00/0000:00:0d.0/usb3/3-2 ': BUS="usb" ID="3-2" SYSFS{detach_state}="0" SYSFS{bNumInterfaces}=" 1" SYSFS{bConfigurationValue}="1" SYSFS{bmAttributes}="80" SYSFS{bMaxPower}="100mA" SYSFS{idVendor}="0d7d" SYSFS{idProduct}="0100" SYSFS{bcdDevice}="0100" SYSFS{bDeviceClass}="00" SYSFS{bDeviceSubClass}="00" SYSFS{bDeviceProtocol}="00" SYSFS{bNumConfigurations}="1" SYSFS{speed}="12" SYSFS{manufacturer}=" " SYSFS{product}="USB Disk" SYSFS{serial}="19281608003D" looking at the device chain at '/sys/devices/pci0000:00/0000:00:0d.0/usb3': BUS="usb" ID="usb3" SYSFS{detach_state}="0" SYSFS{bNumConfigurations}="1" SYSFS{bNumInterfaces}=" 1" SYSFS{bConfigurationValue}="1" SYSFS{bmAttributes}="40" SYSFS{bMaxPower}=" 0mA" SYSFS{idVendor}="0000" SYSFS{idProduct}="0000" SYSFS{bcdDevice}="0206" SYSFS{bDeviceClass}="09" SYSFS{bDeviceSubClass}="00" SYSFS{bDeviceProtocol}="00" SYSFS{speed}="12" SYSFS{manufacturer}="Linux 2.6.1-1.65 uhci_hcd" SYSFS{product}="UHCI Host Controller" SYSFS{serial}="0000:00:0d.0" looking at the device chain at '/sys/devices/pci0000:00/0000:00:0d.0': BUS="pci" ID="0000:00:0d.0" SYSFS{detach_state}="0" SYSFS{vendor}="0x1106" SYSFS{device}="0x3038" SYSFS{subsystem_vendor}="0x0925" SYSFS{subsystem_device}="0x1234" SYSFS{class}="0x0c0300" SYSFS{irq}="9" looking at the device chain at '/sys/devices/pci0000:00': BUS="" ID="pci0000:00" SYSFS{detach_state}="0" > Why do you have those "model=" lines in your rules file? They will not > do anything. > Well, since the SYSFS{model} didnt work, I was trying something more like what I had in my old named.conf file. There is only one device, these 4 lines were all (different) attempts to 'see' it. --- I see something like the SYSFS{model} string I tried in the 2nd block of the udevinfo output above (BUS="scsi"). I see a similar SYSFS{product} line (but with upper/lower case) in the last block (BUS="usb"). > thanks, > > greg k-h > OK, I tried another experiment trying to match the last block: BUS="usb", SYSFS{product}="USB Disk", NAME="usb_key1" and that works, so Im back in business. But can you explain why the line BUS="scsi", SYSFS{model}="USB DISK ", NAME="usb_key3" that I had before, and SEEMS to match the scsi entry doesnt work? If I understood that I probably wont be asking for help in converting my other devices to work with the current udev... -- Reg.Clemens reg@dwf.com ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel