|
Write on the Android Read-only file systemBy Radu Motisan Posted on May 14th, 2009 , 8112 Views (Rate 5.51) |
Most of Android partitions are mounted as read only.
For eg. /system where most of the libs and other system components are stored, including the permissions.xml file.
You can temporary re-mount the /system partition to read write and load your new files to that partition!
using adb shell or the android terminal with root privileges, do the following:
See the currently mounted partitions:
# mount
Then re-mount to read-write the partition you are interested in , eg. /system:
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3
# chmod 777 /system
You can also:
mount -o rw,remount -t rootfs /
Sweet!
Radu Motisan
|
|























July 22nd, 2010 at 10:10 am
Ну наконецто, нашел полезную информацию без всякой хрени в виде вымысла и кражи мыслей других людей
July 22nd, 2010 at 1:33 pm
Not sure what you mean, but thanks for taking the time to read this article.
July 23rd, 2010 at 7:55 pm
Поздравте меня я нашел то что искал, спасибо автору топика за доступное изложения материала.Жаль что в интернете всю труднее откопать что либо стоящее, правду говорят интернет большая помойка
August 10th, 2010 at 11:18 pm
English comment!
Thanks! This comes in handy for me a lot, and I use this page as a reference.
This has helped me push many updates to my system folder.
August 11th, 2010 at 8:24 pm
Привет, вы должны, вероятно, использовать инструменты Google языке, чтобы попытаться выяснить, что они говорят
September 7th, 2010 at 5:55 pm
I don’t understand why you would want to chmod the /system directory – you are granting everybody write access to the directory with the chmod 777. I would advise that you omit that step. If you want to restore the default access permisions of the /system directory – use chmod 755 /system to restore it to default. Unless I am missing something and the permissions get reset anyways…
By default the root user is already granted write access – no need to give group and others write access as well. So as long as you have a rooted phone that step is unnecessary.
October 2nd, 2010 at 6:49 pm
Thanks a lot dude, this came very in handy.
November 8th, 2010 at 3:41 pm
[...] to /system/app on the device, and do a restart. Step 1. Make the /system partition writable . See this article on how to remount, or do the following: d:>adb shell # mount (note: you will see a list of [...]
November 11th, 2010 at 4:49 am
when i push files to the sdcard, it shows the same problem, who can give the answer?
March 4th, 2011 at 6:28 am
[...] can be done using adb also . in that case recovery mode is not required. see Write on the Android Read-only file system « PocketMagic [...]
April 12th, 2011 at 11:49 am
Thanks. I did as instructed i.e. mounted to /system. chmod to 777. Came out of adb shell and tried to push a file to /system/xbin. I keep on getting “failed to copy busybox file to /system/xbin/busybx : Out Of Memory”. Why do I get this error ? How much heap & RAM should be set in the Emulator ?
April 17th, 2011 at 4:09 am
Dear All,
First thankyou so much for the great forum we have here, I am using Huawei Ideos u8150, the fone is network locked so I played around, being a total noob I started with installing sdk, and rooted my fone using z4root, rooting was successful
No when I try to copy a modified build.prop to the systems folder in root explorer, the file is copies but is not visible, also I have deleted the original build.prop & I am afraid to reboot the fone,
can restoring the fone to factory settings solve this ? also how come I copy the file to system folder, it gets copied and I still cant see it ?
I have tried pushing the file using ADB command line but the device refuses to mount (persmission denied)
I would really be thankful to anyone who can guide a noob like me, if you dont this forum has enough reasons to love it already,
cheers !
June 17th, 2011 at 8:13 am
Hi,
Thanx for posting.But i want it to be Programatically.
How to set the permission through Programming?
June 17th, 2011 at 10:03 am
@jetti, you can put the commands in a script, and execute the script programatically.
September 2nd, 2011 at 11:54 pm
hi,
When i type the #mount and then type this next # mount -o rw,remount -t yaffs2 /dev/block/mtdblock3
and then this # chmod 777 /system and check results with mount.
I still can’t copy exploid to /sqlite_stmt_journals because it still says it is Read-Only file system. Can somebody help me so that i can root this phone – myTouch 3g slide and take off the bloatware of the phone. Any help will be appreciated!
September 24th, 2011 at 12:32 am
Thanks a lot!
September 29th, 2011 at 12:18 am
where to type #mount.. make a complete explanation..we are noobs ffs..
October 29th, 2011 at 11:28 am
How to use chmod to set the file mode to 06755?
November 1st, 2011 at 9:13 am
I used # mount -o remount,rw -t cramfs /dev/block/mtdblock4 /system and then used # chmod 0777 /system got reply as Unable to chmod /system :Read only file system so I could not able to push the file into /system/media.So please help me
November 5th, 2011 at 1:23 am
[...] this command: # mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 # chmod 777 /system from here: Write on the Android Read-only file system « PocketMagic I was forgetting other thing, the first time I used ADB was guiding myself with this guide: [...]
July 8th, 2012 at 10:13 pm
Does the Android device have to be rooted for your tutorial ?
July 9th, 2012 at 12:05 am
yes
May 8th, 2013 at 4:16 pm
The second options works for me, thanks