Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

adb remount fails - mount: 'system' not in /proc/mounts

Tags:

android

adb

mount

I tried all the commands and suggestions available in stackoverflow and online but none worked

  • https://stackoverflow.com/a/13366444/1441666
  • https://stackoverflow.com/a/28018008

and many more but nothing works for me

I am getting below error - None of below commands are working.

$adb root $adb disable-verity 

For

$adb remount remount of / failed: Permission denied remount failed 

So then I tried with different commands like

$ adb shell mount -o rw,remount /system mount: '/system' not in /proc/mounts  $ adb shell mount -o rw,remount / '/dev/root' is read-only   $ adb shell  mount -o rw,remount -t /dev/block/stl12 system mount: 'system' not in /proc/mounts  $ adb shell "su 0 mount -o rw,remount /system" mount: '/system' not in /proc/mounts  $ adb shell $ su # mount -o rw,remount /system   mount: '/system' not in /proc/mounts 
like image 586
Nirali Avatar asked Mar 06 '19 19:03

Nirali


People also ask

What does adb remount do?

adb remount put /system partition in writable mode. By default /system is only readable. It could only be done on rooted device. It must be done before pushing file on /system partition.

How do I run adb shell as a root?

So to enable the adb root command on your otherwise rooted device just add the ro. debuggable=1 line to /system/build. prop file. If you want adb shell to start as root by default - then add ro.


2 Answers

I had the same issue.The solution is to mount the root (/). After this you can write to /system.

mount -o rw,remount / 

Don't forget to reset the state to 'ro'.

mount -o ro,remount / 
like image 108
Nowrose Muhammad Ragib Avatar answered Sep 20 '22 12:09

Nowrose Muhammad Ragib


> adb root > adb shell avbctl disable-verification Successfully disabled verification. Reboot the device for changes to take effect. > adb disable-verity using overlayfs Successfully disabled verity Now reboot your device for settings to take effect > adb reboot > adb root && adb remount remount succeeded > adb push ScreenCap.apk /system/app/ ScreenCap.apk: 1 file pushed. 33.1 MB/s (1640812 bytes in 0.047s) > adb reboot 
like image 27
Libin Jose Avatar answered Sep 18 '22 12:09

Libin Jose