tij*_*agi 3 linux windows windows-xp nfs
有一个支持 NFS v3 和 4 的 linux 服务器,以及一个运行 NFS 客户端服务的 WinXP 虚拟机。XP 可以 ping 服务器,但不能挂载 NFS 共享。
从 /etc/exports:
/home/files
192.168.0.0/24(ro,all_squash,anonuid=1003,anongid=1003,insecure,no_subtree_check)
Run Code Online (Sandbox Code Playgroud)
--debug
选项传递给nfsd
,但在 /var/log/messages 中没有看到相应的输出。看起来请求根本没有到达服务器。
当我运行时在 Windows 上
mount 192.168.0.1:\home\files Z:
Run Code Online (Sandbox Code Playgroud)
我有
ERROR — Invalid command line argument
mount 192.168.0.1:\home\files Z:
^^^^^^^^^^^^^^^^^^^^^^^
Run Code Online (Sandbox Code Playgroud)
如果我去
net use Z: 192.168.0.1:\home\files
Run Code Online (Sandbox Code Playgroud)
它抛出
System error 67 has occurred.
The network name cannot be found.
Run Code Online (Sandbox Code Playgroud)
小改地址后
net use Z: \\192.168.0.1\home\files
Run Code Online (Sandbox Code Playgroud)
它跳过一秒钟然后给出另一个错误:
System error 1231 has occurred.
The network location cannot be reached. For information about network troubleshooting, see Windows Help.
Run Code Online (Sandbox Code Playgroud)
根据下载的“UNIX 服务”的数字签名和上次修改时间,它们大概是 2003-2004 年。运行服务器的 Linux 内核是新的 - 3.10,因此可能存在某种不兼容。但是,NFS v4 是在 2000 年 12 月发布的,所以我不确定。我试图禁用 Windows 的防火墙,但没有运气。服务器不应阻止 NAT 的任何端口。
尝试执行以下命令
mount 192.168.0.1://home/files Z:
这应该对你有用。
如果要挂载根文件夹,则执行命令
mount 192.168.0.1:/! Z:
PS:至于为什么会这样,不知道,我完全是 NFS 菜鸟……如果有人知道,请在评论中分享。
归档时间: |
|
查看次数: |
19669 次 |
最近记录: |