Search code examples
androidadbmkdir

adb shell command: mkdir (for creating a directory)


I am trying to create a directory through adb shell

I have to create a directory in etc folder which was unsuccessful. I managed to figure out that it is linked to /system/etc and tried to create in /system/etc, but in both cases I was getting "Read only File System".

How to make it Read write?

I tried switching to super user using "su".

I tried modifying udev/rules.d in the host machine:

created a file 51-android.rules with " SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666", GROUP="plugdev"  "

I'm still getting the same "Read only File system".

How do I fix this?


Solution

  • http://android-tricks.blogspot.in/2009/01/mount-filesystem-read-write.html

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

    This was useful: now i can create directory :)