Wednesday, March 7, 2012

Android - Mount a Filesystem

Mount a filesystem read-write

Very often when you want to write files to a particular partition on ADP1, 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
$ su
$ mount -o rw,remount -t yaffs2 /dev/block/mmcblk0p3 /system

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

No comments: