永发信息网

关于linux中mount的命令

答案:1  悬赏:60  手机版
解决时间 2021-01-03 21:12
  • 提问者网友:战魂
  • 2021-01-03 07:28
关于linux中mount的命令
最佳答案
  • 五星知识达人网友:妄饮晩冬酒
  • 2021-01-10 05:24
先不看 -o 及后面的参数,命令 mount -t nfs client:/partition /partition 将 主机 `client' 下的 /partition 目录 mount 到本机的 /partition 下,给个实例 mount -t nfs 192.168.100.1:/home/aaa /bbb 将 192.168.100.1 上的 /home/aaa 目录mount 到本地的 /bbb 目录。 mount -o 后面的则是用来指定文件系统的参数,对于你的情况,就是用来指定 NFS 系统的参数。你只要 man nfs 就可以看到这些参数的意义了,比如 timeo=n The time in deciseconds (tenths of a second) the NFS client waits for a response before it retries an NFS request. 即访问超时的定义,所以 timeo=14 就是设置超时为1.4秒 rsize=n The maximum number of bytes in each network READ request that the NFS client can receive when reading data from a file on an NFS server. 即一次 READ 操作最大能读取的数据字节数,所以 rsize=8192 就是设置一次读取最大 8k字节。 wsize=n The maximum number of bytes per network WRITE request that the NFS client can send when writing data to a file on an NFS server. 即一次 WRITE 操作最大能写的字节数。 intr 这个参数你可以不用理了,(根据 man nfs) 从 linux 2.6.25 以后,这个参数就没有意义了。《Linux就该这么学》里有相关介绍,建议看看。
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