How to mount NFS share in Cygwin?

The question Mounting NFS in Cygwin suggests it is possible to directly mount a NFS share (we have a NFS server running on a linux machine) in the Cygwin file system, even though the The Cygwin Mount Table documentation doesn't mention that.

I have done some searching but couldn't find any solutions on how to do that, most articles suggest mounting from a Samba share instead.

I think directly mounting through NFS would be preferable as it'll avoid the translation of the POSIX permissions (from the GNU/Linux server) to Windows permissions and then back to Cygwin (POSIX) permissions but have the permissions in my Cygwin environment directly match the ones that are effective on the GNU/Linux NFS server's share.

I tried the following on the command line:

$ mount server:/share /local/mountpoint
> mount: /local/mountpoint: Invalid argument
$ mount server:/share /local/mountpoint nfs binary,posix=1
> mount: too many arguments
$ mount -fsb //server/share /local/mountpoint
> mount: unknown option -- s
$ mount -t nfs //server/share /local/mountpoint
> mount: unknown option -- t

Or in /etc/fstab:

server:/share /local/mountpoint nfs binary,posix=1
# or
//server/share /local/mountpoint nfs binary,posix=1

None of them resulted in successful mounts.

How can I mount my NFS share directly in Cygwin? Is it even possible?

3

1 Answer

You can not as Cygwin has no client NFS program. To mount a NFS point you need a filesystem driver

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like