Mounting /system as rw - G2 and Desire Z Q&A, Help & Troubleshooting

Alright, so I've been trying to mount the /system partition as rw today now that we have perm-root and I've been failing. I'm tried multiple mount options such as
mount -o rw,remount -t ext3 /system
mount -o rw,remount -t ext3 /dev/block/mmcblk0p15 /system
and a few others. The command works but when I try to uninstall an application via the package manager:
pm uninstall /system/app/amazonmp3.apk
pm uninstall /system/app/amazonmp3
I get failure.
I was also searching in the init.rc scripts in /, and noticed that it mounts the /system twice. Once in rw and then again in ro. I can't change that file though since for whatever reason, I still can't access the /system even with perm-root (s-off).
Titanium Backup also doesn't detect any /system applications.
Any thoughts, or enlightening clarifications? I'm not a Linux beginner and have experience in system administration all the way from Debian Sid to Arch Linux.
EDIT:
Solution: I have ro.secure=0 now and the remount is now successful.

You are using the pm command incorrectly. The argument is package name, not file name.
pm uninstall com.amazon.mp3
pm list packages for a full list.

That would be the reason. Unfortunately I can't look at the man pages of these commands on the phone ;D.

You edited your post to show that you now have r/w access to the /system folder, but you didn't say how you achieved ro.secure=0.
Care to share? I'm having the same issue.

perm root will give you ro.secure=0

jgro1976 said:
You edited your post to show that you now have r/w access to the /system folder, but you didn't say how you achieved ro.secure=0.
Care to share? I'm having the same issue.
Click to expand...
Click to collapse
rosecure=0 is set in the ramdisk of the kernel. It allows easy mounting rw , as in adb remount, however shouldn't be needed. Use this to mount as rw:
# mount -o rw,remount /dev/block/mmcblk0p25 /system
Replace rw with ro and run again when your done to return system to ro. I just tested it and it does mount as rw

Just to make sure it worked, I type that and get:
Usage: mount [-r] [-w] [-options] [-t type] device directory
after trying this.

jgro1976 said:
Just to make sure it worked, I type that and get:
Usage: mount [-r] [-w] [-options] [-t type] device directory
after trying this.
Click to expand...
Click to collapse
U sure you typed it exactly as I did?
There is a space after /dev/block/mmcblk0p25 before /system
Edit: and no space between comma and remount as in rw,remount

Yeah, that's how I typed it, exactly as you had it =\

jgro1976 said:
Yeah, that's how I typed it, exactly as you had it =\
Click to expand...
Click to collapse
Hmm, and you did this from root prompt # not $.
Can anyone else confirm or deny that command for me. I'm gonna flash a unmodified kernel when I get home tonight and see if that makes a difference.

fastludeh22 said:
Hmm, and you did this from root prompt # not $.
Can anyone else confirm or deny that command for me. I'm gonna flash a unmodified kernel when I get home tonight and see if that makes a difference.
Click to expand...
Click to collapse
I can confirm it doesn't work on my G2 either. I'm using Cyanogen RC1 btw.

try
mount -o remount,rw /dev/block/mmcblk0p25 /system
maybe the rw has to come after remount.
Anyways, I know mine works on permrooted stock

That did the trick, thanks!

ratchetrizzo said:
try
mount -o remount,rw /dev/block/mmcblk0p25 /system
maybe the rw has to come after remount.
Anyways, I know mine works on permrooted stock
Click to expand...
Click to collapse
jgro1976 said:
That did the trick, thanks!
Click to expand...
Click to collapse
So weird. If I type it that way, I get the mount options menu u were getting. If I type it my way it works.

I was messing around with remounting the /system partition with rw permissions, and the thing is that it does work as in, it doesn't give you an error when mounting, but it still doesn't let you access it. It's weird.
As for the ro.secure, I just used installed bacon bits, and it did it for me.

There's an app for that! I'm using a market app called mount /system (rw / ro). You can just search mount rw in the market, its free too
Sent from my T-Mobile G2 using XDA App

Can't you just use adb remount?

It worked for me (GT-P1000, CM 10.1-20130218-experimental- cdesai)

