繁体   English   中英

adb remount 失败 - mount: 'system' 不在 /proc/mounts

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

我尝试了 stackoverflow 和在线提供的所有命令和建议,但没有一个有效

还有更多,但对我没有用

我遇到了错误 - 以下命令都不起作用。

$adb root
$adb disable-verity

为了

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

所以我尝试了不同的命令,比如

$ 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

我有同样的问题。解决方案是挂载根(/)。 在此之后,您可以写入 /system。

mount -o rw,remount /

不要忘记将状态重置为“ro”。

mount -o ro,remount /
> 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

(Android Q 模拟器solution

> emulator -avd Pixel_3a_XL_API_30 -writable-system
> adb shell avbctl disable-verification
> adb disable-verity
> adb root
> adb remount
> adb shell "su 0 mount -o rw,remount /system"

如果您收到 /system not in /proc/mounts 错误,则您的设备系统分区未安装任何目录。 写入系统分区受到限制。

如果您使用的是模拟器,请下载以前版本的系统映像。

截至目前,Android Q 不支持写入系统分区,因此请改用 android pie。

我在运行 Android OS 8.1 的 Rockchip 平板设备上工作时遇到了这个问题。 我找到了一种将 /system 重新挂载到 rw 的方法,步骤如下:

  1. 亚行外壳
  2. 坐骑 | 系统
  3. 在第 3 步之后,您将看到 cmd 打印出以下内容:

    /dev/block/mmcblk1p11 on /system type ext4 (ro,dirsync,seclabel,relatime,data=ordered,inod e_readahead_blks=8)

    (类型和路径可能因您的设备而异)

  4. 现在使用命令:

    busybox mount -o remount,rw -t <-type> <-path> /system

就我而言, <-type>ext4<-path>/dev/block/mmcblk1p11

希望这可以帮助某人!

您可能想查看此线程的第一个答案。

为了使错误adbd cannot run as root in production builds不会弹出,您必须选择未标记为“Google Play”的模拟器系统映像。

之后,您必须运行:

./adb root

冷启动您的设备一次,然后运行:

% ./adb shell
$ su
# mount -o rw,remount /system

你应该很好地运行你对你的问题的任何命令。

对我来说,我必须在 Play Store 列下选择没有“Play Store”标志的硬件,如下图所示:
(请记住,Android Studio 的 UI 可能会改变) 在此处输入图像描述

我在 Android API 28遇到了这个问题。

解决方法是使用较低版本的 Android API 级别24 之后一切正常。

ADV

$ adb shell
generic_x86:/ # mount -o rw,remount /system
generic_x86:/ # exit
[~]
$ adb push /etc/hosts /system/etc/hosts
/etc/hosts: 1 file pushed. 2.2 MB/s (7458 bytes in 0.003s)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM