Related
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)
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
hi
i am using aokp 28/9/2013 previous version was 20/8.
Now when i try to use metamorph to change the softkeys, it gives the error "/system could not be mounted as RW". Can someone help me what this is and how to fix this? it worked on my previous rom
btw, its given permission by superuser so thats not the problem. And i also went to recovery > mounts and storage > and tapped mount /system
Sry, dont know much about this stuff so can someone help me?
Thanks
EDIT: also tried this app. still doesnt work
https://play.google.com/store/apps/details?id=com.beansoft.mount_system&hl=en
bump..... anyone??
rollerdyke44 said:
bump..... anyone??
Click to expand...
Click to collapse
try from pc
Code:
adb shell
su
mount -o remount,rw -t ext4 /dev/block/mmcblk0p1 /system
or in terminal emulator
Code:
su
mount -o remount,rw -t ext4 /dev/block/mmcblk0p1 /system
samersh72 said:
try from pc
Code:
adb shell
su
mount -o remount,rw -t ext4 /dev/block/mmcblk0p1 /system
or in terminal emulator
Code:
su
mount -o remount,rw -t ext4 /dev/block/mmcblk0p1 /system
Click to expand...
Click to collapse
tried from pc.... didnt work
What exactly is the error supposed to mean btw?
edit: used root explorer to change permissions of /system to all. still didnt work :/
rollerdyke44 said:
tried from pc.... didnt work
What exactly is the error supposed to mean btw?
edit: used root explorer to change permissions of /system to all. still didnt work :/
Click to expand...
Click to collapse
Why not just click the "remount r/w" button in Root Explorer (navigate to /system, then click it)? From my experience, whenever another app can't mount /system by itself, Root Explorer always helps it outta trouble.
Sent from Google Nexus 4 @ CM10.2
nop
that also didnt work
rollerdyke44 said:
nop
that also didnt work
Click to expand...
Click to collapse
If Root Explorer doesn't remount, there's a good chance you aren't properly rooted. You can verify this by 1) flashing the latest SuperSU zip or 2) flash another ROM and see if things work.
Sent from Google Nexus 4 @ CM10.2
thanks for reply
I CAN mount/remount system as r/w and then r/o using root explorer and i also get a notificatioin that superuser granted to root explorer. But Metamorph still doesnt work. It worked on my previous version as said in 1st post so dont know what the problem is.
i guess its a app specific problem then?
rollerdyke44 said:
i guess its a app specific problem then?
Click to expand...
Click to collapse
Did the update change OS, by that I mean 4.2.2 to 4.3? Perhaps metamorph doesn't work properly with 4.3. Have you tried uninstalling it and reinstalling the app?
If all you are doing is changing softkey images, I am pretty sure AOKP has options to do that within the ROM
metamorph has not been updated lately and therefore has not been made compatible with 4.3+ hence why you receive the /system rw error . if you check busybox and run the script or manually thru terminal you can verify if /system is RW or not.
rollerdyke44 said:
thanks for reply
I CAN mount/remount system as r/w and then r/o using root explorer and i also get a notificatioin that superuser granted to root explorer. But Metamorph still doesnt work. It worked on my previous version as said in 1st post so dont know what the problem is.
i guess its a app specific problem then?
Click to expand...
Click to collapse
I have the same freaking problem with adblock app.....
Can change it in root explorer but still got the error flashed new superuser ap but didnt work
Sent from my Galaxy Nexus using xda app-developers app
kjax said:
metamorph has not been updated lately and therefore has not been made compatible with 4.3+ hence why you receive the /system rw error . if you check busybox and run the script or manually thru terminal you can verify if /system is RW or not.
Click to expand...
Click to collapse
Yeah it might be an app issue then. Thanks
demon2112 said:
I have the same freaking problem with adblock app.....
Can change it in root explorer but still got the error flashed new superuser ap but didnt work
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
You also use aokp??
Nooe on cataclysm
Sent from my GT-I9300 using xda app-developers app
Have you got the solution ...??
Saskai1 said:
Have you got the solution ...??
Click to expand...
Click to collapse
Assuming you have a similar problem, how exactly is it going? This thread is a bit 'outdated' now because OP had trouble with an app intended for earlier Android versions. Apparently he was trying to use Stericson's Metamorph on a wrong Android version, thus it wasn't able to mount system R/W...
Sent from my Motorola XT1563 using XDA Labs
Hello all,
I'm trying to delete a system file using the Android terminal (as my end goal is to put it in a run shell task in Tasker) and it either reboots my phone or just doesn't delete.
Long story short, I'm using the Weak Sauce root method, but I do not have S-Off as I like how easy it is to undo the Weak Sauce root alone. This means, of course, I don't have immediate RW access to system. So here's what I've done:
Code:
# mount -o rw,remount -t yaffs2 /dev/block/mmcblk0p46 /system
# busybox rm -f /system/media/audio/ui/camera_click.ogg
# mount -o ro,remount -t yaffs2 /dev/block/mmcblk0p46 /system
When I do the first and last commands alone, the system mounts as RW and RO correctly, confirmed with # mount|grep system. But that middle command is the problem. Sometimes nothing will happen, other times my phone will reboot. I've also tried adding the following before the rm command with no success:
Code:
# chmod 777 /system/media/audio/ui/camera_click.ogg
I AM able to delete the file manually through ES File Explorer when mounted RW. But it comes back after I restart my phone, hence why I want this command to be used in Tasker.
What am I doing wrong?
PS: as for the "why" of deleting the shutter sound file, I take screenshots sometimes and the sound drives me nuts. I've tried removing the ogg file from the camera apk, but that didn't work after a reboot. I also tried replacing the ogg file with a silent one, but no success there either as the real one reloads itself when I restart.
Delete the file in recovery using TWRP
Sent from my HTC One_M8 using Tapatalk
SmiLey497 said:
Delete the file in recovery using TWRP
Sent from my HTC One_M8 using Tapatalk
Click to expand...
Click to collapse
I'm trying to do it from the terminal so I can eventually put it into Tasker. I can delete it successfully with ES File Explorer, so no need for recovery. I just need some way to get it to work through the terminal.
If the file is coming back then you don't have proper write access to system and the file isn't actually being deleted which Is why it appears to come back.
Try using root explorer instead or do it through TWRP. Make system RW then just move or rename the file rather than delete it. If you have proper write access it will stick.
heather1209 said:
I'm trying to do it from the terminal so I can eventually put it into Tasker. I can delete it successfully with ES File Explorer, so no need for recovery. I just need some way to get it to work through the terminal.
Click to expand...
Click to collapse
It comes back when you reboot. Your system is not writable you need to S-OFF. get system RW kernel, or delete through recovery.
SmiLey497 said:
It comes back when you reboot. Your system is not writable you need to S-OFF. get system RW kernel, or delete through recovery.
Click to expand...
Click to collapse
Ah, that makes sense. What's the system RW kernel you mentioned? I'm not familiar with that.
heather1209 said:
Ah, that makes sense. What's the system RW kernel you mentioned? I'm not familiar with that.
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2701816
heather1209 said:
Ah, that makes sense. What's the system RW kernel you mentioned? I'm not familiar with that.
Click to expand...
Click to collapse
[KERNEL] [June 20] [Sense] [GPE] ElementalX 0.19 I think that'll work on stock Sense system.
heather1209 said:
Ah, that makes sense. What's the system RW kernel you mentioned? I'm not familiar with that.
Click to expand...
Click to collapse
He means flash a kernel that has write access to system enabled.
SmiLey497 said:
http://forum.xda-developers.com/showthread.php?t=2701816
Click to expand...
Click to collapse
Or yeah, the MOD can work too :good:
hello, I need to mount to the system as R/W in order to delete a file in my root directory, but I can't find the right location I order to mount it with my terminal. I'm rooted with Magisk and Busybox
thx
shaitan240 said:
hello, I need to mount to the system as R/W in order to delete a file in my root directory, but I can't find the right location I order to mount it with my terminal. I'm rooted with Magisk and Busybox
thx
Click to expand...
Click to collapse
I got full control I use totale comandet give it root in settings of the app then u can delete any thing u want
roadkill42 said:
I got full control I use totale comandet give it root in settings of the app then u can delete any thing u want
Click to expand...
Click to collapse
I found "total commander" in the play store, if it's that one, thank you it really worked
shaitan240 said:
I found "total commander" in the play store, if it's that one, thank you it really worked
Click to expand...
Click to collapse
Yep that's it kinda dos looking I think easier then any others u can even drag and drop wifi file transfer to
shaitan240 said:
hello, I need to mount to the system as R/W in order to delete a file in my root directory, but I can't find the right location I order to mount it with my terminal. I'm rooted with Magisk and Busybox
thx
Click to expand...
Click to collapse
For future issues:
Magisk mirrors all relevant partitions under /sbin.
The path to the block device /system is (only for system_as_root devices!!)
Code:
/sbin/.magisk/block/system_root
and it's mounted under
Code:
/sbin/.magisk/mirror/system_root
If you want to mount /system as r/w, you need this command
Code:
mount -o rw,remount -t ext4 /sbin/.magisk/block/system_root /sbin/.magisk/mirror/system_root
WoKoschekk said:
For future issues:
Magisk mirrors all relevant partitions under /sbin.
The path to the block device /system is (only for system_as_root devices!!)
and it's mounted under
If you want to mount /system as r/w, you need this command
Click to expand...
Click to collapse
Thank you this is exactly what I was looking for, but the other method worked for me too
But it is appreciated