«

»

Sep 07

Troubleshooting MicroSD Card Problems

The Computer employs Troubleshooters, whose job is to go out, find trouble, and shoot it. — Paranoia

While re-imaging the MicroSD cards for my cluster, I ran into a few issues — nothing insurmountable, but I figured that I would share them to help others…..

MicroSD cards generally come with an adapter to allow them to be used in SD card slots. If there is a problem with the adapter, it can manifest in a few ways and cascade from there.

SD cards come with a switch which makes them read-only. However, if the switch is faulty, any MicroSD cards put in the adapter will not be writable.

foobar-sdcard

In this case, the slider was faulty and slid to the locked position when I put the card into the computer.

The next SD card adapter, while the write-only slider works, had other problems:

The adapter was bad in this case; consequently the device didn’t mount. This caused yet another issue. When the image was written to /dev/mmcblk0, it overwrote the mount point for the device.

Notice that mmcblk0 has -, which denotes it is a regular file. mmcblk0p1 is a block device as denoted by the b — these are disks and the like.

In order for the device to mount so that the card can be imaged, the file needs to be removed. After this, the automounter will work correctly and create the device when the card is inserted (with a good adapter, of course).

3 comments

  1. stefanscherer

    Thanks for the post! Got the same issue on my Mac today.

  2. Matt Williams

    Glad it was of use! It’s a pity the adapters are so flakey.

  3. stefanscherer10

    A pull request to fix this in flash script is on its way https://github.com/hypriot/flash/pull/26

Leave a Reply

%d bloggers like this: