I am trying to access SD cards on Fedora 28, but do not have any success. System info is as follows:

$ lsb_release -a
LSB Version:    :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: Fedora
Description:    Fedora release 28 (Twenty Eight)
Release:    28
Codename:   TwentyEight

I was not able to access different SD cards using two different card readers. Despite of being accessible on both macOS and Windows, none of them is shown in the Nautilus file browser, the desktop or elsewhere obvious.

The card readers are recognized by the system as per lsusb output:

$ lsusb -v
# some other USB devices
Bus 001 Device 005: ID 058f:6362 Alcor Micro Corp. Flash Card Reader/Writer
Device Descriptor:
bLength                18
bDescriptorType         1
bcdUSB               2.00
bDeviceClass            0 
bDeviceSubClass         0 
bDeviceProtocol         0 
bMaxPacketSize0        64
idVendor           0x058f Alcor Micro Corp.
idProduct          0x6362 Flash Card Reader/Writer
bcdDevice            1.29
iManufacturer           1 
iProduct                2 
iSerial                 3 
bNumConfigurations      1
Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
    (Bus Powered)
    MaxPower              250mA
    Interface Descriptor:
    bLength                 9
    bDescriptorType         4
    bInterfaceNumber        0
    bAlternateSetting       0
    bNumEndpoints           2
    bInterfaceClass         8 Mass Storage
    bInterfaceSubClass      6 SCSI
    bInterfaceProtocol     80 Bulk-Only
    iInterface              0 
    Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
        Transfer Type            Bulk
        Synch Type               None
        Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
    Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
        Transfer Type            Bulk
        Synch Type               None
        Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0

# some other USB devices

Bus 001 Device 006: ID 0dda:2027 Integrated Circuit Solution, Inc. USB 2.0 Card Reader
Device Descriptor:
bLength                18
bDescriptorType         1
bcdUSB               2.00
bDeviceClass            0 
bDeviceSubClass         0 
bDeviceProtocol         0 
bMaxPacketSize0        64
idVendor           0x0dda Integrated Circuit Solution, Inc.
idProduct          0x2027 USB 2.0 Card Reader
bcdDevice            1.6e
iManufacturer           1 
iProduct                2 
iSerial                 3 
bNumConfigurations      1
Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          4 
    bmAttributes         0x80
    (Bus Powered)
    MaxPower              500mA
    Interface Descriptor:
    bLength                 9
    bDescriptorType         4
    bInterfaceNumber        0
    bAlternateSetting       0
    bNumEndpoints           2
    bInterfaceClass         8 Mass Storage
    bInterfaceSubClass      6 SCSI
    bInterfaceProtocol     80 Bulk-Only
    iInterface              5 
    Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
        Transfer Type            Bulk
        Synch Type               None
        Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
    Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
        Transfer Type            Bulk
        Synch Type               None
        Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0

# some other USB devices

I then had a look at the udev events while plugging a card in and out:

$ udevadm monitor
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[701.434565] change   /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host4/target4:0:0/4:0:0:2/block/sde (block)
UDEV  [714.263816] change   /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host4/target4:0:0/4:0:0:2/block/sde (block)
KERNEL[748.477184] change   /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host4/target4:0:0/4:0:0:2/block/sde (block)
UDEV  [761.338940] change   /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host4/target4:0:0/4:0:0:2/block/sde (block)

In addition, I had a look at the kernel messages:

$ dmesg
[  603.846840] usb-storage 1-3:1.0: USB Mass Storage device detected
[  603.847749] scsi host4: usb-storage 1-3:1.0
[  605.703531] scsi 4:0:0:0: Direct-Access     Generic                CF 1.6E PQ: 0 ANSI: 0 CCS
[  605.704982] scsi 4:0:0:1: Direct-Access     Generic                MS 1.6E PQ: 0 ANSI: 0 CCS
[  606.509034] scsi 4:0:0:2: Direct-Access     Generic            MMC/SD 1.6E PQ: 0 ANSI: 0 CCS
[  606.510387] scsi 4:0:0:3: Direct-Access     Generic                SM 1.6E PQ: 0 ANSI: 0 CCS
[  606.511519] sd 4:0:0:0: Attached scsi generic sg4 type 0
[  606.511943] sd 4:0:0:1: Attached scsi generic sg5 type 0
[  606.512177] sd 4:0:0:2: Attached scsi generic sg6 type 0
[  606.512408] sd 4:0:0:3: Attached scsi generic sg7 type 0
[  608.924586] sd 4:0:0:1: [sdd] Attached SCSI removable disk
[  629.830776] sd 4:0:0:2: [sde] Attached SCSI removable disk
[  633.048754] sd 4:0:0:3: [sdf] Attached SCSI removable disk
[  639.490479] sd 4:0:0:0: [sdc] Attached SCSI removable disk

