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 ,系統啟動成功