How to automatically mount a sdcard to a directory

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to automatically mount a sdcard to a directory

737 次查看
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 项奖励
2 回复数

626 次查看
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 项奖励

626 次查看
pingyuchen
Contributor II

Thank you, Linnik. I have solved it.

0 项奖励