Related

[SOLVED?] Busybox causes /system to be read-only?

First, my Euro Desire Z is S-Off (using the gfree method) and perm-rooted.
I was messing with installing some new keyboard layouts to the /system folder, when I found and installed busybox from the market to use its cp command...
Then I discovered I could no longer write to /system -- I could before busybox
I booted to recovery, installed my nandroid backup (taken before installing busybox), and I still can't get write access to /system
I did a factory wipe (still have S-Off) ran visionary to root and permroot ( I get the # prompt just fine) and still no write access to /system.
I restored my nandroid to get my apps back and still can't seem to get write access.
Any ideas
Hmm -- I just found and installed "mount /system" from the market and that did it -- I can now write to /system.
Not sure why it stopped working before... Busybox may have been a red herring.
I think it was just that you still had /system mounted as read-only, and that app just mounted it as read-write (i.e. "mount /system -o rw, remount" )
steviewevie said:
I think it was just that you still had /system mounted as read-only, and that app just mounted it as read-write (i.e. "mount /system -o rw, remount" )
Click to expand...
Click to collapse
Yeah -- I had it RW and something must have remounted it to RO --perhaps when I was doing an adb session...
Speaking of BusyBox -- whats the best version people are using for the DZ?

Remount read-only?

Hey everyone.
I'm hoping I haven't screwed the pooch on this one. I'm still used to my samsung moment where I could log in, remount /system as RW and delete apk's. I tried following this method with my Evo4g, but when I try to remount the filesystem as RO after performing the deletions its not letting me. Its saying that the resource is busy.
mount -o ro,remount -t yaffs2 /dev/block/mtdblock4 /system
mount: Device or resource busy
Click to expand...
Click to collapse
I know with the moment if you didn't remount back to RO afterwards you'd get stuck in a boot loop. Does the same apply here? Any help/assurances would be appreciated.

[Q] Can't write to /system [SOLVED]

Guys, can someone tell me what i'm missing? I followed this guide to root and S-OFF my phone, but just now i realized that i have no write access to /system partition. It isn't very important for me, since i'm flashing only rooted ROMs and when i need to gain write access to /system partition - i'm rebooting into CW Recovery, but... It would be handy to have it anyway
Some info form what i see in fastboot:
VISION PVT ENG S-OFF
HBOOT-0.8.4.2000
RADIO-26.03.02.26_M
Thank you in advance.
Did you verify that you have root? Use the Android Terminal Emulator, type su and if you get a #, you're good to go. If you do have root, just use Root Explorer and hit the R/W button while in the system folder.
Sent from my HTC Vision using XDA App
ScooterG said:
Did you verify that you have root? Use the Android Terminal Emulator, type su and if you get a #, you're good to go.
Click to expand...
Click to collapse
Yes, i'm getting root permissions here.
ScooterG said:
If you do have root, just use Root Explorer and hit the R/W button while in the system folder.
Click to expand...
Click to collapse
When i press mount as R/W, nothing happens and i can't make any changes in /system partition.
Also, i tried Font Changer Lite (from Market), but i'm getting message:
"Write access for the system partition was not established on your device and therefore this application will have to be closed.
Please make sure your device has full root before you try again"
Am i missing something? Thanks for quick reply btw.
Using ADB
1. adb shell
2. mount -o rw,remount -t ext3 /dev/block/mmcblk0p25 /system
3. exit
aznsnake666 said:
2. mount -o rw,remount -t ext3 /dev/block/mmcblk0p25 /system
Click to expand...
Click to collapse
"mount -o rw,remount /system" should work too.
(you need to mount /system specifically as rw, by default it's still mounted read-only even if you have root/S-OFF)
Or simply:
adb remount
Love that No need to remember the blocks and hassle with the mount command
AnyDone said:
Or simply:
adb remount
Love that No need to remember the blocks and hassle with the mount command
Click to expand...
Click to collapse
This is the best way I've found to do it, but it is only temporary.
Thank you guys very much, that worked
Edit: Font Changer Lite still complaining about permissions.
There's a /system remount app in the market lol
Sent from my HTC Vision using XDA App
stevencpoynter said:
There's a /system remount app in the market lol
Click to expand...
Click to collapse
Sure, let's download an app for each ADB command, so then we can complain about having not enough of internal memory again
I know that sounded a little sarcastic lol, was in the bank waiting in line.
Seriously though, there's a one click remount app, its wonderful as I no longer have to use adb or a terminal to make /system rw
Sent from my HTC Vision using XDA App

[Q] Replacement for root explorer for moto ginger 2.3.4

Hi All,
Can some one please suggest me a replacement for root explorer? I tried to run it on Moto ginger 2.3.4 but getting a force close.
How do you guys copy files to system or other protected directories? I tried adb remount but its failing for permissions issue.
You have to use root explorer v2.16
I use Yaffs Explorer. It's very nice in that it uses a small font for both file lists and the internal editor, so you see a lot of content on the screen.
As for ADB, do an "adb shell", then you can gain root by typing "su". On the phone the usual superuser popup will appear, confirm it and voila you have root in the adb shell. Then you can remount with "mount -o remount,rw -t ext3 /dev/block/mmcblk1p21 /system". And to go back to read-only: "mount -o remount,ro -t ext3 /dev/block/mmcblk1p21 /system"
Gusar321 said:
I use Yaffs Explorer. It's very nice in that it uses a small font for both file lists and the internal editor, so you see a lot of content on the screen.
As for ADB, do an "adb shell", then you can gain root by typing "su". On the phone the usual superuser popup will appear, confirm it and voila you have root in the adb shell. Then you can remount with "mount -o remount,rw -t ext3 /dev/block/mmcblk1p21 /system". And to go back to read-only: "mount -o remount,ro -t ext3 /dev/block/mmcblk1p21 /system"
Click to expand...
Click to collapse
Great!! Ill try that.. Thanks..
Also you can try Super Manager 2.2.9, it's free and it's pretty good.

remount with wr privileges. How?

Hello everyone, I've been using android since Eclair and I had a couple of different brands under my ownership. Sony Ericsson, Samsung, Alcatel...
I've always been rooting my phones. After that, each time I needed rw privileges in order to be able to delete files (like built-in apps), place ringtones, alarms and notifications sounds directly into /system/media/audio, rename or backup system files etc., I was using a simple command from a terminal app or via ssh from a desktop giving this syntax:
mount -o remount, rw /dev/block/mtdblock3 /system
Then, until next reboot I could write in /system.
Unfortunately since I got G3 this command won't work. Apparently, either lollipop's or LG's partitions are a bit different that the usual...
After looking around for a while, I came up with a page which shows that this command "ls -al /dev/block/platform/msm_sdcc.1/by-name", lists all partitions' paths by label and that according to the list, /system corresponds to mmcblk0p40. So I was thinking of trying the command a bit altered, like this:
mount -o remount, rw /dev/block/mmcblk0p40 /system
Since I don't have good knowledge of linux -I can't even tell if the old syntax is not working because of LG's implementation or of android's new version (lollipop)- I'd just like someone who has already done this to confirm that I'm right and it works. I'd really not like to brick the phone atm. I feel too old for this s...
Thanks, George...
P.S.: Now, if someone would be kind enough to provide an in-depth explanation of how I could always find by myself (in any newer version of android and any different android implementation), which partition is the appropriate one to use in this command in order to obtain rw for /system, that would be more than welcome!
Edit: I should have mentioned this to avoid getting answers about 3rd party apps which do those stuff like root explorer: I'm looking for a solution, not a workaround. I need the syntax of the command, not a list with apps which do what I'm trying to do using terminal. But thanks adamzki anyway...
Use root explorer pro. That's it.
This command is enough to mount /system as rw;
Code:
mount - o rw,remount /system
forumber2 said:
This command is enough to mount /system as rw;
Code:
mount - o rw,remount /system
Click to expand...
Click to collapse
That's really strange, I had used "mount -o remount,rw /system /system" and it didn't work
I now used "mount -o remount,rw /system" and it works! I'll never understand Linux...
Thanks anyway man!
Thread can be locked.

Categories

Resources