My terminal IDE accessed root but cannot edit hosts file.

[email protected]:/system/etc #vim hosts

But vim just opens hosts file as readonly. Where do I missed here?

1 Answer 1


You've missed that the /system file system is mounted read-only.

mount -o remount,rw /system
cd /system/etc
vim hosts
# edit, save, then make /system read-only again:
mount -o remount,ro /system

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .