/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