CentOS 在 single mode 中修改 fstab

之前裝機器分割硬碟磁區的時候
不小心把 swap 的 /tmp 打成 /tmpp
原本想說 /tmp 裡面都是暫存檔
應該直接去改 /etc/fstab 就好
結果又是一次教訓阿…

後來當然是再起不能
由於 /tmp 無法正常掛載
所以系統就自動進去 single mode
但進去修改 /etc/fstab 他會顯示檔案是 readonly 無法編輯

這時 remount 就可以解決 readonly 問題啦!
mount -o remount,rw /


適用版本為 CentOS 5.3 final


參考資料:

Comments

Popular posts from this blog

CentOS7 如何新增/移除 Rich Rule for firewalld

mac 安裝 mtr

Howto use Postman test Cors