4

I'm trying to remount /system to copy some files to it. I tried the following with adb:

adb root
adb remount

The first command works fine (because my phone is rooted), but the second tells me that the operation is not permitted. If I open an adb shell and run su I can access the system folder without problems.

What could be the problem?

  • 2
    Could you please edit your question and add the exact error message? That might provide some clue. – Izzy Sep 1 '13 at 20:55
  • @Izzy It is the exact error message, there's nothing else in there. – Overv Sep 1 '13 at 22:23
  • 1
    Nothing about "not permitted on production devices" or the like? Usually, it should not even permit adb root, even if the device is rooted. Are you sure adb root worked? – Izzy Sep 2 '13 at 6:01
  • @Izzy Are there other ways to test if root worked? – Overv Sep 2 '13 at 10:12
  • adb shell, then type su -. If your rooting process was successful, you should see a popup on your device asking to approve the su request − and having confirmed that, your shell prompt should switch from a $ to a #. – Izzy Sep 2 '13 at 10:47
3

Some phones just don't allow remounting via adb remount.

Mount as RW:

adb shell su -c "mount -o rw,remount,rw /system"

Mount as RO:

adb shell su -c "mount -o ro,remount,ro /system"

Also you could use the Adbd Insecure app, but it's not free.

0

Get "adbd insecure" from google play store, it helps give write access to custom roms that have it secured my the manufacturers.

  • 1
    Can you link the app? – Firelord Jan 31 '16 at 16:01
0

This seems to usually work for me:

adb root

You will see a message as Restarting adbd as root. Unplug the device from USB, connect again and enter:

adb remount

Troubleshooting:

adb shell

Confirm that you are root if you see # shell prompt.

0

Could be that SELinux getting in the way. Try this:

getenforce

If it returns 1 or Enable, do:

setenforce 0

Then try your command again.

0

I get the same error if I try to use adb remount. The reason is some kind of protection but can be bypassed by using a root shell.

The following should work (you may type exit to quit the shell):

adb shell
su -
mount -o remount,rw /system
-1

AFAIK, some devices have permanent (kernel-level I think) write-protection for the /system mount, so even if you're root, you still can't remount it in RW mode. You have to restart the device without this protection, which is done differently depending on the device.

  • This was about the Galaxy Nexus. – Overv May 13 '14 at 18:01
-1

Try running # reboot disemmcwpand re-rooting after the reboot. Then do your thing

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.