How to automatically mount a sdcard to a directory

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to automatically mount a sdcard to a directory

731 Views
pingyuchen
Contributor II

Hi,

I use the imx8mq evk board(Android system) and I found that it doesn't be automatically mounted to a directory when I inserted a sdcard into the sdcard connector. My app wants to write/read data to/from a sdcard. How can I do to realize this function?

Best regards,

0 Kudos
2 Replies

620 Views
b36401
NXP Employee
NXP Employee

You need to add "auto" option into the line connected to sdcard in fstab file.

Have a great day,
Victor

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

620 Views
pingyuchen
Contributor II

Thank you, Linnik. I have solved it.

0 Kudos