我正在尝试将nfs分区挂载到运行cygwin的Windows服务器2012上。我经历了很多链接,例如'mount' while using Cygwin,但没有人帮助过。我想将nfs 10.x.x.x / foo挂载到Windows上的分区,在c:/ bar或/ tmp / bar中。
在cygwin上,我使用了命令:
mount //10.x.x.x/foo /tmp/bar
mount命令通过,mount的输出为:
$ mount
//10.x.x.x/foo on /tmp/bar type unknown (binary,user)
C:/cygwin/bin on /usr/bin type ntfs (binary,auto)
C:/cygwin/lib on /usr/lib type ntfs (binary,auto)
C:/cygwin on / type ntfs (binary,auto)
C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto)
但是,当我尝试cd或ls进入目录时,我什么也看不见。
ls /tmp/bar
ls: cannot access /tmp/bar: No such file or directory
$ ls -la /tmp/
ls: cannot access /tmp/vdnet: No such file or directory
total 4
drwxrwxrwt+ 1 Administrator None 0 Apr 5 10:34 .
drwxr-xr-x+ 1 Administrator None 0 Jul 9 2015 ..
d?????????? ? ? ? ? ? bar
使用cygwin挂载nfs分区的正确方法是什么?