linux 下 mount -o remount ,rw /的使用


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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM