linux 下 mount -o remount ,rw /的使用


Centos环境,有时候会因为修改etc/fstab配置文件,导致重启机器的时候起不来,提示

give root password for maintenance
(or type control-d to continue:)

输入root 密码后,进入系统了,想把增加的内容去掉.但提示是只读.不让修改

采用下面方法

mount -o remount, rw /

because root directory / is mounted in read only mode. type follwing command, then you should be able to edit rc.sysint script.

就是讲系统重新挂载一下

现在再去修改etc/fstab文件就可以了.

这样之后,开机提示/sda 什么的信息  可能是系统盘有地方坏掉了,fsck修复一下,

之后reboot ,系统启动成功


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM