Won't ##%%&&@@##!! detect sd card

9 risposte [Ultimo contenuto]
GNUbahn
Offline
Iscritto: 02/18/2016

This appears to be a know issue, while it look worse with a solution (cf. https://trisquel.info/it/forum/wont-detect-sd-card).

My computer just won't detect any sd card or micro sd card.

I have tried different cards:
* Kingston 2 GB sd card
* Transcend 32 GB sd card (hc 1)
* Sandisk 2 GB micro sd card
* Sandisk ultra 16 GB micro sd card (hc 1)

And different approaches:
* sudo apt install exfat-fuse exfat-utils
* sudo apt install --reinstall udisks2 (and a reboot)
* udisksctl mount -b /dev/sdc1 (and sdb1,sdb, sdc etc)

I am on a librebooted and trisquelised t400s.

I think it is the first time i try to use the sd card reader after I upgraded to Trisquel 9, but I have had this issue numerous times on Trisquel 8 as well. By numerous I mean that it generally worked, but for sometimes it didn't (I have not noticed any patterns in this behaviour).

What can cause this and is there a (permanent) solution to it?

eric23
Offline
Iscritto: 06/30/2017

I am running the test version of Trisquel 9. I see journalctl reports what happens behind the scenes when I mount my sd card.

So can you report any errors that in the terminal command journalctl

Here's what my journalctl looks like:

Nov 08 13:58:23 lap kernel: usb 2-6: new high-speed USB device number 5 using ehci-pci
Nov 08 13:58:23 lap kernel: usb 2-6: New USB device found, idVendor=05ca, idProduct=1880
Nov 08 13:58:23 lap kernel: usb 2-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Nov 08 13:58:23 lap kernel: usb 2-6: Product: USB2.0-FLASH Media
Nov 08 13:58:23 lap kernel: usb 2-6: Manufacturer: RICOH
Nov 08 13:58:23 lap kernel: usb 2-6: SerialNumber: R5U880-00003
Nov 08 13:58:23 lap kernel: usb-storage 2-6:1.0: USB Mass Storage device detected
Nov 08 13:58:23 lap kernel: scsi host4: usb-storage 2-6:1.0
Nov 08 13:58:23 lap [2488]: failed to execute '/lib/udev/mtp-probe' 'mtp-probe /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-6 2 5': No such file or directory
Nov 08 13:58:23 lap upowerd[1339]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-6/2-6:1.0
Nov 08 13:58:23 lap upowerd[1339]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-6
Nov 08 13:58:24 lap kernel: scsi 4:0:0:0: Direct-Access RICOH R5U880FlashMedia 0000 PQ: 0 ANSI: 2
Nov 08 13:58:24 lap kernel: sd 4:0:0:0: Attached scsi generic sg1 type 0
Nov 08 13:58:24 lap kernel: sd 4:0:0:0: [sdb] 15564800 512-byte logical blocks: (7.97 GB/7.42 GiB)
Nov 08 13:58:24 lap kernel: sd 4:0:0:0: [sdb] Write Protect is off
Nov 08 13:58:24 lap kernel: sd 4:0:0:0: [sdb] Mode Sense: 0b 00 00 08
Nov 08 13:58:24 lap kernel: sd 4:0:0:0: [sdb] No Caching mode page found
Nov 08 13:58:24 lap kernel: sd 4:0:0:0: [sdb] Assuming drive cache: write through
Nov 08 13:58:24 lap kernel: sdb: sdb1
Nov 08 13:58:24 lap kernel: sd 4:0:0:0: [sdb] Attached SCSI removable disk
Nov 08 13:58:24 lap kernel: EXT4-fs (sdb1): mounting ext2 file system using the ext4 subsystem
Nov 08 13:58:24 lap kernel: EXT4-fs (sdb1): warning: mounting unchecked fs, running e2fsck is recommended
Nov 08 13:58:24 lap kernel: EXT4-fs (sdb1): mounted filesystem without journal. Opts: (null)
Nov 08 13:58:24 lap systemd[1]: Started Clean the /media/jake/OLPCROOT mount point.
Nov 08 13:58:24 lap udisksd[952]: Mounted /dev/sdb1 at /media/jake/OLPCROOT on behalf of uid 1000
Nov 08 13:58:26 lap ntpdate[2448]: adjust time server 91.189.91.157 offset -0.008402 sec
Nov 08 14:00:54 lap systemd[1]: Started Run anacron jobs.
Nov 08 14:00:54 lap anacron[2574]: Anacron 2.3 started on 2020-11-08
Nov 08 14:00:54 lap anacron[2574]: Normal exit (0 jobs run)

GNUbahn
Offline
Iscritto: 02/18/2016

I ran the journalctl command prior to and after inserting an sd card. It is not detected. I also don't see why it would be, as it is not ... detected!

If not I knew that the computer have sometimes been able to detect the sd card, I would suppose the reader or the connection to it is broken.

Can there be some sort of driver issue?

Any other idea?

Magic Banana

I am a member!

I am a translator!

Offline
Iscritto: 07/24/2010

I believe there should be some message if the card reader was connected to the motherboard. What is the output of 'lspci', to be executed in a terminal?

GNUbahn
Offline
Iscritto: 02/18/2016

When the MicroSD card is put in an SD card adapter:$ lspci
00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
00:19.0 Ethernet controller: Intel Corporation 82567LM Gigabit Network Connection (rev 03)
00:1a.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
00:1a.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)
00:1a.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 3 (rev 03)
00:1c.3 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 4 (rev 03)
00:1d.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)
00:1f.0 ISA bridge: Intel Corporation ICH9M-E LPC Interface Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation 82801IBM/IEM (ICH9M/ICH9M-E) 4 port SATA Controller [AHCI mode] (rev 03)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)
01:00.0 Network controller: Qualcomm Atheros AR93xx Wireless Network Adapter (rev 01)

