A terminal command for a rooted Android to remount /System as read/write A terminal command for a rooted Android to remount /System as read/write android android

A terminal command for a rooted Android to remount /System as read/write


I use this command:

mount -o rw,remount /system


You can run the mount command without parameter in order to get partition information before constructing your mount command. Here is an example of the mount command without parameter outputed from my HTC Hero.

$ mountmountrootfs / rootfs ro 0 0tmpfs /dev tmpfs rw,mode=755 0 0devpts /dev/pts devpts rw,mode=600 0 0proc /proc proc rw 0 0sysfs /sys sysfs rw 0 0tmpfs /sqlite_stmt_journals tmpfs rw,size=4096k 0 0none /dev/cpuctl cgroup rw,cpu 0 0/dev/block/mtdblock3 /system yaffs2 rw 0 0/dev/block/mtdblock5 /data yaffs2 rw,nosuid,nodev 0 0/dev/block/mtdblock4 /cache yaffs2 rw,nosuid,nodev 0 0/dev/block//vold/179:1 /sdcard vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0


Try

mount -o remount,rw /system

If no error message is printed, it works.

Or, you should do the following.

First, make sure the fs type.

mount

Issue this command to find it out.

Then

mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system

Note that the fs(yaffs2) and device(/dev/block/mtdblock3) are depend on your system.