SD Mounting Issue on Linux Mint 21
Fix for SD card not auto mounting on my old Dell M6500 running Linux Mint 21.
Symptoms
Inserting an SD card appears to do nothing, no drives showing in GParted or anywhere else.
NB:
- Nemo is configured to automount removable media.
- exfat-fuse is installed
Fix
I've not tried different combinations of these steps, I'm sure
- Open GParted
- Insert SD card
- Refresh GParted's devices
This isn't consistent, sometimes the card needs removed and reinserted then GParted refreshed a few times.
Once the device is showing mount it with
udisksctl mount -b /dev/mmcblk1p1
Investigation
Monitored kernel events:
sudo udevadm monitor --kernel
This showed the card being removed and added. So at least something was happening.
KERNEL[55722.338436] remove /devices/pci0000:00/0000:00:1e.0/0000:03:01.2/tifm_sd0:1/mmc_host/mmc1 (mmc_host)
KERNEL[55722.338505] remove /devices/virtual/wakeup/wakeup30 (wakeup)
KERNEL[55722.338585] unbind /devices/pci0000:00/0000:00:1e.0/0000:03:01.2/tifm_sd0:1 (tifm)
KERNEL[55722.338646] remove /devices/pci0000:00/0000:00:1e.0/0000:03:01.2/tifm_sd0:1 (tifm)
KERNEL[55723.858295] add /devices/pci0000:00/0000:00:1e.0/0000:03:01.2/tifm_sd0:1 (tifm)
KERNEL[55723.858348] add /devices/virtual/wakeup/wakeup30 (wakeup)
KERNEL[55723.922296] add /devices/pci0000:00/0000:00:1e.0/0000:03:01.2/tifm_sd0:1/mmc_host/mmc1 (mmc_host)
KERNEL[55723.946243] bind /devices/pci0000:00/0000:00:1e.0/0000:03:01.2/tifm_sd0:1 (tifm)
From GParted, I did a refresh and saw it scan all the drives, e.g.
KERNEL[55876.796216] change /devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0/block/sda/sda2 (block)
KERNEL[55876.806338] change /devices/pci0000:00/0000:00:1f.2/ata3/host2/target2:0:0/2:0:0:0/block/sdc/sdc2 (block)
KERNEL[55876.883640] change /devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0/block/sda/sda2 (block)
KERNEL[55876.897976] change /devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[55876.898036] change /devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0/block/sda/sda1 (block)
KERNEL[55876.898081] change /devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0/block/sda/sda2 (block)
KERNEL[55876.947504] change /devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0/block/sda/sda2 (block)
On removing and replacing the SD card I noticed many more events this time, including the mentioning of a block device.
KERNEL[55911.306224] add /devices/pci0000:00/0000:00:1e.0/0000:03:01.2/tifm_sd0:1 (tifm)
KERNEL[55911.306279] add /devices/virtual/wakeup/wakeup30 (wakeup)
KERNEL[55911.370253] add /devices/pci0000:00/0000:00:1e.0/0000:03:01.2/tifm_sd0:1/mmc_host/mmc1 (mmc_host)
KERNEL[55911.394164] bind /devices/pci0000:00/0000:00:1e.0/0000:03:01.2/tifm_sd0:1 (tifm)
KERNEL[55911.426478] add /devices/pci0000:00/0000:00:1e.0/0000:03:01.2/tifm_sd0:1/mmc_host/mmc1/mmc1:0001 (mmc)
KERNEL[55911.430361] add /devices/virtual/bdi/179:0 (bdi)
KERNEL[55911.431710] add /devices/pci0000:00/0000:00:1e.0/0000:03:01.2/tifm_sd0:1/mmc_host/mmc1/mmc1:0001/block/mmcblk1 (block)
KERNEL[55911.431790] add /devices/pci0000:00/0000:00:1e.0/0000:03:01.2/tifm_sd0:1/mmc_host/mmc1/mmc1:0001/block/mmcblk1/mmcblk1p1 (block)
KERNEL[55911.431856] bind /devices/pci0000:00/0000:00:1e.0/0000:03:01.2/tifm_sd0:1/mmc_host/mmc1/mmc1:0001 (mmc)
The SD card now shows in GParted and /dev