SD not recognised

Using a notebook. The card reader is recognised.<br>

<span style="font-family: monospace"><font color="#FF5454"><strong>#</strong></font><font color="#000000"> lsusb</font><br>
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub<br>
Bus 001 Device 006: ID 0b97:7772 O2 Micro, Inc. OZ776 CCID Smartcard Reader<br>
Bus 001 Device 004: ID 0b97:7761 O2 Micro, Inc. Oz776 1.1 Hub<br>
Bus 001 Device 003: ID 8087:0a2b Intel Corp. Bluetooth wireless interface<br>
Bus 001 Device 002: ID 1199:9041 Sierra Wireless, Inc. EM7305 Modem<br>
Bus 001 Device 005: ID 04f2:b564 Chicony Electronics Co., Ltd FJ Camera<br>
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br>
</span>


But fdisk doesn't show it.
<span style="font-family: monospace"><font color="#FF5454"><strong>#</strong></font><font color="#000000"> fdisk -l  </font><br>
<font color="#000000"><strong>Disk /dev/sda: 119.24 GiB, 128035676160 bytes, 250069680 sectors</strong></font><br>
Disk model: SAMSUNG MZNTY128<br>
Units: sectors of 1 * 512 = 512 bytes<br>
Sector size (logical/physical): 512 bytes / 512 bytes<br>
I/O size (minimum/optimal): 512 bytes / 512 bytes<br>
Disklabel type: gpt<br>
Disk identifier: 0E066D7A-2A68-4E32-9F71-E17210536C09<br>
<br>
<font color="#000000"><strong>Device    </strong></font><font color="#000000"><strong>    Start</strong></font><font color="#000000"><strong>      End</strong></font><font color="#000000"><strong>  Sectors</strong></font><font color="#000000"><strong> Size</strong></font><font color="#000000"><strong>Type</strong></font><br>
/dev/sda1       2048   1050623   1048576  512M EFI System<br>
/dev/sda2    1050624 123462656 122412033 58.4G Linux filesystem<br>
/dev/sda3  245874688 250069646   4194959    2G Linux swap<br>
/dev/sda4  123462658 245874687 122412030 58.4G Linux filesystem<br>
<br>
Partition table entries are not in disk order.<br>
<font color="#FF5454"><strong>localhost:/home/ion #</strong></font><br>
</span>


Or
<span style="font-family: monospace"><font color="#FF5454"><strong>#</strong></font><font color="#000000"> lsblk -af</font><br>
NAME   FSTYPE FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINTS<br>
sda                                                                            <br>
├─sda1 vfat   FAT32       74E7-DACD                             507.3M     1% /boot/efi<br>
├─sda2 ext4   1.0         1a1c6b27-a005-4d0c-8fff-41034da3ed95   29.6G    43% /<br>
├─sda3 swap   1           353b7a6c-2905-4810-8a23-88967f7d709c                [SWAP]<br>
└─sda4 btrfs              1fa85e2b-2996-4de5-9d13-9292f86c9a9a                 <br>
sr0                                                                            <br>
<font color="#FF5454"><strong>localhost:/home/ion #</strong></font><br>
</span>

<br><br>It mounts in other distros.<br><br>

Let’s try again.

**localhost:/home/ion #** lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 006: ID 0b97:7772 O2 Micro, Inc. OZ776 CCID Smartcard Reader
Bus 001 Device 004: ID 0b97:7761 O2 Micro, Inc. Oz776 1.1 Hub
Bus 001 Device 003: ID 8087:0a2b Intel Corp. Bluetooth wireless interface
Bus 001 Device 002: ID 1199:9041 Sierra Wireless, Inc. EM7305 Modem
Bus 001 Device 005: ID 04f2:b564 Chicony Electronics Co., Ltd FJ Camera
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
**localhost:/home/ion #**

**#** fdisk -l  
**Disk /dev/sda: 119.24 GiB, 128035676160 bytes, 250069680 sectors**
Disk model: SAMSUNG MZNTY128
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 0E066D7A-2A68-4E32-9F71-E17210536C09

**Device    ****    Start****      End****  Sectors**** Size****Type**
/dev/sda1       2048   1050623   1048576  512M EFI System
/dev/sda2    1050624 123462656 122412033 58.4G Linux filesystem
/dev/sda3  245874688 250069646   4194959    2G Linux swap
/dev/sda4  123462658 245874687 122412030 58.4G Linux filesystem

Partition table entries are not in disk order.
**localhost:/home/ion **

**#** lsblk -af
NAME   FSTYPE FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda                                                                            
├─sda1 vfat   FAT32       74E7-DACD                             507.3M     1% /boot/efi
├─sda2 ext4   1.0         1a1c6b27-a005-4d0c-8fff-41034da3ed95   29.6G    43% /
├─sda3 swap   1           353b7a6c-2905-4810-8a23-88967f7d709c                [SWAP]
└─sda4 btrfs              1fa85e2b-2996-4de5-9d13-9292f86c9a9a                 
sr0                                                                            
**localhost:/home/ion **

