Requirements

  •  Windows computer running server or desktop OS that is in support.

Mounting the NFS Share

  1.  Make sure that the NFS Client is installed.
    1. Open a Powershell command prompt.
    2. Run the appropriate command for your situation:
      • Server OS: Install-WindowsFeature NFS-Client
      • Desktop OS: Enable-WindowsOptionalFeature -FeatureName ServicesForNFS-ClientOnly, ClientForNFS-Infrastructure -Online -NoRestart
  2. Mount the share using the following command, after making the required modifications:
    • mount nfs.server.name:/share-name Z:
      • Replace nfs.server.name with the name of the server the NFS share is on
      • Replace share-name with the name of the NFS share
      • Replace Z: with the desired drive letter.

To get write access on NFS share you have to make a small change in Windows registry before mounting the drive. Follow these steps.

  1. Open regedit by typing it in the search box end pressing Enter.
  2. Browse to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default.
  3. Create a new New DWORD (32-bit) Value inside the Default folder named AnonymousUid and assign the UID found on the Linux directory as shared by the NFS system. This is the UID of the user that has the write access to that directory on Linux system.
  4. Create a new New DWORD (32-bit) Value inside the Default folder named AnonymousGid and assign the GID found on the Linux directory as shared by the NFS system. This is the GID of the group that has the write access on the directory on Linux system.
  5. Restart the NFS client or reboot the machine to apply the changes.