You are not logged in.

#1 2012-06-19 16:11:39

xsmile
Member
Registered: 2012-03-31
Posts: 31

[SOLVED] External drive disables usb ports

Hi, recently I discovered a problem that is caused by an external hard drive connected via USB, which disables several USB ports completely until reboot.
I'm running a fully updated Arch on a Lenovo S205. You can see the hardware configuration here.

I can reproduce the problem very easily:
- Plug the drive into one of the right ports, wait for it to be recognized
- Wait about 10 seconds doing nothing
- Open any file manager

The S205 got three visible USB ports: one on the left and two on the right side.
The left port is not affected though. The problem just occurs when using one of the right ports.

Disabling 'laptop-mode' has no effect.

Some logs:

Mounting:

[   99.799777] usb 2-2: new high-speed USB device number 6 using ehci_hcd
[   99.927995] scsi3 : usb-storage 2-2:1.0
[  100.930643] scsi 3:0:0:0: Direct-Access     WD       10EAVS External  1.75 PQ: 0 ANSI: 4
[  100.933576] sd 3:0:0:0: [sdc] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[  100.935077] sd 3:0:0:0: [sdc] Write Protect is off
[  100.935088] sd 3:0:0:0: [sdc] Mode Sense: 23 00 00 00
[  100.936121] sd 3:0:0:0: [sdc] No Caching mode page present
[  100.936131] sd 3:0:0:0: [sdc] Assuming drive cache: write through
[  100.940299] sd 3:0:0:0: [sdc] No Caching mode page present
[  100.940312] sd 3:0:0:0: [sdc] Assuming drive cache: write through
[  100.963749]  sdc: sdc1
[  100.967402] sd 3:0:0:0: [sdc] No Caching mode page present
[  100.967414] sd 3:0:0:0: [sdc] Assuming drive cache: write through
[  100.967419] sd 3:0:0:0: [sdc] Attached SCSI disk

On error:

[  117.722379] ehci_hcd 0000:00:13.2: force halt; handshake ffffc90000664424 00004000 00000000 -> -110
[  117.722388] ehci_hcd 0000:00:13.2: HC died; cleaning up
[  117.722555] usb 2-2: USB disconnect, device number 6
[  117.779352] scsi 3:0:0:0: [sdc] Unhandled error code
[  117.779362] scsi 3:0:0:0: [sdc]  Result: hostbyte=0x07 driverbyte=0x00
[  117.779368] scsi 3:0:0:0: [sdc] CDB: cdb[0]=0x28: 28 00 45 6d 15 d7 00 00 08 00
[  117.779383] end_request: I/O error, dev sdc, sector 1164776919
[  117.779393] Buffer I/O error on device sdc1, logical block 145597107
[  117.779442] Buffer I/O error on device sdc1, logical block 145597107
[  117.790025] usb 2-3: USB disconnect, device number 4
[  117.809966] usb 2-5: USB disconnect, device number 5

lsusb before plugging in

Bus 002 Device 003: ID 5986:0292 Acer, Inc 
Bus 002 Device 004: ID 0bda:0139 Realtek Semiconductor Corp. Card reader
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

lsusb after plugging in

Bus 002 Device 005: ID 1058:1003 Western Digital Technologies, Inc. Elements 1000 GB
Bus 002 Device 003: ID 5986:0292 Acer, Inc 
Bus 002 Device 004: ID 0bda:0139 Realtek Semiconductor Corp. Card reader
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

lsusb after error

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

"Acer, Inc" (webcam) and the "Card reader" are also kicked out, it seems.

I can use a 32 GB thumb drive without any issues by the way.
The hard drive itself should be OK, it works well in Windows 7.

Thanks for any help in advance.

Last edited by xsmile (2012-07-18 21:58:33)

Offline

#2 2012-06-20 17:23:58

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: [SOLVED] External drive disables usb ports

the problem happens either in Winz ?


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#3 2012-06-29 16:25:33

Ashimura
Member
Registered: 2012-06-29
Posts: 5

Re: [SOLVED] External drive disables usb ports

Thank you for posting this issue. I have the same Laptop and exactly the same problem. I already asked in the german IRC - Channel for advice, but nobody was able to help me (although they tried really hard, thanks for that if you may read this ;-)). So I hope anyone got an idea how to fix this?

@nTia89
The problem doesn't exist under Windows 7. I also tried to mount usb drives under the netinstall live version of Archlinux. There the ports worked like a charm. But under an installed archlinux the issue exists. I hope you understand what I mean. Sorry for my bad english ;-(

Offline

#4 2012-06-29 16:50:19

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] External drive disables usb ports

check dmesg immediately after connecting the drive. Lets see what it says.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#5 2012-06-29 17:01:12

