how to make the system partitions on the device read-write

6041 views
Skip to first unread message

gtxia

unread,
Jan 8, 2009, 10:43:38 PM1/8/09
to android-platform
Hello all

Recentally I bought a Android development device, but when I
use the command "adb remount" to make the system partitions on this
device read-write. The command always complains that "remount
failed:Operation not permitted". But when I use the command "adb
shell" and "mount -o rw, remount -t yaffs2 /dev/block/XXXX /system"
only can make the system partitions read-write. Since I can use it to
make its partitions read-write, I still can not use the command "adb
push XXX /system/lib/XXX". How can I solve this problem? Appreciate
for any hints.

Regards

gtxia

2009-1-9

David Turner

unread,
Jan 9, 2009, 2:17:46 AM1/9/09
to android-...@googlegroups.com
hello,

try opening and adb shell session, typing "su", then the "remount ..." command.
let us know if this works or not

regards

Mike Lockwood

unread,
Jan 9, 2009, 11:52:39 AM1/9/09
to android-...@googlegroups.com
actually "remount" is not a command in the shell, so that won't work.
"adb remount" is implemented within adb itself, and will only work if
your adbd on your device is running as root. If you have root on your
device, you can change:

ro.secure=1

to:

ro.secure=0

in /default.prop

Then your adbd daemon will run as root and commands like adb remount
and adb sync will work.

Mike

--
Mike Lockwood
Google android team

TAKEphONE

unread,
Jan 11, 2009, 4:27:36 AM1/11/09
to android-platform
Hi,

Can you spell out the instructions on how to do this (for a non-unix
user -
using Windows PC and a ADP1 device) ?

TIA

On Jan 9, 6:52 pm, "Mike Lockwood" <lockw...@android.com> wrote:
> actually "remount" is not a command in the shell, so that won't work.
> "adb remount" is implemented within adb itself, and will only work if
> your adbd on your device is running as root.  If you have root on your
> device, you can change:
>
> ro.secure=1
>
> to:
>
> ro.secure=0
>
> in /default.prop
>
> Then your adbd daemon will run as root and commands like adb remount
> and adb sync will work.
>
> Mike
>
>
>
> On Fri, Jan 9, 2009 at 2:17 AM, David Turner <di...@android.com> wrote:
> > hello,
>
> > try opening and adb shell session, typing "su", then the "remount ..."
> > command.
> > let us know if this works or not
>
> > regards
>

Yoav Weiss

unread,
Jan 11, 2009, 4:19:29 PM1/11/09
to android-...@googlegroups.com
I can't spell out instructions for the above mentioned suggestion, since I don't know which file editor comes on the shipped device, but I have an alternative solution.
From the SDK's tools directory, run adb shell. In the prompt run the following:
# su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# chmod 777 /system (Or any subdirectory you want to push to inside system)
# exit
adb push <local file> <device location>

and eventually you should restore the original directory permissions by:
# chmod 755 /system (Or any subdirectory you modified permissions to)

Hope this helps,
Yoav

TAKEphONE

unread,
Jan 12, 2009, 7:09:00 AM1/12/09
to android-platform
Hi,

Thanks - it seems to work !!!

I now have some Hebrew fonts !

Now I only need a way to enter Hebrew text (keyboard - virtual or
hardware)...


On Jan 11, 11:19 pm, "Yoav Weiss" <yoav.weiss...@gmail.com> wrote:
> I can't spell out instructions for the above mentioned suggestion, since I
> don't know which file editor comes on the shipped device, but I have an
> alternative solution.From the SDK's tools directory, run adb shell. In the
> prompt run the following:
> # su
> # mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
> # chmod 777 /system (Or any subdirectory you want to push to inside system)
> # exit
> adb push <local file> <device location>
>
> and eventually you should restore the original directory permissions by:
> # chmod 755 /system (Or any subdirectory you modified permissions to)
>
> Hope this helps,
> Yoav
>
Reply all
Reply to author
Forward
0 new messages