-
-
Notifications
You must be signed in to change notification settings - Fork 1
Linux NFS Guide
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to NFS on Linux, covering Arch Linux, CachyOS, and other distributions including installation, configuration, and network file sharing.
Arch/CachyOS:
# Install NFS server
sudo pacman -S nfs-utils
# Enable services
sudo systemctl enable --now nfs-serverDebian/Ubuntu:
sudo apt install nfs-kernel-serverFedora:
sudo dnf install nfs-utilsClient:
# Install NFS client
sudo pacman -S nfs-utils
# Enable service
sudo systemctl enable --now rpcbindEdit exports:
# Edit exports file
sudo vim /etc/exportsAdd:
/srv/nfs/share 192.168.1.0/24(rw,sync,no_subtree_check)
Export shares:
# Export shares
sudo exportfs -ra
# List exports
exportfs -vMount share:
# Mount NFS
sudo mount -t nfs server:/srv/nfs/share /mnt/nfs
# Or using mount command
sudo mount server:/srv/nfs/share /mnt/nfsfstab entry:
# Edit fstab
sudo vim /etc/fstabAdd:
server:/srv/nfs/share /mnt/nfs nfs defaults 0 0
Check service:
# Check server
systemctl status nfs-server
# Check exports
exportfs -v
# Check client
showmount -e serverCheck connection:
# Test connection
ping server
# Check NFS
rpcinfo -p serverThis guide covered NFS installation, server/client setup, and mounting for Arch Linux, CachyOS, and other distributions.
- File Sharing - File sharing setup
- Networking - Network setup
-
NFS Documentation:
man exports
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.