After popping my camera SD card into Jetson TX2 slot, I nearly forgot about the card until it caused a system error due to colord.service failure. Then I took following steps to correct the problem.
Ran dmesg. It reported a FAT-fs on mmcblk1p1 which “was not properly unmounted”. Then I used GUI’s SD to reformat the card to EXT4 file system type. Interestingly, the SD icon disappeared from GUI.
Reboot TX2, and ran following two commands
sudo mkfs.ext4 /dev/mmcblk1p1
sudo mount -t ext4 /dev/mmcblk1p1 /mnt
The SD icon showed up after reboot a few times and meanwhile I popped the card in and out wondering if I inserted the card properly. Anyway, eventually got the SD icon back without really doing anything.
But I still puzzled about why the SD card GUI is empty no matter what I do in the /mnt directory. The change in /mnt would not be reflected in SD GUI window.
Then I checked the mmcblk by lsblk, here is the result:
nvidia@tegra-ubuntu:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
mmcblk0rpmb 179:24 0 4M 0 disk
mmcblk0boot0 179:8 0 4M 1 disk
mmcblk0boot1 179:16 0 4M 1 disk
mmcblk0 179:0 0 29.1G 0 disk
├─mmcblk0p1 179:1 0 28G 0 part /
├─mmcblk0p2 179:2 0 4M 0 part
├─mmcblk0p3 179:3 0 256K 0 part
├─mmcblk0p4 179:4 0 512K 0 part
├─mmcblk0p5 179:5 0 3M 0 part
├─mmcblk0p6 179:6 0 2K 0 part
├─mmcblk0p7 179:7 0 604K 0 part
├─mmcblk0p8 259:0 0 500K 0 part
├─mmcblk0p9 259:1 0 2M 0 part
├─mmcblk0p10 259:2 0 6M 0 part
├─mmcblk0p11 259:3 0 2M 0 part
├─mmcblk0p12 259:4 0 128M 0 part
├─mmcblk0p13 259:5 0 32M 0 part
├─mmcblk0p14 259:6 0 64M 0 part
├─mmcblk0p15 259:7 0 512K 0 part
├─mmcblk0p16 259:8 0 256M 0 part
└─mmcblk0p17 259:9 0 646.7M 0 part
mmcblk1 179:32 0 29.5G 0 disk
└─mmcblk1p1 179:33 0 29.5G 0 part /media/nvidia/a83fb6f4-d15e-4c17-9a19-e700f2d87ca6
Apparently the SD card physical address turns out to be
/media/nvidia/a83fb6f4-d15e-4c17-9a19-e700f2d87ca6
I wonder what happens to /mnt directory though.
Besides, in order to unmount later, should I do
$ sudo umount /mnt
or
$ sudo umount /media/nvidia/a83fb6f4-d15e-4c17-9a19-e700f2d87ca6 ?
Not sure if I mounted the SD card properly, please share your insight.