Read a tutorial on reintech.io or on digitalocean.com about setting NFS on Rocky-9
Install packages on host (192.168.2.32)
dnf install nfs-utils
Start the server
systemctl start nfs-server systemctl enable nfs-server systemctl status nfs-server
Create the export directory
mkdir -pv /srv/nfs chmod 777 /srv/nfs
Edit the exports file
emacs /etc/exports /srv/nfs *(rw,sync,no_subtree_check)
Export directory
exportfs -arv
Open the firewall ports
firewall-cmd --permanent --zone=public --add-service=nfs firewall-cmd --permanent --zone=public --add-service=mountd firewall-cmd --permanent --zone=public --add-service=rpc-bind firewall-cmd --reload firewall-cmd --list-all
Access the NFS from a Linux client
mkdir -pv /mnt/nfs mount -t nfs 192.168.2.32:/srv/nfs /mnt/nfs umount /mnt/nfs
Access the NFS from a Windows client
Read this
KB article
on DELL site.
Open Control Panel and search for "Turn Windows features on or off"
Check the option "Services for NFS", then click Ok.
Open regedit.exe and browse key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default
Create a new DWORD(32-bit) value inside the Default folder named "AnonymousUid" and assign the UID 0
Create a new DWORD(32-bit) value inside the Default folder named "AnonymousGid" and assign the GID 0
Restart the NFS client from Windows CMD line ( nfsadmin client restart ) or reboot the machine
Mount the NFS share from Windows CMD line
mount -o "nolock,sec=sys" 192.168.2.32:/srv/nfs y:
Disconnect y: from Windows Explorer