Micro SD cards not mounting in Rocky

Hello,

I have 2 micro SD memory cards slotted into SD adapters. Both cards were formatted FAT32 on a macook pro in Mac OS and copy fine.

But when I insert either cards into one of my 2 Dell portables internal slots running Rocky 8.10, neither shows up anywhere. Yet when I insert a classic 16GB SD card, it mounts fine, so I know that the Dell SD card reader slot works.

I have swapped the microSD adapter cards around with other I have and I always get the same result.

When a card is installed, dmesg shows ..

[  248.790264] mmc0: card never left busy state
[  248.790269] mmc0: error -110 whilst initialising SD card

I tried fsck but I can’t work out if fsck can repair SD cards.

Any thoughts are most welcome. Thank you

fsck repairs the file system, not the SD card. If the SD card is faulty, then nothing really will sort that out.

I’d be tempted to format it on Linux, to ensure it’s usable here. Then plug it into the MAC and copy files to it, and then plug it into Linux again after that and hopefully the problem doesn’t return. It would be prudent to eject the card first, so it ensures the writes have finished, rather than just pulling it out after copying data - just the same as with USB sticks really to safely unmount.

EPEL has the exfatprogs package which should allow you to do all your need to format the partition, etc under Linux.

I found

sudo fsck.fat /dev/mmcblk0p1 

That claimed to clear up errors on the SD 16GB card. But when I did a second time, the same card had another load of errors so I reformatted it in FAT and then did the same command. There were still 1 error on the card so I figured that it was better.

But the strange thing is that when I replaced the SD card with one of the MicroSD cards, the Dell saw it and I was able to run the above command and it subsequently mounted it.

 2084.613056] mmc0: error -110 whilst initialising SD card
[ 2107.152874] mmc0: cannot verify signal voltage switch
[ 2107.296281] mmc0: new ultra high speed SDR104 SDXC card at address 0001
[ 2107.296888] mmcblk0: mmc0:0001 SD64G 58.2 GiB 
[ 2107.299103]  mmcblk0: p1
[ 2107.545815] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
(base) [admin@LOWROCKY ~]$ sudo fsck.fat /dev/mmcblk0p1 
fsck.fat 4.1 (2017-01-24)
0x41: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
1) Remove dirty bit
2) No action
? 1
Perform changes ? (y/n) y
/dev/mmcblk0p1: 1 files, 1/1907917 clusters

I don’t understand what I did as I cannot repeat the experience on the 2nd microSD card. It still suffer from this error.

[ 3886.556850] mmc0: card never left busy state
[ 3886.556856] mmc0: error -110 whilst initialising SD card

Concerning umounting SD Cards in Rocky, if I use

sudo umount /dev/mmcblk0p1

or the unmount button, the SD Card folder icon remains. With USB sticks I have an Eject menu option but with SD cards there is only Unmount.

I wonder if this difference might be an issue because unmount does not seem to be the same as ejecting.

Probably because USB disks are seen differently than SD cards. As long as it’s unmounted, then that is safe. Doesn’t seem consistent to have eject vs unmount, but someone obviously thought it was a good idea. I guess someone had the idea that SD cards were to be seen more like disks than removable storage like USB.

I’m not sure if there is a difference between using mkfs.fat vs mkfs.vfat, I tend to use the last one. It could well be the difference between FAT16 and FAT32, but I haven’t dug deep enough to verify that. Or they could just be the same command.

If the error isn’t clearing even after you’ve reformatted, then it could well mean it’s almost the end for that SD card. Or at least try it in some other machines as well. If you have an alternative SD card reader, for example an adaptor that goes into a USB slot, might be worth a try to see if it behaves differently.

Thank you for your help. I have researched this abit on the web and discovered that MicroSD cards are not as stable as one might hope. They don’t seem to like being moved much. I presume the SD card slot if to cover camera card usage.

In short, one of the cards now works on the dell and other machines and the other only mounts on macs. All quite strange. Thank you all your help.