miércoles, 17 de febrero de 2016

Pendrive unable to read "error -71" "unable to enumerate USB device"

A 8GB pendrive was not working in windows, and the owner gave it to me because I use linux and "she heard it is more powerful"

Just inserted in linux, it wasn't working
dmesg output

Feb 17 13:08:51 invitado kernel: [  125.540289] usb 5-1: new full-speed USB device number 2 using uhci_hcd
Feb 17 13:08:52 invitado kernel: [  125.956083] usb 5-1: device not accepting address 2, error -71
Feb 17 13:08:53 invitado kernel: [  126.892059] usb 5-1: new full-speed USB device number 6 using uhci_hcd
Feb 17 13:08:53 invitado kernel: [  127.304292] usb 5-1: device not accepting address 6, error -71

Feb 17 13:09:18 invitado kernel: [  152.228211] usb 5-1: device descriptor read/64, error -71
Feb 17 13:09:27 invitado kernel: [  161.192330] hub 5-0:1.0: unable to enumerate USB device on port 1
 

Some googling
https://paulphilippov.com/articles/how-to-fix-device-not-accepting-address-error No way ... my webcam is also USB

Second attemp
http://askubuntu.com/questions/117524/usb-device-not-accepting-address   

Changed kernel and reboot, same message, not working

Without reboot, the same link has more info
$ sudo -s
# cd /sys/bus/pci/drivers/uhci_hcd
# echo */usb5
# echo 0000:... > unbind 


I tested with usb5, and after some time, it worked

Feb 17 13:16:51 invitado kernel: [  605.137210] uhci_hcd 0000:00:1d.0: remove, state 4
Feb 17 13:16:51 invitado kernel: [  605.137223] usb usb5: USB disconnect, device number 1
Feb 17 13:16:51 invitado kernel: [  605.143482] uhci_hcd 0000:00:1d.0: USB bus 5 deregistered

...
Feb 17 13:18:02 invitado kernel: [  676.036272] usb 6-1: device not accepting address 27, error -71
Feb 17 13:18:05 invitado kernel: [  679.004846] usb 2-1: new high-speed USB device number 6 using ehci-pci
Feb 17 13:18:05 invitado kernel: [  679.027777] usb 2-1: New USB device found, idVendor=1516, idProduct=1213
Feb 17 13:18:05 invitado kernel: [  679.027790] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Feb 17 13:18:05 invitado kernel: [  679.027797] usb 2-1: Product: DISK 2.0
Feb 17 13:18:05 invitado kernel: [  679.027803] usb 2-1: Manufacturer: USB
Feb 17 13:18:05 invitado kernel: [  679.027808] usb 2-1: SerialNumber: 0016E667DC4FA9C122CFB75A
Feb 17 13:18:05 invitado mtp-probe: checking bus 2, device 6: "/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1"
Feb 17 13:18:05 invitado mtp-probe: bus: 2, device: 6 was not an MTP device
Feb 17 13:18:05 invitado kernel: [  679.118474] usb-storage 2-1:1.0: USB Mass Storage device detected
Feb 17 13:18:05 invitado kernel: [  679.121708] scsi6 : usb-storage 2-1:1.0
Feb 17 13:18:05 invitado kernel: [  679.121821] usbcore: registered new interface driver usb-storage
Feb 17 13:18:06 invitado kernel: [  680.120776] scsi 6:0:0:0: Direct-Access     USB      DISK 2.0         1.00 PQ: 0 ANSI: 2
Feb 17 13:18:06 invitado kernel: [  680.123775] sd 6:0:0:0: Attached scsi generic sg2 type 0
Feb 17 13:18:06 invitado kernel: [  680.125789] sd 6:0:0:0: [sdb] 16035840 512-byte logical blocks: (8.21 GB/7.64 GiB)
Feb 17 13:18:06 invitado kernel: [  680.128287] sd 6:0:0:0: [sdb] Write Protect is off
Feb 17 13:18:06 invitado kernel: [  680.128293] sd 6:0:0:0: [sdb] Mode Sense: 23 00 00 00
Feb 17 13:18:06 invitado kernel: [  680.129111] sd 6:0:0:0: [sdb] No Caching mode page found
Feb 17 13:18:06 invitado kernel: [  680.129118] sd 6:0:0:0: [sdb] Assuming drive cache: write through
Feb 17 13:18:06 invitado kernel: [  680.133230] sd 6:0:0:0: [sdb] No Caching mode page found
Feb 17 13:18:06 invitado kernel: [  680.133237] sd 6:0:0:0: [sdb] Assuming drive cache: write through
Feb 17 13:18:07 invitado kernel: [  680.890912]  sdb: sdb1
Feb 17 13:18:07 invitado kernel: [  680.896727] sd 6:0:0:0: [sdb] No Caching mode page found
Feb 17 13:18:07 invitado kernel: [  680.896740] sd 6:0:0:0: [sdb] Assuming drive cache: write through
Feb 17 13:18:07 invitado kernel: [  680.896744] sd 6:0:0:0: [sdb] Attached SCSI removable disk
Feb 17 13:18:08 invitado udisksd[2165]: Mounted /dev/sdb1 at /media/enrique/MIRIAM on behalf of uid 1000