[Q] Writing to /system? - myTouch 4G Q&A, Help & Troubleshooting

I can't mount r/w through root explorer.. I also tried mounting in recovery but it wont stick when the phone boots up.. anyone know how to do it?

assuming you have root, open a terminal and type the following
su
busybox mount -o remount /system

i am rooted, and i tried it.. still a no go on the r/w.. its not that big of a deal at this point i guess, just seeing if anyone knew what the deal was
my busybox won't update either.. saying i may not have nandroid backup or it was unable to remount..

my bad sorry. the second command should be
busybox mount -o remount,rw /system

awesome.. worked

Related

Rooted Hero Fails adb remount, can't move files from SD

I rooted my hero last night and tried out a few different ROMs but eventually decided to revert to stock and make some manual changes. I used nandroid to restore to just after the root (1.56.651.2). I was able to remove some apps using adb, but the adb remount command fails (permission denied), and I'm unable to push a new bootscreen on to the phone. I also tried a Root File Manager and pre-kitchen as alternatives for the bootscreen, and neither one works. The Root Manager won't paste the files from SD into /system/media/ and pre-kitchen just reboots the phone.
Any suggestions?
Any chance this has something to do with downloading only up to SDK Platform 1.5? I'm at a total loss. I RUU'd my phone, did a clean root at startup using adb shell, and I still have the same problem. The adb remount command won't work, and I can't push anything into the system directory. For what it's worth, when I still had Root Manager installed I was able to toggle RO R/W in any directory with no problem, and I could move files around within the ROM... but I couldn't move anything into it from the SD. I'm new at this, so I have no idea what the problem might be. Anyone else had this problem or have any suggestions?
If anyone else runs into this problem, this solution worked for me:
adb shell
# su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# chmod 777 /system (Or any subdirectory you want to push to inside system)
# exit
adb push <local file> <device location>
Restore modified permissions when done.
Though I'm still not sure why this is necessary in place of adb remount.
I'm pretty sure the adb remount command will not work on the stock rom. You should be able to do it with just this command instead:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
dametzg said:
I'm pretty sure the adb remount command will not work on the stock rom. You should be able to do it with just this command instead:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
Click to expand...
Click to collapse
Thanks... didn't realize stock wouldn't accept adb remount. If I use the above line from within shell, that doesn't help me push anything on to the phone though... so I needed to enable global permission and then do the push. Oddly enough I tried the same approach last night using Root Manager, and the transfer from SD still failed, even after I applied 777 to the dir I was trying to modify. The current solution may be kind of tedious, but at least it works.
you really shouldn't do 777 on your filesystem, ANY app can then write to your system, overwrite things, or install malicious code. Just remount manually and you should be able to push anything you want, just remember that w/ the stock rom you also don't get a full busybox either.
I'm not positive, but I would think after you remount, you should be able to "adb push" to /system. I suppose it might be specific to that shell, but I would think not.
You just may have to do it once each time you boot your phone.
Edit - err nevermind... you're having permission errors.... um... change adbd on the phone to run as root? not sure how off the top of my head...

Recovery Console / FW Problem

