mounting system as rw - Xperia Play Q&A, Help & Troubleshooting

Hi iv tried mounting the system as rw but there seems to be a few different commands
if anybody could help me with the commands for the play id very much appriciate it
thanks

gjpax said:
Hi iv tried mounting the system as rw but there seems to be a few different commands
if anybody could help me with the commands for the play id very much appriciate it
thanks
Click to expand...
Click to collapse
Are you talking about ADB? just use the "adb remount" command. That mounts /system as R/W.

ahh ok thanks

Related

Mounting /system as rw

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)

[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

need help with "mount system RW"

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

Mount samba share

I am trying to download to my samba share through xbmctorrent plugin but i get an error that it cannot download to unmounted share.
is there any way of mounting the sambashare in the ftv system so it will see it as an internal folder or something ?
I am also looking to do the same thing for retroarch. The 8GB internal storge aint big enough for all the roms
quacka said:
I am also looking to do the same thing for retroarch. The 8GB internal storge aint big enough for all the roms
Click to expand...
Click to collapse
Did you root your fire tv? Did you see drive in xbmc? If not then you have to root it then mound hdd. Follow following guide.
http://forum.xda-developers.com/showthread.php?t=2783805
rooted
gujju said:
Did you root your fire tv? Did you see drive in xbmc? If not then you have to root it then mound hdd. Follow following guide.
http://forum.xda-developers.com/showthread.php?t=2783805
Click to expand...
Click to collapse
yes i have rooted it and yes i see it in xbmc. the problem is with xbmctorrent plugin that cannot download to an unmounted share drive.
gujju said:
Did you root your fire tv? Did you see drive in xbmc? If not then you have to root it then mound hdd. Follow following guide.
http://forum.xda-developers.com/showthread.php?t=2783805
Click to expand...
Click to collapse
Think this is missing the point, the issue is attempting to mount network shares as native paths, not within another app. The link provided only discusses USB drives, not network.
Code:
mount -o noperm,unc=\\\\192.168.0.21\\putsharenamehere,username=putusernamehere,password=putpasswordhere -t cifs none /mnt/obb/nas
the mount command has to look like that, in order for it to be seen by apps I had to mount to /mnt/obb/nas (make the nas directory)
that may not be your solution but it should help, I have seen people say they can set up a mounting app to use those parameters.
FYI, if you are going to try the mount out from the command line you need to be in adb shell, not an ssh session.
you can find answers like this in search as well.
hmagoo said:
Code:
mount -o noperm,unc=\\\\192.168.0.21\\putsharenamehere,username=putusernamehere,password=putpasswordhere -t cifs none /mnt/obb/nas
the mount command has to look like that, in order for it to be seen by apps I had to mount to /mnt/obb/nas (make the nas directory)
that may not be your solution but it should help, I have seen people say they can set up a mounting app to use those parameters.
FYI, if you are going to try the mount out from the command line you need to be in adb shell, not an ssh session.
you can find answers like this in search as well.
Click to expand...
Click to collapse
Thanks hmagoo, that worked for me finally.
I think I was trying it via SSH hence never got it to work.
How do I make the share remain after a power cycle?
hmagoo said:
Code:
mount -o noperm,unc=\\\\192.168.0.21\\putsharenamehere,username=putusernamehere,password=putpasswordhere -t cifs none /mnt/obb/nas
the mount command has to look like that, in order for it to be seen by apps I had to mount to /mnt/obb/nas (make the nas directory)
that may not be your solution but it should help, I have seen people say they can set up a mounting app to use those parameters.
FYI, if you are going to try the mount out from the command line you need to be in adb shell, not an ssh session.
you can find answers like this in search as well.
Click to expand...
Click to collapse
Please make a guide
If using this code using ADB allows us to mount network drives a little more elaboration needs to be done..
Vylle said:
Please make a guide
If using this code using ADB allows us to mount network drives a little more elaboration needs to be done..
Click to expand...
Click to collapse
I only tried using samba shares because I wanted to launch MXPlayer as an external player to play xvid files through xbmc, but I found it was easier to just disable libstagefright and mediacodec in xbmc settings and the xvid files play smoothly.
if you used an app like Script Manager you should be able to run a script upon boot-up that makes the directory and mounts the share.
hmagoo said:
I only tried using samba shares because I wanted to launch MXPlayer as an external player to play xvid files through xbmc, but I found it was easier to just disable libstagefright and mediacodec in xbmc settings and the xvid files play smoothly.
if you used an app like Script Manager you should be able to run a script upon boot-up that makes the directory and mounts the share.
Click to expand...
Click to collapse
I have installed tasker. I set the command to run on boot as Shell Script but it doesn't seem to work. it seem only to work when running via adb shell for me. No idea what I am doing wrong
I have to apply the script after every reboot also. Has anyone found a way to keep it after boot?
hmagoo said:
Code:
mount -o noperm,unc=\\\\192.168.0.21\\putsharenamehere,username=putusernamehere,password=putpasswordhere -t cifs none /mnt/obb/nas
the mount command has to look like that, in order for it to be seen by apps I had to mount to /mnt/obb/nas (make the nas directory)
that may not be your solution but it should help, I have seen people say they can set up a mounting app to use those parameters.
FYI, if you are going to try the mount out from the command line you need to be in adb shell, not an ssh session.
you can find answers like this in search as well.
Click to expand...
Click to collapse
dont want to get too off topic but what if you are using NFS. since that doesnt require a username and password what would the command look like?
mejdam said:
dont want to get too off topic but what if you are using NFS. since that doesnt require a username and password what would the command look like?
Click to expand...
Click to collapse
same sort of thing
mount /mnt/obb/nas 192.168.1.23:/path/to/share
adionita said:
I have to apply the script after every reboot also. Has anyone found a way to keep it after boot?
Click to expand...
Click to collapse
Sorry to bump this old thread but I'm also in the need of this,
Have you figured out a way of auto remounting the share???

Finding /system in /proc/mounts

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

Categories

Resources