“Permission Denied” while trying to write a file to the Android

Posted on December 29, 2011 by admin.
Categories: Android tips and tricks.

Mount an Android filesystem read-write

 Very often when you want to write files to a particular partition on ADB, you will get a “Permission Denied” if the partition is mounted read-only.
To get around this, you need to mount the partition read-write. Typically this is done with /system partition$ adb shell
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system

(Replace /dev/block/mtdblock3 & /system with appropriate device path and mount point, as obtained from the command mount or cat /proc/mounts)

1 comment.

Comment on August 7th, 2012.

the command $cat /proc/mounts should be run first to figure out where and if the ro(read-only) or rw(read/write) needs to be changed. It can be inspected after this line command. After inspection then the line command “#mount -o rw,remount -t yaffs2 /dev/block/mtdblock(X) /(XXXXX)” can be run.

Leave a comment

Names and email addresses are required (email addresses aren't displayed), url's are optional.

Comments may contain the following xhtml tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>