SD card error Read-only file system

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

SD card error Read-only file system

2,054 次查看
msingh1920
Contributor V

Hi,

I am using imx8M mini with AOSP 9 on it. I am booting it from eMMC and using 32GB SD card for external storage only.

I am able to build and boot the board with Android and able to access the external SD card through my custom android app.  from my android app i create few files on SD Card and write some sensor data into it.

But sometime while testing when my app trying to create file or write data in file on SD Card it gives error SD card is in read only mode.

System.err: java.io.FileNotFoundException: /storage/emulated/0/User_Data.txt (Read-only file system)

This error is not frequent. But some time I face this issue.

After Restart everything works fine. I checked my SD Card and it is also working fine.

In my android app also I gave all the read and write permission. And 90 or 95 times it works perfectly fine only few times it gives this error. 

Since I am not facing this issue every time hence I am not sure what might be issue ?

Any suggestion what might be issue in Android framework side? or Kernel / BSP side ? Or Any ways by which I can root cause this issue ?


Thanks

标记 (5)
0 项奖励
回复
2 回复数

2,034 次查看
msingh1920
Contributor V

Any suggestions please ?

0 项奖励
回复

2,044 次查看
msingh1920
Contributor V

Hi,
Any suggestion ?

Thanks

0 项奖励
回复