/etc/fstab 只讀無法修改的解決辦法


在做saltstack的時候不小心誤把/etc/fstab給注釋了

 

在命令補全的時候開始報錯:
[root@kafka2 ~]# cat /et-bash: cannot create temp file for here-document: Read-only file system
-bash: cannot create temp file for here-document: Read-only file system
^C

 

重新掛載為讀寫文件系統

[root@kafka2 ~]# mount -o remount,rw / 


免責聲明!

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



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