hopeless-dream

导航

/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 / 

posted on 2019-06-24 23:38  hopeless-dream  阅读(3799)  评论(0编辑  收藏  举报