zoukankan      html  css  js  c++  java
  • 开发板挂载nfs服务器错误解析

    1. 输入mount -t nfs 192.168.1.110:/home/work /mnt,这时可能会出现 mount.nfs:access denied by server while mounting,这时候可以重新配置一下/etc/exports,将192.168.1.*替换为*,当然我替换后也没能好使,不过重启系统后好使了,大家都可以尝试一下。挂载成功后,在/mnt下就会有/home/work下的文件了,如果要卸载,输入umount /mnt,这时可能会出现:device is busy ,这时候输入fuser -k /mnt,作用是杀死占用的进程,然后再输入umount /mnt就可以了。
    2. 输入mount -t nfs 192.168.1.110:/home/work /mnt,可能会输出:mount rpc unable to receive errno connection refused,这时更改/etc/hosts.allow设置使网段和开发板相同即可。如果出现:mount: can`t find/mnt in /etc/fstable or /etc/mtab,我是建立了一个新的目录,将/home/work挂载到这个新建的目录就可以了。
    3. 如果出现:rpcbind: server localhost not responding, timed out这样的超时情况,则需要在输入命令后加-o nolock,即为mount -t nfs 192.168.1.110:/home/work /mnt -o nolock

      注释:挂载之前请运行如下命令:

        1 service iptables stop

        2 service rpcbind/portmap restart

        3 service nfs restart

      解决这一系列的问题,就可以挂载成功了,这个时候你的目录下就会用/home/work中的内容了。

  • 相关阅读:
    10.用户管理
    9.更新系统时间
    8.标准输入输出重定向
    7.文件压缩与find命令
    6.Linux文件的详细属性
    5.Linux基础命令
    4.Linux目录结构
    3.磁盘光驱挂载
    2.xshell连接
    javascript中的location的用法
  • 原文地址:https://www.cnblogs.com/Daniel-G/p/3302162.html
Copyright © 2011-2022 走看看