From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal =?iso-8859-2?q?=C8iha=F8?= Date: Sun, 07 Mar 2004 14:20:55 +0000 Subject: Re: udev problems Message-Id: <200403071520.55346.michal@cihar.com> List-Id: References: <200403071315.02925.michal@cihar.com> In-Reply-To: <200403071315.02925.michal@cihar.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday 07 of March 2004 15:05, Kay Sievers wrote: > Whats in dmesg? I have the following for my cheap 4slot-reader: [connect reader] USB Mass Storage device found at 21 usb 1-2: USB disconnect, address 21 usb 1-2: new full speed USB device using address 22 scsi34 : SCSI emulation for USB Mass Storage devices Vendor: Apacer Model: Mega Steno Rev: 1.03 Type: Direct-Access ANSI SCSI revision: 02 Attached scsi removable disk sda at scsi34, channel 0, id 0, lun 0 Vendor: Apacer Model: Mega Steno Rev: 1.03 Type: Direct-Access ANSI SCSI revision: 02 Attached scsi removable disk sdb at scsi34, channel 0, id 0, lun 1 Vendor: Apacer Model: Mega Steno Rev: 1.03 Type: Direct-Access ANSI SCSI revision: 02 Attached scsi removable disk sdc at scsi34, channel 0, id 0, lun 2 WARNING: USB Mass Storage data integrity not assured [now I read from /dev/sda] USB Mass Storage device found at 22 SCSI device sda: 15680 512-byte hdwr sectors (8 MB) sda: assuming Write Enabled sda: assuming drive cache: write through SCSI device sda: 15680 512-byte hdwr sectors (8 MB) sda: assuming Write Enabled sda: assuming drive cache: write through sda: sda1 > sdb: Spinning up disk....ready This doesn't happen to me. Related kernel code is in drivers/scsi/sd.c: /* * If manual intervention is required, or this is an * absent USB storage device, a spinup is meaningless. */ if (SRpnt->sr_sense_buffer[2] =3D NOT_READY && SRpnt->sr_sense_buffer[12] =3D 4 /* not ready */ && SRpnt->sr_sense_buffer[13] =3D 3) { break; /* manual intervention required */ /* * Issue command to spin up drive when not ready */ } else if (SRpnt->sr_sense_buffer[2] =3D NOT_READY) { unsigned long time1; if (!spintime) { printk(KERN_NOTICE "%s: Spinning up disk...= ", diskname); } - --=20 Regards Michal =C8iha=F8 http://cihar.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFASy/H3DVS6DbnVgQRAnbcAJsHzcFoiAYs1+Vv3zBvhr18ftnlIQCgqZxv UHJPF3qYs7be1Unn8iqReQE=3D/Dn5 -----END PGP SIGNATURE----- ------------------------------------------------------- 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_id=1470&alloc_id638&op=CCk _______________________________________________ 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