SD Card Access on Dahlia Carrier with Verdin iMX8M Plus

I have inserted and SDCard into the Dahlia carrier board running Torizoncore 6. I am working with this board remotely at the moment, so I do not remember the size of the SD card that I put into the board. My issue is that the SD card is not automatically mounted. I think this has to do with the initial format of the card, with is exFat, but I don’t know.

When I do a df -h, I get the following output:

Filesystem                  Size  Used Avail Use% Mounted on
tmpfs                       2.0G   25M  1.9G   2% /run
devtmpfs                    1.7G     0  1.7G   0% /dev
/dev/disk/by-label/otaroot   29G  2.1G   25G   8% /sysroot
tmpfs                       2.0G     0  2.0G   0% /dev/shm
tmpfs                       4.0M     0  4.0M   0% /sys/fs/cgroup
tmpfs                       2.0G  4.0K  2.0G   1% /tmp
tmpfs                       2.0G   12K  2.0G   1% /var/volatile
tmpfs                       393M     0  393M   0% /run/user/1000

The command sudo fdisk -l shows a bunch of ram devices as well as the following two mmc based devices.

Disk /dev/mmcblk2: 29.14 GiB, 31293702144 bytes, 61120512 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xa3273dcb

Device         Boot Start      End  Sectors  Size Id Type
/dev/mmcblk2p1       8192 61120511 61112320 29.1G 83 Linux


Disk /dev/mmcblk1: 119.08 GiB, 127865454592 bytes, 249737216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device         Boot Start       End   Sectors   Size Id Type
/dev/mmcblk1p1      32768 249737215 249704448 119.1G  7 HPFS/NTFS/exFAT

I think I need to reformat mmcblk1p1, but I don’t know how. I am also not sure if this is the SD card or not. Additionally, mmcblk2 shows a size of 29.14G, and I assume the eMMC on the Verdin SOM is 4GB. The board boots from the eMMC device, so I don’t want to accidentally mess with that device. As I said, I am currently accessing the board remotely, and if I mess up the boot, I can’t fix it without a lot of expense in travel.

I probably have this completely wrong, so any help in figuring out how to get the SD card formatted and mounted would be most helpful.

Hey @Glitch,

You should be able to use lsblk to see your SD card. Then you should be able the mount command to a location that is accessible. Unless you have more storage devices, your SD card is most likely
/dev/mmcblk1 as it shows being 119GB size. Something like this:

sudo mkdir -p /media/my_sd_card_mount_location
sudo mount /dev/mmcblk1 /media/my_sd_card_mount_location

Depending on the module the eMMC will be 32GB,16GB or 8GB. So this is the main eMMC memory for the device.

-Eric