Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.6k views
in Technique[技术] by (71.8m points)

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

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

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
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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 /

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...