系统没法启动,单用户模式下mount -o remount,rw / 修改fstab

咱们的Linux系统在没法启动时候,一般须要进入单用户模式下进行修改一些配置文件,或调整一些参数方可。可是在进入单用户模式后,咱们的/文件系统是只读模式,没法进行修改,那么这个时候咱们就须要用到一条命令:mount –o remount,rw / 这个命令来让咱们的/路径文件系统为可读模式,这样就能够实现自由修改了。ide

例如:ip


增长了/etc/mtabrem


/dev/sdb1 /install ext3 rw 0 0it


/etc/fstabclass


LABEL=/install /install ext3 defaults 1 2配置


而后系统重起:就起不来了,提示command

give root password for maintenance 密码

(or type control-d to continue:)方法


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

采用下面方法

mount -o remount, rw /

because root directory / is mounted inread only mode. type follwing command, then you should be able to editrc.sysint script.

如今再去修改/FSTAB文件就能够了.最后reboot ,系统启动成功

相关文章
相关标签/搜索