GNUbahn
Offline
Iscritto: 02/18/2016

When the microSD card is put in a usb-adapter:$ lspci
00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
00:19.0 Ethernet controller: Intel Corporation 82567LM Gigabit Network Connection (rev 03)
00:1a.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
00:1a.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)
00:1a.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 3 (rev 03)
00:1c.3 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 4 (rev 03)
00:1d.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)
00:1f.0 ISA bridge: Intel Corporation ICH9M-E LPC Interface Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation 82801IBM/IEM (ICH9M/ICH9M-E) 4 port SATA Controller [AHCI mode] (rev 03)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)
01:00.0 Network controller: Qualcomm Atheros AR93xx Wireless Network Adapter (rev 01)

Magic Banana

I am a member!

I am a translator!

Offline
Iscritto: 07/24/2010

That is twice the same output, as expected. I do not see anything about a card reader. For comparison, on my system:
$ lspci | grep Card
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader (rev 01)

The card reader may be damaged or simply unplugged, I imagine.

GNUbahn
Offline
Iscritto: 02/18/2016

The card reader may be damaged or simply unplugged, I imagine.I was thinking the same thing. It's just that I get the same result if I use as micro sdcard -> usb adapter!

GNUbahn
Offline
Iscritto: 02/18/2016

I found a different micro sdcard -> usb adapter with which it works. So, it seems I was confused by two simultaneous problems that are unrelated: 1) one of my micro sdcard -> usb adapters doesn't work, 2), my internal sdcard reader doesn't work.

1) I have solved by vertical depositing. 2) needs further investigation....

Thanks for the feedback so far

amenex
Offline
Iscritto: 01/03/2015

On my laptop, there's a main hard drive (/dev/sda) divided into four partitions (/dev/sda1 through /dev/sda4)
There's also a flash card (/dev/sdb) with a single partition (/dev/sdb1).

Here's a more direct way of getting to that flash drive, avoiding all the chaff associated with unsuccessful automatic stuff:

To find out whether you're hot on the trail of your flash card, enter these commands into the terminal:
cd /media ; ls ==> that should reveal your [username] if you don't already know it.
cd /media/[username]/ ; ls ==> if your hard drive was automounted, its name will appear.
sudo mkdir /media/[username]/FlashDrive ==> provides the destination for the next command(s).
sudo mount /dev/sdb1 /media/[username]/FlashDrive ==> puts your flash card's data into the file hierarchy.
sudo chown -R [username] /media/[username]/FlashDrive/ ==> makes sure you can access the data on that flash card.

If there's another disk drive on your 'puter, the flash card might be at /dev/sdc etc.