CentOS Error on the Boot Start up
I had a power outage and my CentOS server crashed due to it. And the server box can not work as usual. This is as far as it gets on boot:
*** An error occurred during the file system check.
*** Dropping you into shell; the system will reboot
*** when you leave the shell.
*** Warning — SELinux is active
*** Disabling security enforcement for system recovery
Give root password for maintenance (or type Control D to continue)
I accidently messed up my fstab in centos5.5 and when I reboot it drops me to a shell. I give the root password and open fstab but the file is read only.
I need to delete a line and save the fstab file. Any ideas on how to change the file permission to write?
You can log on to root but all files remains read only. So you need a re-mount it for write permission.
Probably not the file permissions but that the root filesystem is mounted read-only. Try using command below
$ mount -w -o remount /
then edit /etc/fstab and correct the problem and reboot.
Cheers and good luck!