SD card slot doesn't mount card

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
harkra
Level 2
Level 2
Posts: 61
Joined: Fri Dec 18, 2015 9:22 am
Location: Germany

SD card slot doesn't mount card

Post by harkra »

Hallo,
i recently bought a new thinkpad L580 , that contains a SD card slot for SDXC cards(I hope this is right, i mean the cards that could be used in cell phones too)
when I injected the card first, mint 20.2 told me that the card could not be mounted. at the second try and later the card is not displayed anymore, but a beep occurs when injecting and removing. no difference concerning the format (FAT32, Exfat, NTFS or Ext4). when I use an SD-Adapter at another usb 3 slot, the card is recognised and mounted without any problem. using the "small" slot in windows, is working without problems with the same card. I would like to use this slot for backups and leave the card permanently in the slot.
do you need more information on the computer (inxi) ?
thanks is advance
harkra
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 3 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
AndyMH
Level 21
Level 21
Posts: 13757
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: SD card slot doesn't mount card

Post by AndyMH »

I have the same problem with a T430 and the SD card from my camera. Doesn't work in the card reader slot, does work when plugged into a usb port via an adapter. Reformatted the card in mint, fat32, and then the camera insists on formatting it again. I just live with it.

From what you have said - you have plugged it in via a usb port and formatted it ntfs, fat32, ext4 and no difference - it still will not work?

With it plugged into a usb port, post the output from sudo parted --list, I want to check that it has a partition table on it.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
harkra
Level 2
Level 2
Posts: 61
Joined: Fri Dec 18, 2015 9:22 am
Location: Germany

Re: SD card slot doesn't mount card

Post by harkra »

AndyMH wrote: Fri Jul 30, 2021 7:27 am I have the same problem with a T430 and the SD card from my camera. Doesn't work in the card reader slot, does work when plugged into a usb port via an adapter. Reformatted the card in mint, fat32, and then the camera insists on formatting it again. I just live with it.

From what you have said - you have plugged it in via a usb port and formatted it ntfs, fat32, ext4 and no difference - it still will not work?

With it plugged into a usb port, post the output from sudo parted --list, I want to check that it has a partition table on it.

Code: Select all

Modell: Generic STORAGE DEVICE (scsi)
Festplatte  /dev/sda:  128GB
Sektorgröße (logisch/physisch): 512B/512B
Partitionstabelle: msdos
Disk-Flags: 

Nummer  Anfang  Ende   Größe  Typ      Dateisystem  Flags
 1      1049kB  128GB  128GB  primary


Modell: LENSE30512GMSP34MEAT3TA (nvme)
Festplatte  /dev/nvme0n1:  512GB
Sektorgröße (logisch/physisch): 512B/512B
Partitionstabelle: gpt
Disk-Flags: 

Nummer  Anfang  Ende   Größe  Dateisystem  Name  Flags
 1      17,4kB  134MB  134MB                     msftres
 2      135MB   659MB  523MB  ntfs               diag
 3      659MB   763MB  105MB  fat32              boot, esp
 4      763MB   266GB  265GB  ntfs               msftdata
 5      266GB   266GB  614MB  ntfs               versteckt, diag
 6      266GB   512GB  246GB  ext4
User avatar
AndyMH
Level 21
Level 21
Posts: 13757
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: SD card slot doesn't mount card

Post by AndyMH »

You have a msdos partition table so that is okay. The error I see is that parted is not reporting the filesystem type.

This is a 256GB SD card in the card reader slot in a T430:

Code: Select all

Model: SD SD256 (sd/mmc)
Disk /dev/mmcblk0: 249GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type      File system     Flags
 1      1049kB  106MB   105MB   primary   fat32           boot, esp
 2      106MB   99.1GB  99.0GB  extended
 5      107MB   38.9GB  38.8GB  logical   ext4
 6      38.9GB  99.1GB  60.2GB  logical   ntfs
 3      99.1GB  146GB   47.3GB  primary   fat32
 4      197GB   199GB   2097MB  primary   linux-swap(v1)
You can see the filesystem types, fat32, ntfs, etc.
On your card:

Code: Select all

