Windows NFS 4.2 FileSystem Client Instructions


Table of Contents

What is this ?
Features
Requirements
Installation
Download and install Cygwin (if not installed yet)
Download and install MSYS2/64bit [OPTIONAL]
Download "ms-nfs41-client" installation tarball
Installation (as "Administrator")
Deinstallation
Usage
Preparing the NFS server
Starting the NFS client daemon
Mounting and using NFS filesystems
Notes
Known issues
Troubleshooting && finding bugs/debugging
Development
Source code
Building ms-nfs41-client
Mailing list

NFSv4.2/NFSv4.1 filesystem driver for Windows 10/11 & Windows Server 2019+2022+2025

  • Operarting system:

    (Requires NTFS, ReFS or WinBTRFS for System Volume (C:); the installer requires hardlink support, which FAT does not support)

  • Cygwin:

    • Cygwin versions:

      • 64bit: >= 3.5.7, recommended >= 3.6.1

      • 32bit: >= 3.3.6

    • Packages (required): cygwin, cygrunsrv, cygutils, cygutils-extra, libiconv, libiconv2, procps-ng, util-linux

    • Packages (optional, recommended, required to build ms-nfs41-client): bison, cygport, cygwin-devel, clang, dos2unix, pax, pbzip2, libnfs-utils (for /usr/bin/nfs-ls), libiconv-devel, make, bmake, git, gcc-core, gcc-g++, gdb, mingw64-i686-clang, mingw64-x86_64-clang, unzip, time, docbook-utils, docbook-xml45, docbook-xsl, docbook-xsl-ns, libxslt, w3m

    • Packages (only-CI):

      # required packages, but part of Cygwin default installation, listed here for CI package list ONLY

      bash, bzip2, coreutils, getent, grep, hostname, less, sed, tar, wget

  • MSYS2 (64bit, optional):

    • Packages (recommended): base-devel, gcc, clang, sed, time, coreutils, util-linux, grep, sed, emacs, gdb, make, autoconf, automake, gettext, gettext-devel, git, subversion, flex, bison, unzip, pax, tar, libiconv-devel, ncurses-devel, gmp-devel, mpfr-devel, mpc-devel, isl-devel, procps-ng, libiconv-devel

Windows 32bit-vs.-64bit can be tested from Windows cmd.exe console:

Run this command:

echo %PROCESSOR_ARCHITECTURE%

If this returns "AMD64" then you have a Windows 64bit kernel, and if it returns "x86" then you have Windows 32bit kernel. If you get any other value then this is a (documentation) bug.

Cygwin 64bit can be installed like this:

Install Cygwin 64bit on Windows 64bit with packages required by "ms-nfs41-client" (Windows NFSv4.2 client):

  1. Create subdir

    mkdir download
    cd download
  2. Get installer from https://cygwin.com/setup-x86_64.exe

    curl --remote-name "https://www.cygwin.com/setup-x86_64.exe"
  3. Run installer with these arguments:

    setup-x86_64.exe -q --site "https://mirrors.kernel.org/sourceware/cygwin" -P cygwin,cygwin-devel,cygrunsrv,cygutils,cygutils-extra,bash,bzip2,coreutils,getent,gdb,grep,hostname,less,libiconv,libiconv2,pax,pbzip2,procps-ng,sed,tar,time,util-linux,wget,libnfs-utils,make,bmake,git,dos2unix,unzip

Cygwin 32bit can be installed like this:

Install Cygwin 32bit on Windows 32bit with packages required by "ms-nfs41-client" (Windows NFSv4.2 client):

  1. Create subdir

    mkdir download
    cd download
  2. Get installer from https://www.cygwin.com/setup-x86.exe

    curl --remote-name "https://www.cygwin.com/setup-x86.exe"
  3. Run installer with these arguments:

    setup-x86.exe --allow-unsupported-windows -q --no-verify --site "http://ctm.crouchingtigerhiddenfruitbat.org/pub/cygwin/circa/2022/11/23/063457" -P cygwin,cygwin-devel,cygrunsrv,cygutils,cygutils-extra,bash,bzip2,coreutils,getent,gdb,grep,hostname,less,libiconv,libiconv2,pax,pbzip2,procps-ng,sed,tar,time,util-linux,wget,libnfs-utils,make,git,dos2unix,unzip

Source code can be obtained from https://github.com/kofemann/ms-nfs41-client or as git bundle from /usr/src/msnfs41client/msnfs41client_git.bundle

Please direct any questions to (list archive)

#EOF.