[Solved] USB microsd card problem

General support questions
Post Reply
colinabrett
Posts: 22
Joined: 2012/01/31 10:05:24
Contact:

[Solved] USB microsd card problem

Post by colinabrett » 2016/07/01 07:22:33

Hello,

I am having problems with mounting a 64Gb microsd card via a usb adapter. I had no problems with similar 32Gb devices but, after a few failed attempts to fix it, now no microsd cards can be read at all.

If I insert the adapter into a usb2 port, in /var/log/messages I see:

Jul 1 08:04:23 rokk kernel: usb 1-1: new high-speed USB device number 16 using xhci_hcd
Jul 1 08:04:23 rokk kernel: usb 1-1: device descriptor read/64, error -71
Jul 1 08:04:23 rokk kernel: usb 1-1: device descriptor read/64, error -71

Inserting into a usb3 port, I see this message:

Jul 1 08:05:12 rokk kernel: usb 3-1.2: new high-speed USB device number 5 using ehci-pci

The usb stick isn't mounted and can't be seen by fdisk. Some basic information:

22 root@rokk# uname -a
Linux rokk 3.10.0-327.22.2.el7.x86_64 #1 SMP Thu Jun 23 17:05:11 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
23 root@rokk# cat /etc/centos-release
CentOS Linux release 7.2.1511 (Core)
24 root@rokk# 2

The problems started on 29.6.2016. The first 64Gb chip I used was formatted with an exFAT filesystem and would not automount. I found a couple of packages (exfat-utils and fuser-exfat) on the nux-dextop repo, which at least allowed me to see the microsd card. I reformatted the card as vfat and all seemed well. Then I used a second 64Gb chip, which seemed OK but - in a hurry and a bit stressed at the time - I removed the usb stick without unmounting it.

From then on I have had problems with microsd cards.

I have searched for the "device descriptor" error and none of the solutions I found have worked.

24 root@rokk# fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes, 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: dos
Disk identifier: 0x0004ca98

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 1026047 512000 83 Linux
/dev/sda2 1026048 625141759 312057856 8e Linux LVM

Disk /dev/mapper/centos_rokk-swap: 4177 MB, 4177526784 bytes, 8159232 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/mapper/centos_rokk-root: 53.7 GB, 53687091200 bytes, 104857600 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/mapper/centos_rokk-home: 261.7 GB, 261678432256 bytes, 511090688 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

25 root@rokk#

26 root@rokk# dmesg | tail
[ 7136.657323] hid-generic 0003:062A:4101.0003: input,hidraw0: USB HID v1.10 Keyboard [MOSART Semi. 2.4G Keyboard Mouse] on usb-0000:00:14.0-2/input0
[ 7136.659675] input: MOSART Semi. 2.4G Keyboard Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.1/input/input15
[ 7136.710958] hid-generic 0003:062A:4101.0004: input,hiddev0,hidraw1: USB HID v1.10 Mouse [MOSART Semi. 2.4G Keyboard Mouse] on usb-0000:00:14.0-2/input1
[ 7163.571768] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 7223.738553] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 7425.437282] usb 1-1: new high-speed USB device number 16 using xhci_hcd
[ 7425.590403] usb 1-1: device descriptor read/64, error -71
[ 7425.844665] usb 1-1: device descriptor read/64, error -71
[ 7474.517895] usb 3-1.2: new high-speed USB device number 5 using ehci-pci
[ 7763.433033] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
27 root@rokk#

I'm really confused by this. I'm beginning to wonder if, in removing the microsd adapter without unmounting it properly, I have "blown" the adapter in some way. Some of the posts I have read indicate the microsd card is not receiving enough power, so it could be a hardware issue.

Any thoughts - and any extra information you may need - would be gratefully received.
Last edited by colinabrett on 2016/07/02 15:23:58, edited 1 time in total.

mghe
Posts: 748
Joined: 2015/11/24 12:04:43
Location: Katowice, Poland

Re: USB microsd card problem

Post by mghe » 2016/07/01 08:36:32

