Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

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

share|improve this question
    
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
add comment

3 Answers 3

up vote 2 down vote accepted

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)?

share|improve this answer
    
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
add comment

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

share|improve this answer
    
I'd like to preserve warranty. –  xralf Mar 15 '11 at 18:54
1  
Then you should use an SD card or something to put files on, you can't write indescriminately to the system or data partitions without root. –  Matthew Read Mar 15 '11 at 18:58
    
We can use interntal flash. –  xralf Mar 15 '11 at 19:22
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.