Script for remounting the file system as r/w? - G1 Android Development

Ideally, I'd like to have a script that I can keep on my sdcard that when clicked, it remounts the file system as r/w. The idea is to save me from having to manually punch in the command every time. I have DroidSans installed but it seems like overkill to keep the entire program for just that one function.
I'm not new to 'nix, but don't know much about creating scripts.
Thanks to all that help.

You could jus install DroidSans Tweak Tools on v0.87 the first button is to mount as R/W and the one below that is for Read Only.
Just an option I know it's not jus a script but it's what I've been using for the time being till I write a script to use w/ gscript.

couldn't you just use Gscript to run
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
wouldn't that work?

Meltus said:
couldn't you just use Gscript to run
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
wouldn't that work?
Click to expand...
Click to collapse
Yes, you would type:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
In the terminal emulator after being granted superuser access.

Meltus said:
couldn't you just use Gscript to run
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
wouldn't that work?
Click to expand...
Click to collapse
I'll try that. The project page for GScript appears to be down right now for maintenance, but I will try later and see what I get.
Thanks alot.

Related

solved: Modified RC30 system file replacement

i have fount how to make the android support more languages (basic support), and it's works great over the Emulator.
i took the font files over "system/fonts" and added the chars i needed.
and now i have the G1 Modified RC30 and i want to take those files and replace them.
but i can't get access to do it.
anyone can guide me how i can replace the files??
solved
Code:
> adb shell mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
just need to do this before copying the files
and this when done
Code:
> adb shell mount -o ro,remount -t yaffs2 /dev/block/mtdblock3 /system
hi
how did you manage to change the fonts in the Emulator?
\tools\lib\fonts\default
i tried this one, but it has no use, i suspect that system.img has the system fonts, any help how to access that?
thanks

CDMA Hero Bootscreen MODS *Working

Okay here is how to do it if you dont already know, (sorry if this was done before but i found it amazingly fun. lol)**Note, you can be caught in a boot loop for ANY boot files, i would exclude the .mp3 file, but just to be safe, make sure any file you edit, has the same attributes as before. Editing the .xml file, as long as you only edit variables(e.g. useAudio="0" // 1: true ; 0:false the "0" <- that is the only part you should edit, It should be in quotes!!) Do this at your own RISK! i have attached the XML file as a TXT file, just rename it and edit it to what you like.
What you need:
DriodExplorer, (GUI for editing the phones filesystem)
adb and AndriodSDK (they come together)
1. Open up your adb shell, and make sure you see '#' and not '$'
2. type this in: mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
so output should look like this for Super Users: (From start to finish)
Code:
adb shell
$ su
su
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
Or if you are Rooted already:
Code:
adb shell
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
then open up DriodExplorer and navigate to the "/system/media/bootscreen/"
folder. you can now drag and drop any file or edit any file you want.
**NOTE: you can also do this with a file explorer from the phone side too.
Now to finish the job, in adb shell put this in, so it looks like this for super users:
Code:
adb shell
$ su
su
# mount -o remount,r -t yaffs2 /dev/block/mtdblock3 /system
mount -o remount,r -t yaffs2 /dev/block/mtdblock3 /system
And for Rooted users:
Code:
adb shell
# mount -o remount,r -t yaffs2 /dev/block/mtdblock3 /system
mount -o remount,r -t yaffs2 /dev/block/mtdblock3 /system
Notice the 'rw' is now just 'r' this makes the system folder turn back to read only mode, so not to **** it up later
Hope this has helped many of you!!

[Q] XT720 NAND writing permissions

I have Motorola XT720. Device is rooted, but I don't have possibility to change any file in system folders. I need it for overclocing/undervolting. Is there any way to change it? I used root explorer and it give me info that system is read only.
In root explorer you must click the r/w mount button on the top of the screen. Why not just get milestone overclock for you over/under clocking needs.
I'm an idiot I simply didn't see that option... Thank you very much. Reason why i do not want use milestone overclocking is, I want to set undervolting for all frequencies and add conservative governor.
Dont feel bad I didn't see it either at first.
in adb shell
$ su
$ mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
$ rm /system/'filename'
$ $ mount -o ro,remount -t yaffs2 /dev/block/mtdblock4 /system
$ sync
$ reboot
teruyume said:
$ mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
Click to expand...
Click to collapse
Just be careful that your /system may be mounted off a different partition, depending on your rom. Like mine is /dev/block/mtdblock7.

[Q] Having trouble mounting \system in rw on BAMF 1.5

Hey guys,
Loaded BAMF 1.5 yesterday and have been enjoying the ROM thus far. However, I've been trying to push my custom widget.txt to the \system\customize\ folder so I can have my own power controls in the notifcation bar. I have tried the Mount rw/ro app from the Market, and have also tried mounting rw using adb (mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system).
Each time, when I use the command: adb push widget.txt /system/customize/ I get the error: failed to copy 'widget.txt' to '\system\customize\': Read-only file system
Where am I going wrong?
Seth
sethschmautz said:
Hey guys,
Loaded BAMF 1.5 yesterday and have been enjoying the ROM thus far. However, I've been trying to push my custom widget.txt to the \system\customize\ folder so I can have my own power controls in the notifcation bar. I have tried the Mount rw/ro app from the Market, and have also tried mounting rw using adb (mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system).
Each time, when I use the command: adb push widget.txt /system/customize/ I get the error: failed to copy 'widget.txt' to '\system\customize\': Read-only file system
Where am I going wrong?
Seth
Click to expand...
Click to collapse
I'm pretty sure the TB is using EXT3, not YAFFS2.
Try
Code:
mount -o remount,rw -t ext3 /dev/block/mtdblock3 /system
Even easier, assuming you have busybox. busybox mount isn't as lame as the standard mount which is provided, so you don't have to tell it as much, it can figure things out on its own:
busybox mount -o remount,rw /system
busybox mount -o remount,ro /system
Click to expand...
Click to collapse
even easier.
sysrw
sysro
Doesn't anyone ever read the first post of my rom?
I'm an idiot. Thanks for the ext3 vs yaffs2 reminder.
I'll try busybox at some point also to check
And to Adrynalyne, apparently I didn't read the first post...my bad. Thanks for reading mine, though. I'll pay closer attention in the future.
Seth

Please help me adb mount RW

Hy !
My name is Chris,from Romania.
First,excuse me for me poor english !
I have a Prestigio PMP5100 tablet. I replace original firmware with Arnova 10 rooted firmware. It work fine,but the partition not mounted R/W and I don`t have access system files.I install USB drivers,JRE,JDK,Addroid SDK.
With "adb devices" my tablet apear connected.
With "adb shell" I tasted :
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
apear :
#su
su
#mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
My problem is how to continue ???
If press ENTER key apear new line with # :
#
Please help me.
Thank you in advance,and have a nice day.

Categories

Resources