CentOS Fixing Error writing fstab Read-only file system
If you’ve accidentally broken your /etc/fstab file and rebooted and found yourself in the repair console. You might run into some issues while trying to fix it.When saving the changes you may encounter:
Error writing fstab: Read-only file system
In order to fix this issue, you will need to remount the affected mount-point with read / write options.
This can be done by issuing the mount command:
mount -o remount,rw /
Where / indicates your root mount point.
thanks go to this article