FC3 system hangs after inserting USB stick
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 , host=0, driver 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 <[email protected]> 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.
Signature · 14 lines
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 [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 7 lines · Stefan Behrens
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.
Quoted 6 lines
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 20 lines · Kay Sievers
Quoted 7 lines · Stefan Behrens
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.
Quoted 7 lines
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.
Quoted 8 lines
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.
Signature · 15 lines
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 [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 15 lines · Stefan Behrens
Quoted 14 lines · Kay Sievers
Quoted 6 lines · Stefan Behrens
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.
Quoted 5 lines
Quoted 2 lines
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 11 lines · Kay Sievers
Quoted 7 lines · Stefan Behrens
Quoted 7 lines
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. :)
Quoted 7 lines
Quoted 2 lines
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.
Signature · 15 lines
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 [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 16 lines · Stefan Behrens
Quoted 15 lines · Kay Sievers
Quoted 11 lines · Stefan Behrens
Quoted 7 lines
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*.
Quoted 6 lines
Quoted 3 lines
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel