linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* FC3 system hangs after inserting USB stick
@ 2004-12-05 17:39 Stefan Behrens
  2004-12-05 17:52 ` Kay Sievers
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Stefan Behrens @ 2004-12-05 17:39 UTC (permalink / raw)
  To: linux-hotplug

Hi there,

I have repeated problems with a hanging FC 3 system after inserting
a USB 2.0 memory stick. Sometimes I just cannot mount the FS, sometimes
the whole machine hangs when trying to mount. In such case, none of the
Ctrl-Alt keystrokes works. I had to press the reset button on my box.
I'm running FC 3 with stock kernel 2.6.9 and udev upgraded to
udev-039-10.FC3.1.i386.rpm.

However, this does not seem to be a 2.6 problem, I had similar effects
with the same stick on a notebook running 2.4.27 (upgraded FC1).
In one case even the power button didn't work and I had to remove the
battery ....

I tried formatting the stick using WinXP and also tried mkdosfs but with
no effect.

Here is a trace, inserting the stick (fails), removing it, inserting it
again (worked the 2nd time). Note I did not mount the device at all to
produce any of the errors and printouts.

----
Dec  5 18:10:49 localhost kernel: usb 1-6: new high speed USB device using address 2
Dec  5 18:10:49 localhost kernel: SCSI subsystem initialized
Dec  5 18:10:49 localhost kernel: Initializing USB Mass Storage driver...
Dec  5 18:10:49 localhost kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Dec  5 18:10:49 localhost kernel:   Vendor:           Model:                   Rev: 2.00
Dec  5 18:10:49 localhost kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Dec  5 18:10:49 localhost kernel: usbcore: registered new driver usb-storage
Dec  5 18:10:50 localhost kernel: USB Mass Storage support registered.
Dec  5 18:10:50 localhost scsi.agent[3082]: disk at /devices/pci0000:00/0000:00:10.3/usb1/1-6/1-6:1.0
/host0/0:0:0:0
Dec  5 18:10:50 localhost kernel: sda: Unit Not Ready, sense:
Dec  5 18:10:50 localhost kernel: Current : sense key Unit Attention
Dec  5 18:10:50 localhost kernel: Additional sense: Not ready to ready change, medium may have change
d
Dec  5 18:10:50 localhost kernel: sda : READ CAPACITY failed.
Dec  5 18:10:50 localhost kernel: sda : status=1, message\0, host=0, driver\b
Dec  5 18:10:50 localhost kernel: Current sd: sense key Unit Attention
Dec  5 18:10:50 localhost kernel: Additional sense: Not ready to ready change, medium may have change
d
Dec  5 18:10:50 localhost kernel: sda: Write Protect is off
Dec  5 18:10:50 localhost kernel: sda: assuming drive cache: write through
Dec  5 18:12:04 localhost kernel:  sda:<6>scsi: Device offlined - not ready after error recovery: hos
t 0 channel 0 id 0 lun 0
Dec  5 18:12:05 localhost kernel: SCSI error : <0 0 0 0> return code = 0x50000
Dec  5 18:12:05 localhost kernel: end_request: I/O error, dev sda, sector 2097144
Dec  5 18:12:05 localhost kernel: Buffer I/O error on device sda, logical block 262143
Dec  5 18:12:05 localhost kernel: scsi0 (0:0): rejecting I/O to offline device
Dec  5 18:12:05 localhost kernel: Buffer I/O error on device sda, logical block 262143
Dec  5 18:12:05 localhost kernel:  sda1
Dec  5 18:12:05 localhost kernel: Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
Dec  5 18:12:05 localhost kernel: usb 1-6: USB disconnect, address 2
Dec  5 18:12:10 localhost wait_for_sysfs[3139]: either wait_for_sysfs (udev 039) needs an update to handle the device '/block/sda/sda1' properly (no bus device link) or the
sysfs-support of your device's driver needs to be fixed, please report to <linux-hotplug-devel@lists.sourceforge.net>
Dec  5 18:12:11 localhost kernel: usb 1-6: new high speed USB device using address 3
Dec  5 18:12:11 localhost kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Dec  5 18:12:11 localhost kernel:   Vendor:           Model:                   Rev: 2.00
Dec  5 18:12:11 localhost kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Dec  5 18:12:11 localhost kernel: sda: Unit Not Ready, sense:
Dec  5 18:12:11 localhost kernel: Current : sense key Unit Attention
Dec  5 18:12:11 localhost kernel: Additional sense: Not ready to ready change, medium may have changed
Dec  5 18:12:11 localhost kernel: SCSI device sda: 128000 512-byte hdwr sectors (66 MB)
Dec  5 18:12:11 localhost kernel: sda: Write Protect is off
Dec  5 18:12:11 localhost kernel: sda: assuming drive cache: write through
Dec  5 18:12:12 localhost scsi.agent[3255]: disk at /devices/pci0000:00/0000:00:10.3/usb1/1-6/1-6:1.0/host1/1:0:0:0
Dec  5 18:12:11 localhost kernel:  sda: sda1
Dec  5 18:12:12 localhost kernel: Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
----

Any idea? This really shouldn't happen.

Thanks&br

/Stefan.


-- 
PGP public key available:
http://blackhole.pca.dfn.de:11371/pks/lookup?op=get&search=0x1D42A873



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: FC3 system hangs after inserting USB stick
  2004-12-05 17:39 FC3 system hangs after inserting USB stick Stefan Behrens
@ 2004-12-05 17:52 ` Kay Sievers
  2004-12-06  7:50 ` Stefan Behrens
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Kay Sievers @ 2004-12-05 17:52 UTC (permalink / raw)
  To: linux-hotplug

On Sun, 2004-12-05 at 18:39 +0100, Stefan Behrens wrote:
> I have repeated problems with a hanging FC 3 system after inserting
> a USB 2.0 memory stick. Sometimes I just cannot mount the FS, sometimes
> the whole machine hangs when trying to mount. In such case, none of the
> Ctrl-Alt keystrokes works. I had to press the reset button on my box.
> I'm running FC 3 with stock kernel 2.6.9 and udev upgraded to
> udev-039-10.FC3.1.i386.rpm.
> 
> However, this does not seem to be a 2.6 problem, I had similar effects
> with the same stick on a notebook running 2.4.27 (upgraded FC1).
> In one case even the power button didn't work and I had to remove the
> battery ....

> Any idea? This really shouldn't happen.

It's not a hotplug or udev related problem.

We got several reports like that. Seems like something is(was) wrong
with usb-storage device removal (only the first connect is successful).
Some people reported, that "eject /dev/sda" before unplugging prevented
the error.

I've had the same problem here but it's gone with kernel 2.6.10*, so I
never looked into the real reason for it. :)

Thanks,
Kay




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: FC3 system hangs after inserting USB stick
  2004-12-05 17:39 FC3 system hangs after inserting USB stick Stefan Behrens
  2004-12-05 17:52 ` Kay Sievers
@ 2004-12-06  7:50 ` Stefan Behrens
  2004-12-06  9:40 ` Kay Sievers
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Stefan Behrens @ 2004-12-06  7:50 UTC (permalink / raw)
  To: linux-hotplug

Kay Sievers wrote:
> On Sun, 2004-12-05 at 18:39 +0100, Stefan Behrens wrote:
> 
>>I have repeated problems with a hanging FC 3 system after inserting
>>a USB 2.0 memory stick. Sometimes I just cannot mount the FS, sometimes
>>the whole machine hangs when trying to mount. In such case, none of the
>>Ctrl-Alt keystrokes works. I had to press the reset button on my box.
>>I'm running FC 3 with stock kernel 2.6.9 and udev upgraded to
>>udev-039-10.FC3.1.i386.rpm.
>>
>>However, this does not seem to be a 2.6 problem, I had similar effects
>>with the same stick on a notebook running 2.4.27 (upgraded FC1).
>>In one case even the power button didn't work and I had to remove the
>>battery ....
> 
> 
>>Any idea? This really shouldn't happen.
> 
> 
> It's not a hotplug or udev related problem.
> 
> We got several reports like that. Seems like something is(was) wrong
> with usb-storage device removal (only the first connect is successful).
> Some people reported, that "eject /dev/sda" before unplugging prevented
> the error.
> 
> I've had the same problem here but it's gone with kernel 2.6.10*, so I
> never looked into the real reason for it. :)
> 
Ok, I'll try 2.6.10. But note that the problem does not occur
when unplugging the stick, but when I plug it *in*.

Thanks&br

/Stefan.

-- 
PGP encrypted email preferred. PGP public key:
http://blackhole.pca.dfn.de:11371/pks/lookup?op=get&search=0x1D42A873
More info: http://www.openpgp.org/



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: FC3 system hangs after inserting USB stick
  2004-12-05 17:39 FC3 system hangs after inserting USB stick Stefan Behrens
  2004-12-05 17:52 ` Kay Sievers
  2004-12-06  7:50 ` Stefan Behrens