Modell: Generic STORAGE DEVICE (scsi)
Festplatte  /dev/sda:  128GB
Sektorgröße (logisch/physisch): 512B/512B
Partitionstabelle: msdos
Disk-Flags: 

Nummer  Anfang  Ende   Größe  Typ      Dateisystem  Flags
 1      1049kB  128GB  128GB  primary
No filesystem reported. Try formatting the partition fat32, ntfs or ext4 and see if the parted output changes.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
harkra
Level 2
Level 2
Posts: 61
Joined: Fri Dec 18, 2015 9:22 am
Location: Germany

Re: SD card slot doesn't mount card

Post by harkra »

card is reformatted FAT32, still not recognised in slot.

Code: Select all

Modell: Generic STORAGE DEVICE (scsi)
Festplatte  /dev/sda:  128GB
Sektorgröße (logisch/physisch): 512B/512B
Partitionstabelle: msdos
Disk-Flags: 

Nummer  Anfang  Ende   Größe  Typ      Dateisystem  Flags
 1      1049kB  128GB  128GB  primary  fat32        LBA


Modell: LENSE30512GMSP34MEAT3TA (nvme)
Festplatte  /dev/nvme0n1:  512GB
Sektorgröße (logisch/physisch): 512B/512B
Partitionstabelle: gpt
Disk-Flags: 

Nummer  Anfang  Ende   Größe  Dateisystem  Name  Flags
 1      17,4kB  134MB  134MB                     msftres
 2      135MB   659MB  523MB  ntfs               diag
 3      659MB   763MB  105MB  fat32              boot, esp
 4      763MB   266GB  265GB  ntfs               msftdata
 5      266GB   266GB  614MB  ntfs               versteckt, diag
 6      266GB   512GB  246GB  ext4
User avatar
AndyMH
Level 21
Level 21
Posts: 13757
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: SD card slot doesn't mount card

Post by AndyMH »

I think the L580 will support sdxc, but to confirm, lspci in a terminal:

Code: Select all

...
02:00.0 System peripheral: Ricoh Co Ltd PCIe SDXC/MMC Host Controller (rev 07)
...
this is what it shows for my T430.

Have you tried it with any other SD cards?
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
harkra
Level 2
Level 2
Posts: 61
Joined: Fri Dec 18, 2015 9:22 am
Location: Germany

Re: SD card slot doesn't mount card

Post by harkra »

another fresh sd card, newly formated fat32, doesn't work either in this slot but with the usb adapter.
lspci results in

Code: Select all

00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers (rev 08)
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07)
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 08)
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
00:15.0 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #0 (rev 21)
00:15.2 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #2 (rev 21)
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #1 (rev f1)
00:1c.4 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 (rev f1)
00:1c.7 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #8 (rev f1)
00:1d.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #9 (rev f1)
00:1d.2 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #11 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Sunrise Point LPC Controller/eSPI 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 (4) I219-V (rev 21)
03:00.0 Non-Volatile memory controller: Lenovo Device 0006
04:00.0 SD Host controller: O2 Micro, Inc. SD/MMC Card Reader Controller (rev 01)
06:00.0 Network controller: Intel Corporation Wireless 8265 / 8275 (rev 78)
User avatar
Larry78723
Level 14
Level 14
Posts: 5476
Joined: Wed Jan 09, 2019 7:01 pm
Location: Jasper County, SC, USA

Re: SD card slot doesn't mount card

Post by Larry78723 »

On my T550, my SDcard reader shows as this:

Code: Select all

02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader (rev 01)
Image
If you have found the solution to your initial post, please open your original post, click on the pencil, and add (Solved) to the Subject, it helps other users looking for help, and keeps the forum clean.
User avatar
AndyMH
Level 21
Level 21
Posts: 13757
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: SD card slot doesn't mount card

Post by AndyMH »

Code: Select all

04:00.0 SD Host controller: O2 Micro, Inc. SD/MMC Card Reader Controller (rev 01)
Doesn't support SDXC, nor does it list SDHC, looks like you are limited to low capacity SD cards, e.g. 16GB.
https://en.wikipedia.org/wiki/SD_card
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
harkra
Level 2
Level 2
Posts: 61
Joined: Fri Dec 18, 2015 9:22 am
Location: Germany

Re: SD card slot doesn't mount card

Post by harkra »

whow,
that's somehow disappointing, not your answer, but that this kind of "old" piece of equipment was build in.
it will take some time for for me to find one of these sd cards but i will give it a try
for the meantime, thank you!
I will mark the topic as solved.
harkra
harkra
Level 2
Level 2
Posts: 61
Joined: Fri Dec 18, 2015 9:22 am
Location: Germany

Re: SD card slot doesn't mount card

Post by harkra »

AndyMH wrote: Fri Jul 30, 2021 3:25 pm

Code: Select all

04:00.0 SD Host controller: O2 Micro, Inc. SD/MMC Card Reader Controller (rev 01)
Doesn't support SDXC, nor does it list SDHC, looks like you are limited to low capacity SD cards, e.g. 16GB.
https://en.wikipedia.org/wiki/SD_card
Sorry; one last question. the same slot works perfectly with the identical SDXC card under windows10. doesn't that speak against that it is not able to recognize this cards and sizes?
User avatar
AndyMH
Level 21
Level 21
Posts: 13757
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: SD card slot doesn't mount card

Post by AndyMH »

Quite right!
I suspect it's linux loading an older driver. There is probably someway of loading a later driver, but I don't know how :( Also odd that your L580 is a lot newer than my T430 but not providing the same functionality.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
User avatar
AndyMH
Level 21
Level 21
Posts: 13757
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: SD card slot doesn't mount card

Post by AndyMH »

I did some googling:
https://askubuntu.com/questions/824804/ ... -16-04-lts
over four years old, and in this
https://bugzilla.kernel.org/show_bug.cgi?id=109231
it suggests that that particular bug in the first link has been fixed. The link also has other potential solutions.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
harkra
Level 2
Level 2
Posts: 61
Joined: Fri Dec 18, 2015 9:22 am
Location: Germany

Re: SD card slot doesn't mount card

Post by harkra »

thanks,
I found that post too, but did not understand much to be able to apply.
in the second link I tried

Code: Select all

sudo modprobe sdhci debug_quirks2="0x80000000"
in the terminal with no effect.
than there is mentioned that a patch should be applied. I have no idea how to do this?

Code: Select all

Jean-Luc Malet 2020-07-30 17:03:29 UTC
try this patch :

diff --git a/drivers/mmc/host/sdhci-pci-o2micro.c b/drivers/mmc/host/sdhci-pci-o2micro.c
index 19944b004..1d8938a68 100644
--- a/drivers/mmc/host/sdhci-pci-o2micro.c
+++ b/drivers/mmc/host/sdhci-pci-o2micro.c
@@ -681,7 +681,6 @@ static const struct sdhci_ops sdhci_pci_o2_ops = {
 const struct sdhci_pci_fixes sdhci_o2 = {
        .probe = sdhci_pci_o2_probe,
        .quirks = SDHCI_QUIRK_NO_ENDATTR_IN_NOPDESC,
-       .quirks2 = SDHCI_QUIRK2_CLEAR_TRANSFERMODE_REG_BEFORE_CMD,
        .probe_slot = sdhci_pci_o2_probe_slot,
 #ifdef CONFIG_PM_SLEEP
        .resume = sdhci_pci_o2_resume,


this fixed my issue on yoga 900 that have the same controler
User avatar
ricardogroetaers
Level 6
Level 6
Posts: 1374
Joined: Sat Oct 27, 2018 3:06 am
Location: Rio de Janeiro, Brasil

Re: SD card slot doesn't mount card

Post by ricardogroetaers »

Unfortunately several Linux do not have drivers to allow slot or drive card reader recognizing more current SDCARDs (SDHC, SDXC, for example).

The tip is to buy a complete set (card + adapters) of the same manufacturer.
It usually works well.
Attachments
figura.png
User avatar
AndyMH
Level 21
Level 21
Posts: 13757
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: SD card slot doesn't mount card

Post by AndyMH »

I have no idea how to do this?
Unfortunately neither do I :( , maybe someone else.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
Locked

Return to “Beginner Questions”