23
4
Is there a way to modify the hosts file in Chrome OS?
/etc/hosts
The file is read only, so trying to modify it using sudo vim does not work.
I have read that disabling root filesystem verification would make editing the hosts file possible, but would also make you loose Chrome OS auto update.
sudo /usr/share/vboot/bin/make_dev_ssd.sh --remove_rootfs_verification --partitions 2
Is there any way to modify the hosts file without loosing automatic updates?
Thanks for your help.
EDIT: Just to specify, I am using an Acer C7 Chromebook with developer mode enable.
I ran the above
make_dev_ssd
command and rebooted, but I sill can't edit anything in/etc
withsudo
. What else do we need to do? I tried remounting/
withrw
, but it complains that the partition is write-protected. – trusktr – 2017-05-17T05:19:05.500You should be able to modify the permissions of the file by using
sudo cmod
have you tried that? – Ramhound – 2013-05-14T11:46:23.513I have tried
sudo chmod
, does not work and instead outputschmod: changing permissions of ‘hosts’: Read-only file system
. – Bricknix – 2013-05-14T21:03:35.700You will have to use the command you found to do it then. – Ramhound – 2013-05-14T23:09:13.230