How to Configure A NFS File Server On Ubuntu 18.04 Bionic Beaver -


You'll be doing the majority of the configuration on the server. That's the system that's going to be doing the sharing. Even still, there really isn't that much. You essentially just need to tell NFS what to share.

This is a companion discussion topic for the original entry at TRANSFERRED FROM LINUXCONFIG DISQUS COMMENTS:


Reuben Settergren
fixed it actually, I had a typo in my /etc/exports, same line was duplicated because I copy/pasted and forgot to edit the 'nother folder to be exported

Reuben Settergren
when I try to “sudo systemctl restart nfs-kernel-server”, it says “Job for nfs-server.service canceled”

When I try to check it

$ systemctl status nfs-server.service
● nfs-server.service - NFS server and services
Loaded: loaded (/lib/systemd/system/nfs-server.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2018-05-26 22:32:28 PDT; 2min 7s ago
Process: 4505 ExecStopPost=/usr/sbin/exportfs -f (code=exited, status=0/SUCCESS)
Process: 4504 ExecStopPost=/usr/sbin/exportfs -au (code=exited, status=0/SUCCESS)
Process: 4503 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=1/FAILURE)

Whatup with that?


Getting this error

mount: /mnt/nfs: /home/######/share is not a block device.

###### = my username