From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Sun, 07 Mar 2004 14:28:26 +0000 Subject: Re: udev problems Message-Id: <1078669706.1170.37.camel@pim> 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 On Sun, 2004-03-07 at 15:20, Michal =C8iha=F8 wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 >=20 > On Sunday 07 of March 2004 15:05, Kay Sievers wrote: > > Whats in dmesg? I have the following for my cheap 4slot-reader: >=20 > [connect reader] >=20 > 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 >=20 > [now I read from /dev/sda] >=20 > 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 >=20 > > sdb: Spinning up disk....ready >=20 > This doesn't happen to me. Related kernel code is in drivers/scsi/sd.c: >=20 > /* > * 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 */ >=20 > /* > * 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 Ah, nice to know. You may access you device with your apacer.sh to revalidate. (?) Just create a temporary node, access and remove it. Kay ------------------------------------------------------- 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