Hi NXP Team,
Please find our observations on automount feature of SDCard.
1. Board booted up
2. Inserted SD card1 with fs 'ext4'
3. Automounted to /run/media/mmcblk1p1
4. Removed SD Card1
5. Inserted another SD card2 with fs 'extfat'
6. Failed to mount SD card2 due to unknown filesystem to path /run/media/mmcblk1p1
7. Removed the SD Card2
8. Again inserted the SD card1 with fs 'ext4'
This time if fails to mount the SD Card1.
To recover this scenario, two ways
1. Reboot the board
2. Restart the below two services
systemctl status systemd-fsck@dev-mmcblk1p1.service
systemctl start run-media-mmcblk1p1.mount
Conclusion:
Once we insert an SD card with unsupported filesystem, next time onwards, it will not automount supported filesystems as well. We need to restart the .service and .mount files.
Can you provide us any other solution which will automount in all scenarios without restarting the service?
Thanks NXP for the confirmation.
Hi @ssuresh,
Thank you for contacting NXP Support.
I can confirm your issue. In this case Linux is trying to mount an unsupported filesystem and this action write erroneous variables on the services that you mentioned.
However, this is an expected behavior, and you could avoid the issue deactivating the automount and verifying the supported filesystem before mount.
I hope this information will be helpful.
Have a great day!