Read-Only File System (Help Please)

Informatix

Expert
Licensed User
Longtime User
I am using the AVD when I try to copy files from mnt/sdcard it returns error READ-ONLY file system (30).
:BangHead: Does the phone have to rooted just to copy?

Does anyone know how to get past this problem??

Thanks in advance.

Did you run your application in Release mode ? In this mode, you need to add a permission to write on the external storage media.
 
Upvote 0

giga

Well-Known Member
Licensed User
Longtime User
How did you set up your AVD?

I am using a Windows 7 PC. The AVD Devices are located under C:\Users\PC\.android\avd.

The AVD name is test,
Target name is Android 4.1,
Platform is 4.1,
API Level is 16,
CPU/ABI is ARM(armeabi-v7a)

I have a 64MB SD Card in my flash card slot that I am using as H:\ drive for the emulator

example ( H:\SDCARD\sdcard_dev.iso

Hopefully this answers you question.:sign0188:
 
Upvote 0

giga

Well-Known Member
Licensed User
Longtime User
Did you run your application in Release mode ? In this mode, you need to add a permission to write on the external storage media.

I tried it in Release Mode and Debug, Same issue. Using DDMS.bat to view the file system shows

mnt directory as drwxrwxr-x
and
sdcard directory as d---rwxr-x

Maybe this can help, I also added
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
to the manifest.
 
Upvote 0

giga

Well-Known Member
Licensed User
Longtime User
How are you trying to copy to the sd card?

I tried using busybox in the AVD with the copy command
cp mnt/sdcard to 192.168.0.1/backup.

and I get "mnt/sdcard/" Read-Only File System(30)

I have no problem in the AVD writing to the sdcard its copying from the sdcard.

Thanks for the help again.

:)
 
Upvote 0
Top