How to use mount command on android

Sometimes you need to write files for a partition on android, but you will often get a “Permission Denied” in case of a read-only partition. To solve this, you need to mount a partition with read-write permission.

The following examples show the usage of the mount command on android. The first line allows you to access rootfs with the read-write permission. And the second line allows you to mount a formatted ext4 partition with read-write permission.

root@android:/ # mount -o rw,remount rootfs /
root@android:/ # mount -t ext4 -o rw /dev/block/mmcblk0p2 /mnt
This entry was posted in Android and tagged . Bookmark the permalink.

Leave a comment