Take a look at our
ThinkPads.com HOME PAGE
For those who might want to contribute to the blog, start here: Editors Alley Topic
Then contact Bill with a Private Message

SD Card Reader not Mounted on Elementary OS

Linux on ThinkPads
Post Reply
Message
Author
josh5k
Posts: 43
Joined: Fri Mar 01, 2013 8:46 am
Location: Bangalore, India

SD Card Reader not Mounted on Elementary OS

#1 Post by josh5k » Fri Feb 05, 2021 1:32 am

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.
Daily Driver - X230 - (2324-E41) i3 2370M, 12GB RAM, 1 TB HDD, 1366x768

Workstation - W541 - (20EG) i7 4810QM, 16GB RAM, 240GB SSD, 1980x1080

Linux Machine - T430 - (2349-7N7) i5 3320M, 8GB RAM, 256GB SSD, 1600x900

Backup - T420s - (4170-RM4) i5 2520M, 12GB RAM, 128GB SSD, 1600x900

dr_st
Admin
Admin
Posts: 8805
Joined: Sat Oct 29, 2005 6:20 am
Location: Israel

Re: SD Card Reader not Mounted on Elementary OS

#2 Post by dr_st » 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
Thinkpad 25 (20K7), T490 (20N3), Yoga 14 (20FY), T430s (IPS FHD + Classic Keyboard), X220 4291-4BG
X61 7673-V2V, T60 2007-QPG, T42 2373-F7G, X32 (IPS Screen), A31p w/ Ultrabay Numpad, A21m 2628-GXU

josh5k
Posts: 43
Joined: Fri Mar 01, 2013 8:46 am
Location: Bangalore, India

Re: SD Card Reader not Mounted on Elementary OS

#3 Post by josh5k » Fri Feb 05, 2021 4:36 am

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).
Daily Driver - X230 - (2324-E41) i3 2370M, 12GB RAM, 1 TB HDD, 1366x768

Workstation - W541 - (20EG) i7 4810QM, 16GB RAM, 240GB SSD, 1980x1080

Linux Machine - T430 - (2349-7N7) i5 3320M, 8GB RAM, 256GB SSD, 1600x900

Backup - T420s - (4170-RM4) i5 2520M, 12GB RAM, 128GB SSD, 1600x900

dr_st
Admin
Admin
Posts: 8805
Joined: Sat Oct 29, 2005 6:20 am
Location: Israel

Re: SD Card Reader not Mounted on Elementary OS

#4 Post by dr_st » Fri Feb 05, 2021 6:19 am

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?
Thinkpad 25 (20K7), T490 (20N3), Yoga 14 (20FY), T430s (IPS FHD + Classic Keyboard), X220 4291-4BG
X61 7673-V2V, T60 2007-QPG, T42 2373-F7G, X32 (IPS Screen), A31p w/ Ultrabay Numpad, A21m 2628-GXU

axur-delmeria
Senior ThinkPadder
Senior ThinkPadder
Posts: 2824
Joined: Mon May 28, 2012 5:49 am
Location: Metro Manila, Philippines

Re: SD Card Reader not Mounted on Elementary OS

#5 Post by axur-delmeria » Fri Feb 05, 2021 8:56 am

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.
Daily driver: X220 4291-C91 i7-2620M

Backup: X601 Core 2 Duo T8100
Toy: X60F Core Solo U1300
On loan: X220 4291-P79 i5-2520M
In pieces: two retired but working X61Ts
RIP: 760XD 9546-U9E; X61 7676-A24; and a BOE-Hydis HV121P01-100 in failed SXGA+ mod
:cry:

josh5k
Posts: 43
Joined: Fri Mar 01, 2013 8:46 am
Location: Bangalore, India

Re: SD Card Reader not Mounted on Elementary OS

#6 Post by josh5k » Fri Feb 05, 2021 10:24 am

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.
Daily Driver - X230 - (2324-E41) i3 2370M, 12GB RAM, 1 TB HDD, 1366x768

Workstation - W541 - (20EG) i7 4810QM, 16GB RAM, 240GB SSD, 1980x1080

Linux Machine - T430 - (2349-7N7) i5 3320M, 8GB RAM, 256GB SSD, 1600x900

Backup - T420s - (4170-RM4) i5 2520M, 12GB RAM, 128GB SSD, 1600x900

skx
Sophomore Member
Posts: 201
Joined: Mon Jul 09, 2018 6:25 pm
Location: Colombia

Re: SD Card Reader not Mounted on Elementary OS

#7 Post by skx » 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.
ThinkPad X220: i5-2520M CPU 2.5GHz - 8GB RAM 1333 MHz - SSD 860 EVO 250GB - Debian - ME_cleaned
ThinkPad X230: i5-3320M CPU 3.3GHz - 8GB RAM 1600 MHz - SSD 860 EVO 500GB - Debian - ME_cleaned

josh5k
Posts: 43
Joined: Fri Mar 01, 2013 8:46 am
Location: Bangalore, India

Re: SD Card Reader not Mounted on Elementary OS

#8 Post by josh5k » Tue Feb 23, 2021 1:39 am

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.
Daily Driver - X230 - (2324-E41) i3 2370M, 12GB RAM, 1 TB HDD, 1366x768

Workstation - W541 - (20EG) i7 4810QM, 16GB RAM, 240GB SSD, 1980x1080

Linux Machine - T430 - (2349-7N7) i5 3320M, 8GB RAM, 256GB SSD, 1600x900

Backup - T420s - (4170-RM4) i5 2520M, 12GB RAM, 128GB SSD, 1600x900

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Linux Questions”

Who is online

Users browsing this forum: No registered users and 6 guests