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

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

  1. E. says:

    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