Ashimura
Member
Registered: 2012-06-29
Posts: 5

Re: [SOLVED] External drive disables usb ports

@Inxsible
xsmile already posted the errorlog from the kernel...But here again:

[  117.722379] ehci_hcd 0000:00:13.2: force halt; handshake ffffc90000664424 00004000 00000000 -> -110
[  117.722388] ehci_hcd 0000:00:13.2: HC died; cleaning up
[  117.722555] usb 2-2: USB disconnect, device number 6
[  117.779352] scsi 3:0:0:0: [sdc] Unhandled error code
[  117.779362] scsi 3:0:0:0: [sdc]  Result: hostbyte=0x07 driverbyte=0x00
[  117.779368] scsi 3:0:0:0: [sdc] CDB: cdb[0]=0x28: 28 00 45 6d 15 d7 00 00 08 00
[  117.779383] end_request: I/O error, dev sdc, sector 1164776919
[  117.779393] Buffer I/O error on device sdc1, logical block 145597107
[  117.779442] Buffer I/O error on device sdc1, logical block 145597107
[  117.790025] usb 2-3: USB disconnect, device number 4
[  117.809966] usb 2-5: USB disconnect, device number 5

my kernel says:

[ 1162.469307] ehci_hcd 0000:00:13.2: force halt; handshake ffffc90000676424 00004000 00000000 -> -110
[ 1162.469322] ehci_hcd 0000:00:13.2: HC died; cleaning up
[ 1162.469511] usb 2-2: USB disconnect, device number 4
[ 1162.532338] sd 2:0:0:0: [sdc] Unhandled error code
[ 1162.532352] sd 2:0:0:0: [sdc]  Result: hostbyte=0x01 driverbyte=0x00
[ 1162.532364] sd 2:0:0:0: [sdc] CDB: cdb[0]=0x28: 28 00 00 00 00 00 00 00 08 00
[ 1162.532388] end_request: I/O error, dev sdc, sector 0
[ 1162.532400] Buffer I/O error on device sdc, logical block 0
[ 1162.532699] ldm_validate_partition_table(): Disk read failed.
[ 1162.532786]  sdc: unable to read partition table
[ 1162.533299] sd 2:0:0:0: [sdc] Attached SCSI removable disk
[ 1162.534686] usb 2-3: USB disconnect, device number 2
[ 1162.553331] usb 2-5: USB disconnect, device number 3

Offline

#6 2012-06-29 17:17:53

xsmile
Member
Registered: 2012-03-31
Posts: 31

Re: [SOLVED] External drive disables usb ports

Hi Ashimura, nice to see someone else having the same problem. I'm sorry for you, though.
Which hard drive model is it by the way?

@Inxsible:
dmesg directly after connecting:

[ 1273.048437] usb 2-1: new high-speed USB device number 5 using ehci_hcd
[ 1273.247150] usbcore: registered new interface driver uas
[ 1273.251822] Initializing USB Mass Storage driver...
[ 1273.252102] scsi2 : usb-storage 2-1:1.0
[ 1273.252619] usbcore: registered new interface driver usb-storage
[ 1273.252626] USB Mass Storage support registered.
[ 1274.255316] scsi 2:0:0:0: Direct-Access     WD       10EAVS External  1.75 PQ: 0 ANSI: 4
[ 1274.257632] sd 2:0:0:0: [sdc] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[ 1274.259675] sd 2:0:0:0: [sdc] Write Protect is off
[ 1274.259684] sd 2:0:0:0: [sdc] Mode Sense: 23 00 00 00
[ 1274.262869] sd 2:0:0:0: [sdc] No Caching mode page present
[ 1274.262884] sd 2:0:0:0: [sdc] Assuming drive cache: write through
[ 1274.266776] sd 2:0:0:0: [sdc] No Caching mode page present
[ 1274.266793] sd 2:0:0:0: [sdc] Assuming drive cache: write through
[ 1274.282920]  sdc: sdc1
[ 1274.287410] sd 2:0:0:0: [sdc] No Caching mode page present
[ 1274.287421] sd 2:0:0:0: [sdc] Assuming drive cache: write through
[ 1274.287426] sd 2:0:0:0: [sdc] Attached SCSI disk

After doing nothing for a couple of minutes and trying to mount the drive in Thunar:

Failed to mount "1 TB".

Error mounting /dev/sdc1 at /run/media/alex/1 TB: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=100,dmask=0077,fmask=0177" "/dev/sdc1" "/run/media/alex/1 TB"' exited with non-zero exit status 13: Error reading bootsector: Input/output error
Failed to mount '/dev/sdc1': Input/output error
NTFS is either inconsistent, or there is a hardware fault, or it's a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows twice. The usage of the /f parameter is very
important! If the device is a SoftRAID/FakeRAID then first activate
it and mount a different device under the /dev/mapper/ directory, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation
for more details.
.

