zoukankan      html  css  js  c++  java
  • mount -o

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

    例如:

    增加了/etc/mtab

    /dev/sdb1 /install ext3 rw 0 0

    /etc/fstab

    LABEL=/install /install ext3 defaults 1 2

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

    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.

    现在再去修改MTAB/FSTAB文件就可以了.最后reboot ,系统启动成功

  • 相关阅读:
    php+ajax文件上传
    安装ruby及sass
    大佬
    ES6--let,解构赋值,promise && ES7--async
    miniapp基础
    8月笔记
    webpack 打包html文件
    webpack压缩打包不成功
    nvm安装成功后,但命令不可用(command not found)
    jq库extend的区别
  • 原文地址:https://www.cnblogs.com/lvdongjie/p/6829342.html
Copyright © 2011-2022 走看看