/etc/fstab 只读无法修改的解决办法

Posted zh-dream

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了/etc/fstab 只读无法修改的解决办法相关的知识,希望对你有一定的参考价值。

在做saltstack的时候不小心误把/etc/fstab给注释了

技术图片

 

在命令补全的时候开始报错:
[[email protected] ~]# 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

 

重新挂载为读写文件系统

[[email protected] ~]# mount -o remount,rw / 

以上是关于/etc/fstab 只读无法修改的解决办法的主要内容,如果未能解决你的问题,请参考以下文章