Nfs Client For Windows 10

Nfs Client For Windows 10 Rating: 6,4/10 6026 reviews

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.

Installation and configuration in Ubuntu or Debian as a server

  • However, services for Unix or NFS Client are not options in the feature set of the Windows 10 upgrade. The thread linked in comments refers to Windows 8, and points to Microsoft KB 2769923. That reference describes upgrading from Windows 7 Ultimate to Windows 8, and states that in Win 8, only the Enterprise edition supports Services for NFS.
  • 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.

From a Windows command prompt, run nfsd.exe to start the nfs client daemon. Leave this running in the background until all mapped drives are unmounted.

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.

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.

Nfs Client For Windows 10 Pro

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 Panelsega saturn emulator mac download , 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

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.

Nfs Client Service Windows 10

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.

Client

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.

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.

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.

Created on August 2020 and updated on September 2020.

Comments

Comments are closed.