Nfs Client For Windows 10

In this short guide I will talk about how to mount a shared drive that is in an Ubuntu or Debian installation that will be the server with the NFS (Network File System) drive, on a network drive accessible from Windows 10 who will play the role of client.

My questions was regarding to.NFSv4. Is there NFS client in Windows 2008R2 or Windows server 2012R2 that support NFSv4? NFS4!= NFS4.1 - Am i right? We finally got the last of our recalcitrant Windows 7 users to Windows 10 thanks to MS' recent withdrawal of support from the former, so the entire enterprise now is either Ubuntu 18.04 or Windows 10. Because Windows 10 has a NFS client, the question now is whether to ditch SAMBA in favor of NFS.

As only Enterprise Version of Windows 8+ deliver an NFS Client i'm looking for an open source alternative. This might be intresting to Windows 10 Enterprise as well because the integrated NFS Client is limited to only one set of GID/UID. Nfsadmin client start. Close the Windows Powershell Console. Open a command prompt. Run the following command in a command prompt (not Powershell) to set the NFS configuration: nfsadmin client localhost config fileaccess=755 SecFlavors=+sys -krb5 -krb5i. Run the following commands to mount the share. Network File System or NFS is a network-based filesystem protocol which is mainly used to share files and folders over the network. NFS is a UNIX based technology but can be used by most of the operating systems like Linux, Ubuntu, Debian, Kali, Mint, Fedora, CentOS, RedHat and Windows operating systems Windows 7, Windows 8, Windows 10, Windows Server 2008, Windows Server 2012, Windows Server. There is should be an option for Services for NFS and under it should be Administrative tools and Client for NFS. I have been told that this feature is available in WIndows 10 Pro but I would like to verify that with someone who is actually running Win 10 Pro. My hunch is that it is not there and is only available in Windows 10 Enterprise.

Installation and configuration in Ubuntu or Debian as a server

In the case of Debian remove sudo in each command (it can even be executed the same).

Install the package 'nfs-kernel-server':

Drive options

Then we edit the file /etc/exports with nano or with the editor of our preference:

The file contains comments such as the following:

We add a line at the end with the following:

In the example above:

/home/user/folder it is the folder that will be shared by the network.

192.168.0.10 it is the IP of the client or clients that access the network resource. Only a static IP is shown but we can use 192.168.0.1/24 to match between 192.168.0.1 and 192.168.0.254.

Mount options are in parentheses.

  • rw: allow reading and writing.
  • sync: is optional in case we want a little more file integrity and avoid data loss, sacrificing a bit of performance.
  • all_squash: downgrades the permissions of the files created from the client to the nobody user. For example, if in Windows 10 I am logged in as Administrator and created a new file, it will belong to user nobody.
  • anonuid: is the ID of the nobody user, or whatever user we want.
  • anongid: is The group ID of the user nobody.

In this case I set anonuid and anongid to 1000, which is the user who owns the folder /home/user/folder to preserve execute and write permissions.

With the changes made we save the file CTRL + O, then Enter, and then we close with CTRL + X, this only if we use the nano editor from the terminal.

Nfs Client For Windows 10 Free

We restart the NFS server:

With this, the configuration on the server will be ready, any error that appears when restarting is necessary to check the configuration and obviously the description of the error.

Client installation and configuration in Windows 10

Windows comes with a default client but it needs to be installed, the only detail is that I don't remember if it is available in the Windows 10 Home version.

The easiest way to install it is to use the search bar and type Control Panel, because Windows 10 has several modern panels that hide the older options. Open Programs > Programs and Features and in the left panel we open Turn Windows features on or off.

Mark the boxService for NFS with his two descendants Client for NFS and Administrative Tools. We click on OK and after some time the client will be installed.

Mounting the network drive

Windows

To mount the unit we open the cmd (do not use PowerShell). We use the command:

The IP 192.168.0.20 is the server, followed by the shared folder and one drive letter that will be used. It is important to use the real full path of the resource as if we were personally on the server with the folder /home/user/folder, otherwise it won't work. I have tried trying to hide part of the path when mounting the drive but it is a complicated process and not worth the extra effort.

The message The command completed successfully. it will indicate that everything is working properly.

Write permissions for the anonymous user

Normally and by default Windows does not allow writing to this type of drives with the anonymous user. To enable writing we have to open the Windows registry Regedit, and we headed towards: HKEY_LOCAL_MACHINESOFTWAREMicrosoftClientForNFSCurrentVersionDefault.

There we will create a DWORD (32-bit) Value with the name AnonymousUid with the value of 0 with Base Decimal. Then create a DWORD (32-bit) Value with the name AnonymousGid with the value 0 with Base Decimal.

We have to restart the computer or the service Client for NFS, we can find it in the task manager in the Services tab.

Nfs Client For Windows 10 Home

If we follow all the previous steps and we already have the unit mounted, we open the CMD and execute the command mount, the mount will appear and in properties it will show UID=0 y GID=0. If any other number appears, check the entire procedure above.

Nfs Client For Windows 10 Home

Notes: The procedure is practically the same in both Ubuntu and Debian, or any other variation like Kubuntu. No need to use Ubuntu Server. The NFS version to be used is 3 with Ubuntu 18.04 - 64-bits and Windows 10.

Nfs Client For Windows 10 Pro

Created on August 2020 and updated on September 2020.

Comments