@ 2004-12-06  9:40 ` Kay Sievers
  2004-12-06  9:48 ` Stefan Behrens
  2004-12-06  9:58 ` Kay Sievers
  4 siblings, 0 replies; 6+ messages in thread
From: Kay Sievers @ 2004-12-06  9:40 UTC (permalink / raw)
  To: linux-hotplug

On Mon, Dec 06, 2004 at 08:50:21AM +0100, Stefan Behrens wrote:
> Kay Sievers wrote:
> >On Sun, 2004-12-05 at 18:39 +0100, Stefan Behrens wrote:
> >
> >>I have repeated problems with a hanging FC 3 system after inserting
> >>a USB 2.0 memory stick. Sometimes I just cannot mount the FS, sometimes
> >>the whole machine hangs when trying to mount. In such case, none of the
> >>Ctrl-Alt keystrokes works. I had to press the reset button on my box.
> >>I'm running FC 3 with stock kernel 2.6.9 and udev upgraded to
> >>udev-039-10.FC3.1.i386.rpm.

> >We got several reports like that. Seems like something is(was) wrong
> >with usb-storage device removal (only the first connect is successful).
> >Some people reported, that "eject /dev/sda" before unplugging prevented
> >the error.
> >
> >I've had the same problem here but it's gone with kernel 2.6.10*, so I
> >never looked into the real reason for it. :)

> Ok, I'll try 2.6.10. But note that the problem does not occur
> when unplugging the stick, but when I plug it *in*.

Right, but it's the disconnect that does not work properly and the next
connect will fail cause of that.

Kay


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: FC3 system hangs after inserting USB stick
  2004-12-05 17:39 FC3 system hangs after inserting USB stick Stefan Behrens
                   ` (2 preceding siblings ...)
  2004-12-06  9:40 ` Kay Sievers
@ 2004-12-06  9:48 ` Stefan Behrens
  2004-12-06  9:58 ` Kay Sievers
  4 siblings, 0 replies; 6+ messages in thread
From: Stefan Behrens @ 2004-12-06  9:48 UTC (permalink / raw)
  To: linux-hotplug

Kay Sievers wrote:
> On Mon, Dec 06, 2004 at 08:50:21AM +0100, Stefan Behrens wrote:
> 
>>>We got several reports like that. Seems like something is(was) wrong
>>>with usb-storage device removal (only the first connect is successful).
>>>Some people reported, that "eject /dev/sda" before unplugging prevented
>>>the error.
>>>
>>>I've had the same problem here but it's gone with kernel 2.6.10*, so I
>>>never looked into the real reason for it. :)
> 
> 
>>Ok, I'll try 2.6.10. But note that the problem does not occur
>>when unplugging the stick, but when I plug it *in*.
> 
> 
> Right, but it's the disconnect that does not work properly and the next
> connect will fail cause of that.
> 
Hmm, but I've seen this problem when inserting the stick for the
first time after booting.
Does the hotplug system preserve state between reboots/pwer-off?

br/Stefan.

-- 
PGP encrypted email preferred. PGP public key:
http://blackhole.pca.dfn.de:11371/pks/lookup?op=get&search=0x1D42A873
More info: http://www.openpgp.org/



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: FC3 system hangs after inserting USB stick
  2004-12-05 17:39 FC3 system hangs after inserting USB stick Stefan Behrens
                   ` (3 preceding siblings ...)
  2004-12-06  9:48 ` Stefan Behrens
@ 2004-12-06  9:58 ` Kay Sievers
  4 siblings, 0 replies; 6+ messages in thread
From: Kay Sievers @ 2004-12-06  9:58 UTC (permalink / raw)
  To: linux-hotplug

On Mon, Dec 06, 2004 at 10:48:09AM +0100, Stefan Behrens wrote:
> Kay Sievers wrote:
> >On Mon, Dec 06, 2004 at 08:50:21AM +0100, Stefan Behrens wrote:
> >
> >>>We got several reports like that. Seems like something is(was) wrong
> >>>with usb-storage device removal (only the first connect is successful).
> >>>Some people reported, that "eject /dev/sda" before unplugging prevented
> >>>the error.
> >>>
> >>>I've had the same problem here but it's gone with kernel 2.6.10*, so I
> >>>never looked into the real reason for it. :)
> >
> >
> >>Ok, I'll try 2.6.10. But note that the problem does not occur
> >>when unplugging the stick, but when I plug it *in*.
> >
> >
> >Right, but it's the disconnect that does not work properly and the next
> >connect will fail cause of that.
> >
> Hmm, but I've seen this problem when inserting the stick for the
> first time after booting.
> Does the hotplug system preserve state between reboots/pwer-off?

No, there is no state outside the kernel. The time I had the same
problems on my box, the first connect was always working...

Kay


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-12-06  9:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-05 17:39 FC3 system hangs after inserting USB stick Stefan Behrens
2004-12-05 17:52 ` Kay Sievers
2004-12-06  7:50 ` Stefan Behrens
2004-12-06  9:40 ` Kay Sievers
2004-12-06  9:48 ` Stefan Behrens
2004-12-06  9:58 ` Kay Sievers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).