Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
external usb cardreaders not working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Spanik
Veteran
Veteran


Joined: 12 Dec 2003
Posts: 1014
Location: Belgium

PostPosted: Sun Jul 18, 2021 9:07 am    Post subject: external usb cardreaders not working Reply with quote

The usb is working fine, I can use regular USB sticks, connect a USB GPS, an Arduino, rs232 interface and other things.

But when I use a card reader to read the SD card of my camera, it doesn't work. When I plug in the card it is not found. It is not found by fdisk either. It does not recognises anything. I tried serveral card readers but always the same result. It looks as if it only works when there is a "direct usb connection".
_________________
Expert in non-working solutions
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54852
Location: 56N 3W

PostPosted: Sun Jul 18, 2021 10:54 am    Post subject: Reply with quote

Spanik,

Unplug the card reader and remove any cards.

Wait 10 secs or so.
Plug the card reader in and look at the end of dmesg.
Post all the card reader messages since you plugged it in.

That will tell us about faults.

Also post the output of
Code:
lsusb
A few USB card readers need kernel modules.
Cameras sometimes use proprietary on disk formats too but that sounds like a potential problem for the future.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Spanik
Veteran
Veteran


Joined: 12 Dec 2003
Posts: 1014
Location: Belgium

PostPosted: Tue Jul 27, 2021 1:16 pm    Post subject: Reply with quote

Sorry for the late reply but I went on a short break and forgot to take the offending card reader with me.

Plugging in the reader, then dmesg gives:
Code:
[  553.094279] [  888.456848] usb 3-2: new high-speed USB device number 31 using xhci_hcd
[  888.584936] usb 3-2: Device not responding to setup address.
[  888.791867] usb 3-2: Device not responding to setup address.
[  888.999849] usb 3-2: device not accepting address 31, error -71
[  892.692849] usb 1-1.2: new high-speed USB device number 6 using ehci-pci
[  892.887196] usb 1-1.2: New USB device found, idVendor=0bda, idProduct=0169, bcdDevice=61.23
[  892.887202] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  892.887205] usb 1-1.2: Product: USB2.0-CRW
[  892.887207] usb 1-1.2: Manufacturer: Generic
[  892.887209] usb 1-1.2: SerialNumber: 20070818000000000
[  892.889619] usb-storage 1-1.2:1.1: USB Mass Storage device detected
[  892.890068] scsi host6: usb-storage 1-1.2:1.1
[  893.944154] scsi 6:0:0:0: Direct-Access     Generic- Multi-Card       1.00 PQ: 0 ANSI: 0 CCS
[  893.944468] sd 6:0:0:0: Attached scsi generic sg3 type 0
[  893.960431] sd 6:0:0:0: [sdc] Attached SCSI removable disk

When I next plug in an SD card dmesg reads:
Code:

[  919.300883] sd 6:0:0:0: [sdc] 62333952 512-byte logical blocks: (31.9 GB/29.7 GiB)
[  919.359403] sd 6:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE cmd_age=0s
[  919.359411] sd 6:0:0:0: [sdc] tag#0 Sense Key : Medium Error [current]
[  919.359414] sd 6:0:0:0: [sdc] tag#0 Add. Sense: Unrecovered read error
[  919.359419] sd 6:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[  919.359424] blk_update_request: critical medium error, dev sdc, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[  919.359428] Buffer I/O error on dev sdc, logical block 0, async page read
[  919.413526] sd 6:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE cmd_age=0s
[  919.413532] sd 6:0:0:0: [sdc] tag#0 Sense Key : Medium Error [current]
[  919.413536] sd 6:0:0:0: [sdc] tag#0 Add. Sense: Unrecovered read error
[  919.413540] sd 6:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[  919.413544] blk_update_request: critical medium error, dev sdc, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[  919.413547] Buffer I/O error on dev sdc, logical block 0, async page read
[  919.413588]  sdc: unable to read partition table
[  919.469834] sd 6:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE cmd_age=0s
[  919.469840] sd 6:0:0:0: [sdc] tag#0 Sense Key : Medium Error [current]
[  919.469843] sd 6:0:0:0: [sdc] tag#0 Add. Sense: Unrecovered read error
[  919.469848] sd 6:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 03 b7 23 80 00 00 08 00
[  919.469852] blk_update_request: critical medium error, dev sdc, sector 62333824 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[  919.523900] sd 6:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE cmd_age=0s
[  919.523906] sd 6:0:0:0: [sdc] tag#0 Sense Key : Medium Error [current]
[  919.523910] sd 6:0:0:0: [sdc] tag#0 Add. Sense: Unrecovered read error
[  919.523914] sd 6:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 03 b7 23 80 00 00 08 00
[  919.523918] blk_update_request: critical medium error, dev sdc, sector 62333824 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[  919.523922] Buffer I/O error on dev sdc, logical block 7791728, async page read


Plugging this same cardreader in the desktop and then plugging in the same SD card:
Code:
[ 4818.953864] usb 7-1: new high-speed USB device number 4 using xhci_hcd
[ 4819.218272] usb 7-1: New USB device found, idVendor=0bda, idProduct=0169, bcdDevice=61.23
[ 4819.218274] usb 7-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4819.218275] usb 7-1: Product: USB2.0-CRW
[ 4819.218277] usb 7-1: Manufacturer: Generic
[ 4819.218278] usb 7-1: SerialNumber: 20070818000000000
[ 4819.470402] usb-storage 7-1:1.1: USB Mass Storage device detected
[ 4819.470541] scsi host18: usb-storage 7-1:1.1
[ 4820.495915] scsi 18:0:0:0: Direct-Access     Generic- Multi-Card       1.00 PQ: 0 ANSI: 0 CCS
[ 4820.496078] sd 18:0:0:0: Attached scsi generic sg8 type 0
[ 4820.511855] sd 18:0:0:0: [sdg] Attached SCSI removable disk
[ 4870.363080] sd 18:0:0:0: [sdg] 62333952 512-byte logical blocks: (31.9 GB/29.7 GiB)
[ 4870.398042]  sdg: sdg1

And the card shows in the automounter, can be mounted and read.
_________________
Expert in non-working solutions
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum