Page 1 of 1

SD Card Reader not Mounted on Elementary OS

Posted: Fri Feb 05, 2021 1:32 am
by josh5k
I recently installed Elementary OS on my Thinkpad T430 and everything on there was recognized and works well out of the box, except for my SD Carder.

I've tried reinstalling udisks2 and there has been no change. I don't see anything on the /mnt folder either.

EDIT: In light of the newer info, I should say that it's just unable to mount the Card rather than detection issues.

lsusb gives this as the result.

Bus 002 Device 003: ID 046d:c31d Logitech, Inc. Media Keyboard K200
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 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 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 18f8:0f97
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

This is the udevadm monitor output when the card is removed and reinserted twice. So the system is recognizing the hardware, or atleast the presence of it.\

KERNEL[2971.831168] remove /devices/virtual/bdi/179:0 (bdi)
KERNEL[2971.831501] remove /devices/pci0000:00/0000:00:1c.0/0000:02:00.0/mmc_host/mmc0/mmc0:0001/block/mmcblk0 (block)
UDEV [2971.833506] remove /devices/virtual/bdi/179:0 (bdi)
UDEV [2971.836087] remove /devices/pci0000:00/0000:00:1c.0/0000:02:00.0/mmc_host/mmc0/mmc0:0001/block/mmcblk0 (block)
KERNEL[2971.850266] unbind /devices/pci0000:00/0000:00:1c.0/0000:02:00.0/mmc_host/mmc0/mmc0:0001 (mmc)
KERNEL[2971.850324] remove /devices/pci0000:00/0000:00:1c.0/0000:02:00.0/mmc_host/mmc0/mmc0:0001 (mmc)
UDEV [2971.851615] unbind /devices/pci0000:00/0000:00:1c.0/0000:02:00.0/mmc_host/mmc0/mmc0:0001 (mmc)
UDEV [2971.852352] remove /devices/pci0000:00/0000:00:1c.0/0000:02:00.0/mmc_host/mmc0/mmc0:0001 (mmc)
KERNEL[2978.901584] add /devices/pci0000:00/0000:00:1c.0/0000:02:00.0/mmc_host/mmc0/mmc0:0001 (mmc)
UDEV [2978.905486] add /devices/pci0000:00/0000:00:1c.0/0000:02:00.0/mmc_host/mmc0/mmc0:0001 (mmc)
KERNEL[2978.922463] add /devices/virtual/bdi/179:0 (bdi)
UDEV [2978.925195] add /devices/virtual/bdi/179:0 (bdi)
KERNEL[2979.011514] add /devices/pci0000:00/0000:00:1c.0/0000:02:00.0/mmc_host/mmc0/mmc0:0001/block/mmcblk0 (block)
KERNEL[2979.011853] bind /devices/pci0000:00/0000:00:1c.0/0000:02:00.0/mmc_host/mmc0/mmc0:0001 (mmc)
UDEV [2979.061779] add /devices/pci0000:00/0000:00:1c.0/0000:02:00.0/mmc_host/mmc0/mmc0:0001/block/mmcblk0 (block)
UDEV [2979.064969] bind /devices/pci0000:00/0000:00:1c.0/0000:02:00.0/mmc_host/mmc0/mmc0:0001 (mmc)
KERNEL[3003.078900] remove /devices/virtual/bdi/179:0 (bdi)
KERNEL[3003.081121] remove /devices/pci0000:00/0000:00:1c.0/0000:02:00.0/mmc_host/mmc0/mmc0:0001/block/mmcblk0 (block)
UDEV [3003.081919] remove /devices/virtual/bdi/179:0 (bdi)
UDEV [3003.084755] remove /devices/pci0000:00/0000:00:1c.0/0000:02:00.0/mmc_host/mmc0/mmc0:0001/block/mmcblk0 (block)
KERNEL[3003.098295] unbind /devices/pci0000:00/0000:00:1c.0/0000:02:00.0/mmc_host/mmc0/mmc0:0001 (mmc)
KERNEL[3003.098366] remove /devices/pci0000:00/0000:00:1c.0/0000:02:00.0/mmc_host/mmc0/mmc0:0001 (mmc)
UDEV [3003.100303] unbind /devices/pci0000:00/0000:00:1c.0/0000:02:00.0/mmc_host/mmc0/mmc0:0001 (mmc)
UDEV [3003.101557] remove /devices/pci0000:00/0000:00:1c.0/0000:02:00.0/mmc_host/mmc0/mmc0:0001 (mmc)
KERNEL[3036.054767] add /devices/pci0000:00/0000:00:1c.0/0000:02:00.0/mmc_host/mmc0/mmc0:0001 (mmc)
KERNEL[3036.055445] add /devices/virtual/bdi/179:0 (bdi)
UDEV [3036.058774] add /devices/virtual/bdi/179:0 (bdi)
UDEV [3036.059712] add /devices/pci0000:00/0000:00:1c.0/0000:02:00.0/mmc_host/mmc0/mmc0:0001 (mmc)
KERNEL[3036.116193] add /devices/pci0000:00/0000:00:1c.0/0000:02:00.0/mmc_host/mmc0/mmc0:0001/block/mmcblk0 (block)
KERNEL[3036.116288] add /devices/pci0000:00/0000:00:1c.0/0000:02:00.0/mmc_host/mmc0/mmc0:0001/block/mmcblk0/mmcblk0p1 (block)
KERNEL[3036.116562] bind /devices/pci0000:00/0000:00:1c.0/0000:02:00.0/mmc_host/mmc0/mmc0:0001 (mmc)
UDEV [3036.165388] add /devices/pci0000:00/0000:00:1c.0/0000:02:00.0/mmc_host/mmc0/mmc0:0001/block/mmcblk0 (block)
UDEV [3036.211227] add /devices/pci0000:00/0000:00:1c.0/0000:02:00.0/mmc_host/mmc0/mmc0:0001/block/mmcblk0/mmcblk0p1 (block)
UDEV [3036.214110] bind /devices/pci0000:00/0000:00:1c.0/0000:02:00.0/mmc_host/mmc0/mmc0:0001 (mmc)

udisksctl monitor also seems to detect the drive.

12:07:48.434: The udisks-daemon is running (name-owner :1.11).
12:07:57.488: Removed /org/freedesktop/UDisks2/block_devices/mmcblk0p1
12:07:57.493: Removed /org/freedesktop/UDisks2/block_devices/mmcblk0
12:07:57.493: Removed /org/freedesktop/UDisks2/drives/00000_0x70be8069
12:08:01.697: Added /org/freedesktop/UDisks2/drives/00000_0x70be8069
org.freedesktop.UDisks2.Drive:
CanPowerOff: false
Configuration: {}
ConnectionBus: sdio
Ejectable: false
Id: 00000-0x70be8069
Media: flash_sd
MediaAvailable: true
MediaChangeDetected: true
MediaCompatibility: flash_sd
MediaRemovable: true
Model: 00000
Optical: false
OpticalBlank: false
OpticalNumAudioTracks: 0
OpticalNumDataTracks: 0
OpticalNumSessions: 0
OpticalNumTracks: 0
Removable: true
Revision:
RotationRate: 0
Seat: seat0
Serial: 0x70be8069
SiblingId:
Size: 31439454208
SortKey: 01hotplug/1612507081695582
TimeDetected: 1612507081695582
TimeMediaDetected: 1612507081695582
Vendor:
WWN:
12:08:01.697: Added /org/freedesktop/UDisks2/block_devices/mmcblk0
org.freedesktop.UDisks2.Block:
Configuration: []
CryptoBackingDevice: '/'
Device: /dev/mmcblk0
DeviceNumber: 45824
Drive: '/org/freedesktop/UDisks2/drives/00000_0x70be8069'
HintAuto: true
HintIconName:
HintIgnore: false
HintName:
HintPartitionable: true
HintSymbolicIconName:
HintSystem: false
Id:
IdLabel:
IdType:
IdUUID:
IdUsage:
IdVersion:
MDRaid: '/'
MDRaidMember: '/'
PreferredDevice: /dev/mmcblk0
ReadOnly: false
Size: 31439454208
Symlinks: /dev/disk/by-id/mmc-00000_0x70be8069
UserspaceMountOptions:

Any further ideas? I'm in the process figuring out if there's a device specific driver I can locate somewhere; but further suggestions are always welcome.

Re: SD Card Reader not Mounted on Elementary OS

Posted: Fri Feb 05, 2021 4:13 am
by dr_st
The card reader is a Ricoh PCI Express (device ID E823) device. What does lspci say?
https://bugzilla.kernel.org/show_bug.cgi?id=108751

Re: SD Card Reader not Mounted on Elementary OS

Posted: Fri Feb 05, 2021 4:36 am
by josh5k
dr_st wrote:
Fri Feb 05, 2021 4:13 am
The card reader is a Ricoh PCI Express (device ID E823) device. What does lspci say?
https://bugzilla.kernel.org/show_bug.cgi?id=108751

Code: Select all

lspci - 02:00.0 System peripheral: Ricoh Co Ltd MMC/SD Host Controller (rev 07)
It originally hadn't taken the driver, but now it has. The issue turned out to be a automounting issue in Pantheon (The Elementary OS DWM), including any USB disks. I'm able to see the thumbdrive and the card details in udiskctl and am able to mount the thumbdrive, but the card is still not mountable.

Code: Select all

 
 sudo mount /dev/mmcblk0 /mnt/sd
mount: /mnt/sd: can't read superblock on /dev/mmcblk0.
I have ordered another SD Card to see if perhaps the card was the issue, even though it does read on my windows laptop (a Thinkpad X230).

Re: SD Card Reader not Mounted on Elementary OS

Posted: Fri Feb 05, 2021 6:19 am
by dr_st
josh5k wrote:
Fri Feb 05, 2021 4:36 am
I'm able to see the thumbdrive and the card details in udiskctl and am able to mount the thumbdrive, but the card is still not mountable.

Code: Select all

 
 sudo mount /dev/mmcblk0 /mnt/sd
mount: /mnt/sd: can't read superblock on /dev/mmcblk0.
I have ordered another SD Card to see if perhaps the card was the issue, even though it does read on my windows laptop (a Thinkpad X230).
Maybe the card is formatted using a file system that is not supported / not enabled by default in your distro?

Re: SD Card Reader not Mounted on Elementary OS

Posted: Fri Feb 05, 2021 8:56 am
by axur-delmeria
dr_st wrote:
Fri Feb 05, 2021 6:19 am
Maybe the card is formatted using a file system that is not supported / not enabled by default in your distro?
That's a good idea. :idea:

josh5k should check if there are installed packages related to the exFAT file system, and maybe NTFS (like ntfs-3g) as well just to make sure.

Re: SD Card Reader not Mounted on Elementary OS

Posted: Fri Feb 05, 2021 10:24 am
by josh5k
Maybe the card is formatted using a file system that is not supported / not enabled by default in your distro?
It does say FAT32 on it. I'll reformat to double check. It's certainly not NTFS as it worked fine on the old Canon 500D DSLR. It's a rather old card as well, and is on it's last legs. The New Card should resolve the reading issue.

I need to figure out the automount for all removable storage in the meantime. The documentation doesn't say much about it; I'd assumed that Elementary OS with all it's mac like behaviour might have typical automounting icons on the desktop esp since it seems to detect the devices accurately and instantly.

@axur-delmeria - I'll check. I do want this laptop to be able to read my larger Thumbdrives without issue, and also my NTFS formatted USB 3.0 backup hard drive.

Re: SD Card Reader not Mounted on Elementary OS

Posted: Sun Feb 07, 2021 7:30 pm
by skx
This should work out of the box. Not too confident in Elementary OS as distro which focus more on eye candy compared to stability, but this reminds me to a bug from years ago. Can OP post his fstab?

nano /etc/fstab

and post it here... in the past there was an SD card entry mentioned when installed from USB/SD, which made the reader non functional.

Re: SD Card Reader not Mounted on Elementary OS

Posted: Tue Feb 23, 2021 1:39 am
by josh5k
skx wrote:
Sun Feb 07, 2021 7:30 pm
This should work out of the box. Not too confident in Elementary OS as distro which focus more on eye candy compared to stability, but this reminds me to a bug from years ago. Can OP post his fstab?

nano /etc/fstab

and post it here... in the past there was an SD card entry mentioned when installed from USB/SD, which made the reader non functional.
I dropped Elementary OS at the end of it all, and went distro hopping as you saw on the other thread. Didn't notice automount issues on any of them, and so didn't dig into the issue too much. Am pretty sure that it's a SD Card issue at this point though.