Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Miserlou!
Old
#1  
Miserlou!'s Avatar
Junior Member - OP
Thanks Meter 0
Posts: 12
Join Date: Dec 2008
Arrow Read-Only Filesystem?

Hello, all!

I'm trying edit a file in /etc/ and adb says 'Failed to copy: Read-only filesystem'

Now, is this actually true? Or is this simply a permissions issue? I'm doing this on a non-rooted phone, so I can't 'touch' anything without permission errors, but is it a futile task if the filesystem is read only anyway?

I'm trying to do this from a non-rooted environment as I had intended on making this into an application, but I imagine that if I can't touch or push these files from an adb shell then I won't be able to from the application space either.

It's frustrating not to be able to edit the filesystem of my own phone, I'll be rooting if this is just a permissions problem and not an issue of a non-writable filesystem. Perhaps I could still make an application for rooted-only phones.. hrm..

Any thoughts on this?
 
jashsu
Old
#2  
jashsu's Avatar
Senior Member
Thanks Meter 4
Posts: 1,845
Join Date: Nov 2008
/etc is an alias for /system/etc, and /system is a partition mounted as ro (you can confirm this yourself by running mount)
 
Miserlou!
Old
#3  
Miserlou!'s Avatar
Junior Member - OP
Thanks Meter 0
Posts: 12
Join Date: Dec 2008
Ah, bugger. So this is hopeless (without modifying and then reflashing)?

Thanks very much.
korndub Old
#4  
Guest
Thanks Meter
Posts: n/a
you need to mount it read write,

mount -oremount,rw /dev/block/mtdblock3 /system

then it will be read/write
 
neoobs
Old
#5  
Retired Moderator
Thanks Meter 9
Posts: 1,268
Join Date: Mar 2008
try adb remount. if it failes you need root sorry.
The Following User Says Thank You to neoobs For This Useful Post: [ Click to Expand ]
 
Rafase282
Old
(Last edited by Rafase282; 22nd January 2009 at 08:59 PM.)
#6  
Rafase282's Avatar
Senior Member
Thanks Meter 302
Posts: 1,433
Join Date: Oct 2006
Location: Bronx

 
DONATE TO ME
Hello, i have the same error and I have root. i have tried adb remount and the mount -oremount,rw /dev/block/mtdblock3 /system

still dotn work. I want to move a script to /

so i only have to type sh debian.sh

nvm I figured it out. i just put it on system and then just type sh debian.sh on the terminal and it works
korndub Old
#7  
Guest
Thanks Meter
Posts: n/a
Quote:
Originally Posted by Rafase282 View Post
Hello, i have the same error and I have root. i have tried adb remount and the mount -oremount,rw /dev/block/mtdblock3 /system

still dotn work. I want to move a script to /

so i only have to type sh debian.sh
what is the error message? saying it dont work doesnt provide enough info for us to help....
 
Rafase282
Old
#8  
Rafase282's Avatar
Senior Member
Thanks Meter 302
Posts: 1,433
Join Date: Oct 2006
Location: Bronx

 
DONATE TO ME
it says sh: cant open aw.sh

so i still have to put the path or cd to where the file is. Is there a way to make /system my home?
korndub Old
#9  
Guest
Thanks Meter
Posts: n/a
no you cant make system your home, system is system, home is home. you can make a symlink if you are familiar with linux - might want to read up about shell commands
 
Edinhox
Old
#10  
Edinhox's Avatar
Member
Thanks Meter 3
Posts: 53
Join Date: Sep 2009
Quote:
Originally Posted by korndub View Post
you need to mount it read write,

mount -oremount,rw /dev/block/mtdblock3 /system

then it will be read/write
Thanks it really worked!! for me i had the same problem as the other guy.
SE Xperia X8 Android 2.1 Rooted+JIT+A2SD

 
Post Reply+
Tags
etc filesystem appspace
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...