我想编辑/ system / etc / hosts int my Xiaomi 5(rooted)。我先拉/syste/etc/hosts
并对其进行了一些更改,我想push
,然后我遇到了这个问题
adb push hosts /system/etc/hosts
failed to copy 'hosts' to '/system/etc/hosts': couldn't create file:
Read-only file system
我查了this,但这对我来说没有用。
adb root
adbd is already running as root
adb remount
remount of /system failed: Read-only file system
remount failed
我尝试this,也没有工作。
它显示:
gemini:/ # mount -o rw,remount /system
'/dev/block/dm-0' is read-only
gemini:/ # mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
mount: '/system' not in /proc/mounts
任何人都可以告诉我一个出路,任何建议都值得赞赏。
答案 0 :(得分:1)
好的,我终于在MIUI论坛上找到了答案。
What I found,如果你能读懂中文,请直接打开;如果你不能解释原因。
我无法编辑主机文件,因为我没有解锁system
。 MIUI有一些保护机制来防止用户在root之后删除重要文件。
因此,请下载this,确保您的手机处于快速启动模式。将其连接到您的PC,然后打开一个终端,您可以在其中放置刚下载的adb
文件。
adb root
adb disable-verity
这样就可以了!