SD card error Read-only file system

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

SD card error Read-only file system

1,482 Views
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

0 Kudos
2 Replies

1,462 Views
msingh1920
Contributor V

Any suggestions please ?

0 Kudos

1,472 Views
msingh1920
Contributor V

Hi,
Any suggestion ?

Thanks

0 Kudos