Hi,
well, since i rooted via recovery console (update.zip) and installed rom manager, that i have a droid and a triangle with a yellow exclamation point in the recovery console as background (i already hard resetted the phone, cleared all data, but the triangle still keeps there when i go to the recovery console... is this normal or do i have a problem in the firmware? I tried to install the update.zip from wavesecure from the recovery console and it gave error and didnt install, maybe it damaged the firmware... any tips?
Another question...since i failed to install wavesecure via update.zip, i used adb, copied the apk to /sdcard then i moved it to /system/app, its working now, but one of the commands i used was
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
do i need to change permissions with another command or it reverses that command when i reboot? Because on their site they say to do "mount -o remount,ro 0t yaffs /dev/block/mtdblock3 /system" after copying, but that command is invalid, is not working.
Thanks for helping
bump....Please help, mainly about the triangle with a ! in recovery, because if its an error with firmware i can flash another, im still with the stock one JF5

Cannot modify system or delete bloatware anymore?

Ive upgraded to Eugene's Unnoficial ODIN 2.2 ROM and so far its working pretty good but I cant seem to modify anything in the system. Anyone know why? Tried deleting some bloatware with root explorer and android mate but neither work. Am I missing something here? Worked fine in 2.1.
not sure about the 2.2 rom, but with the JI6 update you had to mount system as rw
Mount as read/write:
Code:
mount -o rw,remount -t rfs /dev/block/stl9 /system
Mount as read-only:
Code:
mount -o ro,remount -t rfs /dev/block/stl9 /system
obviously you do this at your own risk
I used titanium backup and it worked for me...I'm using same froyo rom as op
Sent from my SGH-T959 using XDA App
in root explorer you have to toggle the mount as r/w button at the top, and then you can just toggle it back to r/o...kind of cool so you don't accidentally butt-delete your settings.apk or something
bstromberg said:
in root explorer you have to toggle the mount as r/w button at the top, and then you can just toggle it back to r/o...kind of cool so you don't accidentally butt-delete your settings.apk or something
Click to expand...
Click to collapse
Tried that. Still doesn't work. Also tried terminal remount. Doesnt seem to work either. Ill try titanium next.
jrharvey said:
Tried that. Still doesn't work. Also tried terminal remount. Doesnt seem to work either. Ill try titanium next.
Click to expand...
Click to collapse
Install BusyBox off of market, then open the app and click install for the newest busybox, now remove the bloatware
AustinKnight45 said:
Install BusyBox off of market, then open the app and click install for the newest busybox, now remove the bloatware
Click to expand...
Click to collapse
Thanks. Busybox did the trick. I definately did not have it on the stock ROM when i removed all the bloatware before.
In the mount commands above, swap out 'rfs' for 'yaffs2'
I am kinda having the same problems, however I don't have Root Exp, and all my apps in /system/app are -r-. When I try the mount -o rw,remount -t rfs /dev/block/stl9 /system it says Blah blah blah operation not permitted.
I am trying to push a new mms.apk and can't even do that. Says "Read-only file system"
Any help is appreciated
Edit: after installing the newest busybox, I could push in the new signedmms.apk, however all the apps are still -r- in /system/app

How to remove the demo games?

I went to /system/app and found most applications, but the only thing that I really want to find are the demo games, and for some reason I can't find them! I even went to /data/app and found the apk packages there, I deleted them but the games are still installed.
Any ideas?
Are they in /cust?
if i have not remembered wrongly, the demo games r in /system/app/..
what specific game(s) do u want to remove? i can give u the location tonight after work (as i stored the paths in my home pc..)
FYI. Mine are all in /cust/pccw/hk/app.
simplistian said:
FYI. Mine are all in /cust/pccw/hk/app.
Click to expand...
Click to collapse
is it possible\safe to delete them?
if u meant those "Ironman", "Prince of Persia", etc., then its okay to delete them..
i did..
My phone didnt have any demo games and i found it weird couse in all the reviews i saw them in the menu screen...
my memory didnt fail me.. the 4 games that i removed were all in /system/app/
BubbleBash2.apk (Launcher: Bubble Bash 2)
IronMan2.apk (Launcher: Iron Man 2)
PrinceofPersiaZero.apk (Prince of Persia)
UNO.apk (Launcher: UNO)
btw, im with the hong kong B135 version..
@flipmodegr
yeah, it seems that ROM for Wind is cleaner..
nice to hear that its normal for the greek phones
yes, Wind Gr gives a stock android rom (not even hauwei has added anything) so its clean like water
Thanks everyone I found them in /cust/roadhound/au/app but for some reason I can't mount the location as R/W using Root Explorer.. my phone IS rooted.. I don't know why it does not let me mount it as R/W.. therefore I can't delete them!!
Any ideas on this?
Thanks
Tcm9669 said:
Thanks everyone I found them in /cust/roadhound/au/app but for some reason I can't mount the location as R/W using Root Explorer.. my phone IS rooted.. I don't know why it does not let me mount it as R/W.. therefore I can't delete them!!
Any ideas on this?
Thanks
Click to expand...
Click to collapse
Try using adb or you could try in terminal emulator:
Mount R/W
Code:
mount -o remount,rw /dev/block/mmcblk0p12 /system
Mount R/O
Code:
mount -o remount,ro /dev/block/mmcblk0p12 /system
I can mount /system as R/W.. I just cant mount that directory in R/W .. it just opens as R/O even if I mount /system as R/W
Tcm9669 said:
I can mount /system as R/W.. I just cant mount that directory in R/W .. it just opens as R/O even if I mount /system as R/W
Click to expand...
Click to collapse
Oops sorry. See Below.
Try using adb or you could try in terminal emulator:
Mount R/W
Code:
mount -o remount,rw /dev/block/mmcblk0p1 /cust_backup
Mount R/O
Code:
mount -o remount,ro /dev/block/mmcblk0p1 /cust_backup
And the apps are in cust_backup/image/cust_data/roadhound/au/app. The /cust directory is just a link to the cust_backup direcctory. Which is why you cant mount it RW
Tried in Terminal Emulator, said
mount: Operation not permitted
Click to expand...
Click to collapse
then tried with sudo and said
sudo: permission denied
Click to expand...
Click to collapse
Tcm9669 said:
Tried in Terminal Emulator, said then tried with sudo and said
Click to expand...
Click to collapse
Root is su
Ahh, I tried
sudo <<command here>>
su worked! Thanks finally removed them ... WOHO!
Thank you very much mate.. oz oz oz, oi oi oi!
I want to remove those demos too, is it possible with stock non-rooted system?
No.. you need to root it. It's quite easy to do.

System r/o

Hello fellow xda'ers,
A few weeks I am experiencing a problem with my moto x style. The problem is that i don't have access anymore to my system folder. I have full root access, I can use rooted apps, but i can't switch my file system to r/w. Also when I boot into recovery I can flash roms etc, they are fully working, but once again, no system access. Also when I try to mount the system folder in recovery it seems it won't stick. Also when I use root explorer it says it switched to r/w but in fact it is r/o..
Can someone please hint me out what I could do to fix this problem?
Thanks in advance,
Bump
Have you tried something like this in terminal as root, or via ADB root?
Code:
mount -o rw,remount,rw /system
Then for r/o...
Code:
mount -o ro,remount,ro /system
quakeaz said:
Have you tried something like this in terminal as root, or via ADB root?
Then for r/o...
Click to expand...
Click to collapse
Thanks for your reply. But i still can't get system access.
bartjeh1991 said:
Thanks for your reply. But i still can't get system access.
Click to expand...
Click to collapse
Did you receive an error running the command? You are root, correct? Possibly just use:
Code:
mount -o remount,rw /system
Then run...
Code:
mount | grep system
Mine is read-only, but this should tell you if yours is rw or not.
Code:
u0 a114 clark:/ mount | grep system
/dev/block/bootdevice/by-name/system /system ext4 [B]ro[/B],seclabel,relatime,data=ordered 0 0
quakeaz said:
Did you receive an error running the command? You are root, correct? Possibly just use:
Then run...
Mine is read-only, but this should tell you if yours is rw or not.
Click to expand...
Click to collapse
I get this message everytime i run the commands you give me.

Categories

Resources