I’m attempting to mount a local nfs server and I’m not sure what’s preventing it. Rebuilding the system doesn’t spit out an error, but the mount directory remains empty.
I have added an entry according to the wiki:
fileSystems."/mnt/nfs" = {
device = "192.168.1.245:/DATA";
fsType = "nfs";
};
I have enabled the nfs service (is this needed if I don’t intend to run a server?):
services = {
rpcbind.enable = true;
nfs.server.enable = true;
};
I have also installed nfs-utils (is this needed?) and disabled the firewall.
If I attempt to do a manual mount, it doesn’t seem to be able to find it:
mount -t nfs 192.168.1.245:/DATA /mnt/nfs
mount.nfs: No such device
The path is correct, the server is online, and I can view it from a different machine.
Systemctl shows the service as exited:
systemctl list-units --type=service | grep nfs
nfs-idmapd.service loaded active running NFSv4 ID-name mapping service
nfs-mountd.service loaded active running NFS Mount Daemon
nfs-server.service loaded active exited NFS server and services
nfsdcld.service loaded active running NFSv4 Client Tracking Daemon
Any ideas on how to resolve this?