This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to distinguish sd cards

Hi.

We have two slots for mmc/sd cards on our board (dm8148). I want to mount sd-card from one slot to /mnt/innercard and from another to /mnt/externalcard. Now the numbers of devices is set so that the first inserted card goes to /dev/mmcblk0 and the second to /dev/mmcblk1. So i cannot recognize which /dev/mmcblk belongs to which hardware slot.  I guess that i can parse throughout the /sys/ directory. But i look for more standard way, if it exists. Can anyone help me?

Best regards,

Alexander Vasiljev.