Centos环境,有时候会因为修改etc/fstab配置文件,导致重启机器的时候起不来,提示
give root password for maintenance
(or type control-d to continue:)
输入root 密码后,进入系统了,想把增加的内容去掉.但提示是只读.不让修改
采用下面方法
mount -o remount, rw /
because root directory / is mounted in read only mode. type follwing command, then you should be able to edit rc.sysint script.
就是讲系统重新挂载一下
现在再去修改etc/fstab文件就可以了.
这样之后,开机提示/sda 什么的信息 可能是系统盘有地方坏掉了,fsck修复一下,
之后reboot ,系统启动成功