Concept Link to heading
I wanted to have my virtualization servers NFS shared storage pool accessible by my Windows 10 system.
However, it seems that the only way to mount an NSF share to windows is to manually enter the command once logged in. When the PC restarts, the drive is no longer mounted.
This guide will show you how to get it setup and have it persist on restarts.
Dependencies Link to heading
- Windows 10 Pro or higher
- NFS server accessible on your local network
Disclaimers: Not guaranteed to work on a system with multiple active users or a NFS server without a static IP.
Install the NFS Client Link to heading
- Go to Control Panel > Programs and Features > Turn Windows Features on or off
- Enable “Services for NFS” with both subcategories
Enable Write Permission for the Anonymous User Link to heading
- Go to Regedit >
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default
- Create a new New DWORD (32-bit) Value inside the Default folder named AnonymousUid and assign the UID found on the UNIX directory as shared by the NFS system (Default:
0
) - Create a new New DWORD (32-bit) Value inside the Default folder named AnonymousGid and assign the GID found on the UNIX directory as shared by the NFS system (Default:
0
) - Restart the PC to apply the changes
Mount the NFS Share Link to heading
Open command prompt and enter the command below:
mount -o anon <ip_address>:/mnt/location Z:
-o anon
sets the user to anonymous<ip_address>/mnt/location
is the path to the NFS share on the NFS serverZ:
is the drive that the NFS share will be mounted to on the Windows system
Setup Auto-Mount on Startup Link to heading
Open the Startup folder by opening the Run tool and entering shell:startup
Create a nfsmount.bat
file in that directory with the mount command used above.
This file will be read on startup and will automatically mount the NFS Share.