I have an NFS server installed on my PC running KDE Neon (24.04). I installed it so that I could share a folder to a Windows 11 tablet. It worked well, and I was able to create a persistent mount on the tablet. I have removed Windows from the tablet in favor of KDE Neon. Now I can mount the share from the cmd line without a problem, but I am not able to get it to mount from fstab. Can anyone suggest why one works and the other doesn't?
CMD mount...
sudo mount -t nfs 10.0.0.239:/srv/nfs/share /media/media0
In my fstab I have this...
/media/media0 /srv/nfs4/media/media0 none bind 0 0
In my exports file I have...
/srv/nfs4 10.0.0.0/255.255.255.0(rw,sync,fsid=0,crossmnt,no_subtree_check)
Can anyone help me figure out why I the mount works from the command line, but not from fstab?
Thanks,
Rick
Thanks for the suggestions everyone. Unfortunately I have yet to find a complete solution.
I've made the suggested changes to my /etc/exports file and the the /etc/fstab file recommended in the last reply. I am still not able to mount the shares at boot. I can mount them manually, and I can mount them with $ sudo mount -a. I thought the issue was timing and my impatience but after a reboot and waiting several minutes the share didn't mount unless I issued sudo mount -a. What am I missing here?
Rick
Ok, the instructions say to reply to a post I need to edit my post so, here goes...
Adding _netdev to the NFS mount commands in my fstab did not work. In fact adding that caused the network to not start, but had no effect on nfs-server.service, at least not that I could see.
Thanks, Rick
Asked by Rick Knight
(19 rep)
Jul 11, 2025, 06:40 PM
Last activity: Jul 25, 2025, 04:20 AM
Last activity: Jul 25, 2025, 04:20 AM