Both the output of dmesg and udevadm monitor are telling that the card should be shown as sde. However, fdisk -l does not list sde. Besides that, trying to mount the device manually, raises an error:

$ mount -t auto /dev/sde /mnt/
mount: /mnt: no medium found on /dev/sde.

I am not sure, whether the needed driver module is loaded properly, since there is no mmc0-like entry in the dmesg output (as I am used to know from Debian-based systems). lsmod does not list the mmc0 kernel module either:

$ lsmod | grep mm
rtl8192c_common        61440  1 rtl8192cu
rtlwifi                98304  3 rtl8192c_common,rtl_usb,rtl8192cu

The only mmc-like modules which seems to be available but are not loaded are mmc_block and mmc_core:

$ modprobe mm  # listing suggestions using tab auto-completion
mma7660    mmc_block  mmc_core   mms114

How could I solve this problem or at least narrow it down?

  • Are you saying that the same adapter works in Windows? – Michael Hampton Jul 16 at 22:46
  • @MichaelHampton: That was actually a good hint. I double-checked the cards only. However, both card readers / adapters tested (tested two different ones with several cards) seem to be faulty. After getting a third one, all cards are available as desired. – albert Jul 17 at 18:04
  • Those ultra cheap adapters have a failure rate that seems to hover between 90% and 100%. If you depend on this sort of media, it's probably worth spending a bit of money on a more reliable reader. – Michael Hampton Jul 17 at 18:07

Trying to mount this is too soon in the process. This message shows that the hardware was detected:

[  629.830776] sd 4:0:0:2: [sde] Attached SCSI removable disk

But you cannot mount a device unless it has a filesystem on it that is mountable. Take a look at the system using lsblk or blkid to see if the system recognizes the SD device(s).

Here's what the output will look like for reference:

lsblk
$ lsblk
NAME             MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda                8:0    0 39.1G  0 disk
├─sda1             8:1    0  512M  0 part /boot
├─sda2             8:2    0  500M  0 part
└─sda3             8:3    0 38.1G  0 part
  ├─vg00-lv_root 253:0    0 36.1G  0 lvm  /
  └─vg00-lv_swap 253:1    0    2G  0 lvm  [SWAP]
blkid
$ blkid
/dev/sda1: UUID="0cae38ac-44ea-4a16-9157-a8cbbf50e91b" TYPE="ext4"
/dev/sda2: UUID="013c42ea-aa00-4713-926a-aca57c0bd552" TYPE="xfs"
/dev/sda3: UUID="sgVDOh-NI7x-l4sY-9fJv-uAlW-WfYY-YBoPBQ" TYPE="LVM2_member"
/dev/mapper/vg00-lv_root: UUID="fa4accee-2965-4bc6-85aa-3ed4d0d2ae86" TYPE="ext4"
/dev/mapper/vg00-lv_swap: UUID="998f50cb-a693-411c-aca3-33824ea5a204" TYPE="swap"

As a last suggestion you could try installing/re-installing udisks2. This was described in this AU Q&A titled: Ubuntu 16.04 does not detect sd card reader, but I've had issues with this in the past as well on Fedora/CentOS too.

$ sudo yum reinstall udisks2

-or-

$ sudo dnf reinstall udisks2
up vote 0 down vote accepted

All in all both card readers I tested were faulty. However, please refer to this answer if you can eliminate hardware-related issues.

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.