Checked dmesg again:

[ 1422.582715] ehci_hcd 0000:00:13.2: force halt; handshake ffffc90000664424 00004000 00000000 -> -110
[ 1422.582723] ehci_hcd 0000:00:13.2: HC died; cleaning up
[ 1422.582890] usb 2-1: USB disconnect, device number 5
[ 1422.640329] scsi 2:0:0:0: [sdc] Unhandled error code
[ 1422.640338] scsi 2:0:0:0: [sdc]  Result: hostbyte=0x07 driverbyte=0x00
[ 1422.640344] scsi 2:0:0:0: [sdc] CDB: cdb[0]=0x28: 28 00 00 00 00 3f 00 00 20 00
[ 1422.640358] end_request: I/O error, dev sdc, sector 63
[ 1422.640366] Buffer I/O error on device sdc1, logical block 0
[ 1422.640374] Buffer I/O error on device sdc1, logical block 1
[ 1422.640379] Buffer I/O error on device sdc1, logical block 2
[ 1422.640383] Buffer I/O error on device sdc1, logical block 3
[ 1422.640396] Buffer I/O error on device sdc1, logical block 4
[ 1422.640400] Buffer I/O error on device sdc1, logical block 5
[ 1422.640404] Buffer I/O error on device sdc1, logical block 6
[ 1422.640408] Buffer I/O error on device sdc1, logical block 7
[ 1422.640412] Buffer I/O error on device sdc1, logical block 8
[ 1422.640416] Buffer I/O error on device sdc1, logical block 9
[ 1422.654118] usb 2-3: USB disconnect, device number 3
[ 1422.664881] usb 2-5: USB disconnect, device number 4

Offline

#7 2012-06-29 17:41:16

Ashimura
Member
Registered: 2012-06-29
Posts: 5

Re: [SOLVED] External drive disables usb ports

Where can I check the hard drive model? x-) Or do you mean the usb drives?

Offline

#8 2012-06-29 18:20:51

xsmile
Member
Registered: 2012-03-31
Posts: 31

Re: [SOLVED] External drive disables usb ports

I mean the external hard drive model. It should be "WD 10EAVS" in my case.
Plug it in and check your dmesg ([ 1274.255316] scsi 2:0:0:0: Direct-Access     WD       10EAVS External  1.75 PQ: 0 ANSI: 4)

Offline

#9 2012-06-29 18:22:55

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] External drive disables usb ports

xsmile wrote:

Failed to mount "1 TB"

Your hard drive label has a space in it. Change the label to something without a space and see if that works.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#10 2012-06-29 19:04:39

xsmile
Member
Registered: 2012-03-31
Posts: 31

Re: [SOLVED] External drive disables usb ports

I booted Win7 to relabel it and it took longer than usual to be recognized by Explorer.
Now - back in Arch - it seems to run fine. Thanks!

What puzzles me, is that his "bug" disables even other USB ports.

Offline

#11 2012-06-29 19:19:58

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] External drive disables usb ports

spaces are always problematic. It's always better to provide labels without spaces. You can use _ as an alternative.

Don't forget to mark thread as solved.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#12 2012-06-29 19:59:07

Ashimura
Member
Registered: 2012-06-29
Posts: 5

Re: [SOLVED] External drive disables usb ports

hmm sadly the problem still exists on my notebook...i relabeled my usb stick too but it didnt solve the problem here :-(

@xsmile
thanks for the hint...i hope im posting the right lines:

[user@netbook ~]$ dmesg | grep Direct-Access
[    1.315927] scsi 0:0:0:0: Direct-Access     ATA      WDC WD3200BPVT-2 01.0 PQ: 0 ANSI: 5
[    6.297946] scsi 1:0:0:0: Direct-Access     Generic- xD/SD/M.S.       1.00 PQ: 0 ANSI: 0 CCS
[   43.540420] scsi 2:0:0:0: Direct-Access     Generic  Flash Disk       8.07 PQ: 0 ANSI: 2
[   69.861308] scsi 3:0:0:0: Direct-Access     Generic  Flash Disk       8.07 PQ: 0 ANSI: 2

Offline

#13 2012-07-15 14:03:15

Ashimura
Member
Registered: 2012-06-29
Posts: 5

Re: [SOLVED] External drive disables usb ports

I finally found a solution that works as it seems that the driver for the card reader is causing the problem. Just easily blacklist the module rts5139 and you will be fine.
Here is my modprobe.d/blacklist.conf

#card reader lenovo s205 blocks the usb ports
blacklist rts5139

Well then lets wait for a workaround :-) Anyway thanks for all the offered help!

Offline

Board footer

Powered by FluxBB