3

When I run the command

adb push file.txt /flash/Data

it writes this error message

failed to copy 'file.txt' to '/flash/Data': Read-only file system

I tried to solve it according to this page http://android-tricks.blogspot.com/2009/01/mount-filesystem-read-write.html but with no success.

Could you navigate me and solve the problem? thank you

Izzy
  • 91,166
  • 73
  • 343
  • 943
xralf
  • 47
  • 1
  • 8
  • 19
  • What device are you using? I'm not familiar with the /flash folder. – Matthew Read Mar 15 '11 at 17:50
  • my device is Archos 7. In OI File Manager I can see the flash folder. But folder is not important, I can copy it to another folder (but I don't have SD card) – xralf Mar 15 '11 at 18:54
  • OK. As Bryan asked in his answer, what are you trying to accomplish? Just store files? – Matthew Read Mar 15 '11 at 19:26
  • I have problem with copying files (I asked another question about it), so I tried to solve it with adb push. – xralf Mar 15 '11 at 19:32

3 Answers3

2

You have to have root access to mount the drive as that article is describing (calling su == becoming root).

What are you trying to accomplish? Can you push the file to the sdcard instead (if your device has one)?

Bryan Denny
  • 21,906
  • 20
  • 78
  • 98
  • I have problem with copying files (I asked another question about it), so I tried to solve it with adb push. – xralf Mar 15 '11 at 18:55
1

You can attempt writing to /data/local/tmp/ as it is writable even by normal users.

earthmeLon
  • 670
  • 1
  • 8
  • 14
1

You normally have to be rooted to change how the filesystem is mounted.

Matthew Read
  • 50,567
  • 30
  • 145
  • 273