From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.50) id 1Eckfp-0004dV-Vo for garchives@archives.gentoo.org; Thu, 17 Nov 2005 14:23:38 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id jAHEMTrB028331; Thu, 17 Nov 2005 14:22:29 GMT Received: from cubo.math.ist.utl.pt (cubo.math.ist.utl.pt [193.136.196.1]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id jAHEEw2W009409 for ; Thu, 17 Nov 2005 14:14:58 GMT Received: from weber.math.ist.utl.pt (weber.math.ist.utl.pt [193.136.196.172]) by cubo.math.ist.utl.pt (8.13.1/8.13.1) with ESMTP id jAHEEwxY028278 for ; Thu, 17 Nov 2005 14:14:58 GMT Received: from weber.math.ist.utl.pt (localhost.localdomain [127.0.0.1]) by weber.math.ist.utl.pt (8.13.1/8.13.1) with ESMTP id jAHEEwj0007007 for ; Thu, 17 Nov 2005 14:14:58 GMT Received: from localhost (jalmeida@localhost) by weber.math.ist.utl.pt (8.13.1/8.13.1/Submit) with ESMTP id jAHEEwrF007004 for ; Thu, 17 Nov 2005 14:14:58 GMT X-Authentication-Warning: weber.math.ist.utl.pt: jalmeida owned process doing -bs Date: Thu, 17 Nov 2005 14:14:58 +0000 (WET) From: Jorge Almeida To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] confused udev? In-Reply-To: <200511171454.37956.ext-dirk.heinrichs@nokia.com> Message-ID: References: <200511171049.14493.ext-dirk.heinrichs@nokia.com> <200511171454.37956.ext-dirk.heinrichs@nokia.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archives-Salt: 7f32e340-c495-4d13-905b-c4d82f7a63b5 X-Archives-Hash: 52c692a3b44894089453ad5d8cfcb814 On Thu, 17 Nov 2005, Dirk Heinrichs wrote: > Am Donnerstag, 17. November 2005 13:43 schrieb ext Jorge Almeida: > > > CONFIG_USB_STORAGE=y > > (...) > > Did you also enable the sub options? No, since none appeared to have much to do with my devices. > > > > usb 1-7: new high speed USB device using ehci_hcd and address 4 > > usb 1-7: device descriptor read/64, error -71 > > scsi1 : SCSI emulation for USB Mass Storage devices > > usb-storage: device found at 4 > > usb-storage: waiting for device to settle before scanning > > usb 1-7: reset high speed USB device using ehci_hcd and address 4 > > Vendor: PLEXTOR Model: PlexFlash-2 Rev: 5.02 > > Type: Direct-Access ANSI SCSI revision: 00 > > usb 1-7: reset high speed USB device using ehci_hcd and address 4 > > usb 1-7: reset high speed USB device using ehci_hcd and address 4 > > usb 1-7: reset high speed USB device using ehci_hcd and address 4 > > usb 1-7: reset high speed USB device using ehci_hcd and address 4 > > usb 1-7: reset high speed USB device using ehci_hcd and address 4 > > usb 1-7: reset high speed USB device using ehci_hcd and address 4 > > sdb: Write Protect is on > > sdb: Mode Sense: 45 00 80 08 > > sdb: assuming drive cache: write through > > Attached scsi removable disk sdb at scsi1, channel 0, id 0, lun 0 > > usb-storage: device scan complete > > I'm a bit confused about all those resets. > > OK, here's the interesting part: > > >0:0:0:0': BUS=="scsi" > > ID=="0:0:0:0" > > DRIVER=="sd" > > SYSFS{device_blocked}=="0" > > SYSFS{iocounterbits}=="32" > > SYSFS{iodone_cnt}=="0x1642" > > SYSFS{ioerr_cnt}=="0x0" > > SYSFS{iorequest_cnt}=="0x1642" > > SYSFS{max_sectors}=="240" > > SYSFS{model}=="L250R0 " > > SYSFS{queue_depth}=="1" > > SYSFS{queue_type}=="none" > > SYSFS{rev}=="BAH4" > > SYSFS{scsi_level}=="3" > > SYSFS{state}=="running" > > SYSFS{timeout}=="30" > > SYSFS{type}=="0" > > SYSFS{vendor}=="Maxtor 6" > > That would give the following rule (all in one line): > > BUS=="usb", KERNEL=="sd*", SYSFS{model}=="L250R0 ", > SYSFS{vendor}=="Maxtor 6", NAME="usb/disk%n" Is it really BUS=="usb" rather than BUS=="scsi"? > > Note the spaces in the model part, don't know wether the wildcard "*" works > here, too. Feel free to change the name part to whatever you like :-) > > > > > After plugging the memstick: > > > > $ udevinfo -a -p $(udevinfo -q path -n /dev/sdb) > > no record for 'sdb' in database > > udevinfo: option requires an argument -- p > > Usage: udevinfo [-anpqrVh] > > (etc) > > Hmm, this is strange. Did you check if /dev/sdb is really there? I currently /dev/sdb and /dev/sdb1 exist, but don't seem to be much help. $ ls /dev|grep sdb sdb sdb1 sdb10 sdb11 sdb12 sdb13 sdb14 sdb15 sdb2 sdb3 sdb4 sdb5 sdb6 sdb7 sdb8 sdb9 $ mount -t vfat /dev/sdb1 /mnt/pen mount: /dev/sdb1: can't read superblock > have no idea what could be wrong. If not already done, could you recompile > your kernel with all sub options of CONFIG_USB_STORAGE and see if this > makes any difference with the stick? > Will try it... > Bye... > > Dirk > Thanks, Jorge -- gentoo-user@gentoo.org mailing list