How Do I Format a Read Only File in Linux?
Contents How Do I Change a Read Only File in Linux? Long Answer Log in as the Root User: [Email Protected]: ~$ Sudo Su – Open Hostname: [Email Protected]: ~#...
Contents
How do I change a read only file in Linux?
Long Answer
- Log in as the root user: [email protected]:~$ sudo su –
- Open hostname: [email protected]:~# vi /etc/hostname.
- You will see oldName . …
- Open hosts: [email protected]:~# vi /etc/hosts. …
- Similarly to what you did in step 3, change the computer name from oldName to newName . …
- Exit the root user: [email protected]:~# exit.
How fix read only filesystem Linux?
If you want to force your root filesystem to remount as rw, you can do the following. Try running dmesg | grep “EXT4-fs error” to see if you have any issues related to the filesystem / journaling system itself. I would recommend you to restart your system, then. Also, sudo fsck -Af answer by ObsessiveSSOℲ won’t hurt.