I want to edit /system/etc/hosts int my Xiaomi 5 (rooted). I first pull /syste/etc/hosts
and made some changes to it, I want to push
it ,then I came across this problem
adb push hosts /system/etc/hosts
failed to copy 'hosts' to '/system/etc/hosts': couldn't create file:
Read-only file system
I checked this, but that didn't work out for me.
adb root
adbd is already running as root
adb remount
remount of /system failed: Read-only file system
remount failed
I tried this, didn't work either.
it shows:
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
Can anybody show me a way out, any advice is appreciated.