Hi
That device is a smart card reader, not a MicroSD storage device…

Thank you, now I know. That explains the wide slot on the front of the case. Recently bought used notebook. In any case when I boot another distro it finds the card (in the correct slot) and I have written to it and read from it. So I think I must be missing software.

Hi
It’s not a USB device, it will be in the output of /sbin/lspci, check that and post details, could just be missing firmware.

~> /sbin/lspci
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Regis
ters (rev 08)
00:02.0 VGA compatible controller: Intel Corporation Skylake GT2 [HD Graphics 520] (rev 07)
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #1 (rev f1)
00:1c.3 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #4 (rev f1)
00:1c.4 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-LP LPC Controller (rev 21)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection I219-LM (rev 21)
02:00.0 Network controller: Intel Corporation Wireless 8260 (rev 3a)
03:00.0 SD Host controller: O2 Micro, Inc. SD/MMC Card Reader Controller (rev 01)
ion@localhost:~> 

The module in use by the other distro is sdhci_pci. Now how do I find it and load it?

Hi
See what it’s using;


/sbin/lspci -nnk | grep -A3 "SD Host controller"

Strange. It uses the same module but still doesn’t function.

on@localhost:~> /sbin/lspci -nnk | grep -A3 "SD Host controller"
03:00.0 **SD Host controller** [0805]: O2 Micro, Inc. SD/MMC Card Reader Controller [1217:8520] (rev 01)
        Subsystem: Fujitsu Limited. Device [10cf:1941]
        Kernel driver in use: sdhci-pci
        Kernel modules: sdhci_pci
ion@localhost:~> su
Password:  
**localhost:/home/ion #** fdisk -l


**Disk /dev/sda: 119.24 GiB, 128035676160 bytes, 250069680 sectors**
Disk model: SAMSUNG MZNTY128
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 0E066D7A-2A68-4E32-9F71-E17210536C09

**Device    ****    Start****      End****  Sectors**** Size****Type**
/dev/sda1       2048   1050623   1048576  512M EFI System
/dev/sda2    1050624 123462656 122412033 58.4G Linux filesystem
/dev/sda3  245874688 250069646   4194959    2G Linux swap
/dev/sda4  123462658 245874687 122412030 58.4G Linux filesystem

Partition table entries are not in disk order.
**localhost:/home/ion #**


Open a terminal and run

sudo dmesg -w

Insert the SD card of interest and observe/capture the output.

  255.499075] mmc0: Card removed during transfer!
  255.499091] mmc0: Resetting controller.
  301.767727] mmc0: Timeout waiting for hardware cmd interrupt.
  301.767745] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
  301.767754] mmc0: sdhci: Sys addr:  0x00000000 | Version:  0x00000603
  301.767768] mmc0: sdhci: Blk size:  0x00000000 | Blk cnt:  0x00000000
  301.767778] mmc0: sdhci: Argument:  0x00000c00 | Trn mode: 0x00000000
  301.767788] mmc0: sdhci: Present:   0x01ff0001 | Host ctl: 0x00000001
  301.767799] mmc0: sdhci: Power:     0x0000000f | Blk gap:  0x00000000
  301.767808] mmc0: sdhci: Wake-up:   0x00000000 | Clock:    0x0000fa07
  301.767819] mmc0: sdhci: Timeout:   0x00000000 | Int stat: 0x00000000
  301.767828] mmc0: sdhci: Int enab:  0x00ff0083 | Sig enab: 0x00ff0083
  301.767839] mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000
  301.767848] mmc0: sdhci: Caps:      0x25bac8bf | Caps_1:   0x1000207f
  301.767859] mmc0: sdhci: Cmd:       0x0000341a | Max curr: 0x005800c8
  301.767870] mmc0: sdhci: Resp[0]:   0x00000000 | Resp[1]:  0x00000000
  301.767879] mmc0: sdhci: Resp[2]:   0x00000000 | Resp[3]:  0x00000000
  301.767886] mmc0: sdhci: Host ctl2: 0x00000000
  301.767895] mmc0: sdhci: ADMA Err:  0x00000000 | ADMA Ptr: 0x00000000
  301.767901] mmc0: sdhci: ============================================
^C
ion@localhost:~> 


With the SD inserted the message gets repeated and times out to a terminal. I log in as root but none of the reboot options work. When I remove the SD and reboot it fails again leaving me at a terminal where I could login as root. Journalctl reports

A start job is running for /dev/mmcblk0p1

Repeated attempts with and without the SD leave me at the same terminal. Is there a way to leave the SD out and to delete whatever file is telling the system to look for an SD that isn’t there?