Maybe your adapter is fail, just try in build sd crad slot if you have it.

show output from: lsblk

colinabrett
Posts: 22
Joined: 2012/01/31 10:05:24
Contact:

Re: USB microsd card problem

Post by colinabrett » 2016/07/01 09:09:29

mghe wrote:Maybe your adapter is fail, just try in build sd crad slot if you have it.

show output from: lsblk
Thanks for your response.

Before inserting a usb card:

28 root@rokk# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 298.1G 0 disk
├─sda1 8:1 0 500M 0 part /boot
└─sda2 8:2 0 297.6G 0 part
├─centos_rokk-swap 253:0 0 3.9G 0 lvm [SWAP]
├─centos_rokk-root 253:1 0 50G 0 lvm /
└─centos_rokk-home 253:2 0 243.7G 0 lvm /home
sr0 11:0 1 1024M 0 rom
29 root@rokk#

Then I insert the card with the adapter and /var/log/messages shows:

Jul 1 10:05:50 rokk kernel: usb 1-2: new high-speed USB device number 18 using xhci_hcd
Jul 1 10:05:50 rokk kernel: usb 1-2: device descriptor read/64, error -71
Jul 1 10:05:51 rokk kernel: usb 1-2: device descriptor read/64, error -71

lsblk output is:

29 root@rokk# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 298.1G 0 disk
├─sda1 8:1 0 500M 0 part /boot
└─sda2 8:2 0 297.6G 0 part
├─centos_rokk-swap 253:0 0 3.9G 0 lvm [SWAP]
├─centos_rokk-root 253:1 0 50G 0 lvm /
└─centos_rokk-home 253:2 0 243.7G 0 lvm /home
sr0 11:0 1 1024M 0 rom
30 root@rokk#

It appears there is no change.

EDIT: I have just mounted a 16Gb usb stick in all three ports on my machine. It automounted and worked perfectly, so, thank goodness, there appears to be no hardware problem on the laptop itself. Maybe I need a new adapter?

Regards,
Colin Brett

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: USB microsd card problem

Post by gerald_clark » 2016/07/01 16:25:53

64G sd cards are SDXC.
32G sd cards are SDHC.
Are you sure your reader is SDXC compatible?

colinabrett
Posts: 22
Joined: 2012/01/31 10:05:24
Contact:

Re: USB microsd card problem

Post by colinabrett » 2016/07/01 20:06:19

gerald_clark wrote:64G sd cards are SDXC.
32G sd cards are SDHC.
Are you sure your reader is SDXC compatible?
Hi Gerald,

Thanks for your input. The "reader" is just an adapter to make a microsd card fit into a normal usb port. I don't even know if there's anything electronic inside it, just a set of gold contacts. As for the usb ports themselves, lsusb gives:

33 root@rokk# lsusb
Bus 001 Device 022: ID 062a:4101 Creative Labs Wireless Keyboard/Mouse
Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 003: ID 8087:07da Intel Corp.
Bus 004 Device 004: ID 5986:0401 Acer, Inc
34 root@rokk#

Aside from lsusb -v , whose output is too long to post here, is there anything else I can run to get more details?

I'm probably going to buy another adapter, just to rule that out.

Colin

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: USB microsd card problem

Post by gerald_clark » 2016/07/01 21:51:55

There is a little processor in the USB adapter.
Unless it is specifically SDXC compatible, it will not work with 64G and higher SD cards.

colinabrett
Posts: 22
Joined: 2012/01/31 10:05:24
Contact:

Re: USB microsd card problem

Post by colinabrett » 2016/07/02 15:23:24

gerald_clark wrote:There is a little processor in the USB adapter.
Unless it is specifically SDXC compatible, it will not work with 64G and higher SD cards.
Hi Gerald,

I didn't know the adapter had any electronics inside it. I thought it was just a dumb connector. You live and learn :-)

Anyway, I bought a new adapter, which is clearly labelled as SDXC compatible, and things are working fine now.

Thanks for your advice.

Can I or a moderator mark this as solved?

Colin

Post Reply

Return to “CentOS 7 - General Support”