Skip to content

Instantly share code, notes, and snippets.

@vimagick
Last active June 7, 2026 10:03
Show Gist options
  • Select an option

  • Save vimagick/d05809b5b8a5f70bdd6389e0c58ab131 to your computer and use it in GitHub Desktop.

Select an option

Save vimagick/d05809b5b8a5f70bdd6389e0c58ab131 to your computer and use it in GitHub Desktop.
Linux NFS Server and Windows 11 NFS Client

Linux

$ sudo vim /etc/exports

# export all
$ sudo exportfs -r
$ sudo exportfs -v

# unexport all
$ sudo exportfs -ua
$ sudo exportfs -v

Windows

# Admin User
$ dism /online /enable-feature /featurename:ClientForNFS-Infrastructure /featurename:NFS-Administration /all
$ reg import nfs.reg

# Normal User
$ mount -o anon \\192.168.100.83\home\pi Z:
$ umount Z:

# Open in Explorer
$ start \\192.168.100.83\home\pi
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
/home/pi 192.168.100.0/24(rw,async,no_subtree_check,all_squash,anonuid=1000,anongid=1000)
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default]
"CacheBlocks"=dword:00000040
"DeleteSymLinks"=dword:00000001
"FirstContact"=dword:00000003
"MaxNfsUser"=dword:00000020
"MountType"=dword:00000001
"Protocols"=dword:00cffcff
"Retransmissions"=dword:00000001
"Timeout"=dword:00000008
"UseReservedPorts"=dword:00000001
"AnonymousUid"=dword:000003e8
"AnonymousGid"=dword:000003e8
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default\RegNotify]
"Default"=dword:00000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment