Hello everybody.
I am having a problem to mount a NFS share to my pc. nfs-utils are installed and rpcbind.service is running and enabled. But it seems that there is no nfs.service running.
sudo systemctl status rpcbind.service
the result shows that rpcbind service is running

`rpcbind.service - RPC Bind
Loaded: loaded (/usr/lib/systemd/system/rpcbind.service; enabled; preset: enabled)
Active: active (running) since Sun 2023-08-20 11:17:25 EEST; 12min ago
TriggeredBy: ● rpcbind.socket
Docs: man:rpcbind(8)
Main PID: 328 (rpcbind)
Tasks: 1 (limit: 9348)
Memory: 2.8M
CGroup: /system.slice/rpcbind.service
└─328 /usr/sbin/rpcbind -w -f

Αυγ 20 11:17:25 i5 systemd[1]: Started RPC Bind.`

but when i am trying to start or enable nfs.service it seems that this is one is missing completely.
sudo systemctl start nfs.service
Failed to start nfs.service: Unit nfs.service not found.
if I do sudo systemctl start nfs and press tab to autocomplete and see available option, I am getting the following
nfs-cat nfs-cp nfsdclddb nfsdcltrack nfsiostat nfsrahead nfsstat
nfsconf nfsdcld nfsdclnts nfsidmap nfs-ls nfs-stat

in terminal i am able to mount the share, manually, without a problem.
Am i missing something? do i need to do something else?

To start the server run sudo systemctl start nfs-server.service or sudo systemctl start nfs4-server.service to start protocol version 4.

that did not solve the problem
output of rpcbind
sudo systemctl status rpcbind   4 
● rpcbind.service - RPC Bind
Loaded: loaded (/usr/lib/systemd/system/rpcbind.service; enabled; preset: enabled)
Active: active (running) since Sun 2023-08-20 14:32:44 EEST; 1min 11s ago
TriggeredBy: ● rpcbind.socket
Docs: man:rpcbind(8)
Main PID: 327 (rpcbind)
Tasks: 1 (limit: 9348)
Memory: 2.9M
CGroup: /system.slice/rpcbind.service
└─327 /usr/sbin/rpcbind -w -f

status of nfs-server

sudo systemctl status nfs-server
● nfs-server.service - NFS server and services
Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; enabled; preset: enabled)
Active: active (exited) since Sun 2023-08-20 14:32:52 EEST; 1min 9s ago
Process: 777 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
Process: 778 ExecStart=/usr/sbin/rpc.nfsd (code=exited, status=0/SUCCESS)
Main PID: 778 (code=exited, status=0/SUCCESS)

Αυγ 20 14:32:51 i5 systemd[1]: Starting NFS server and services...
Αυγ 20 14:32:52 i5 systemd[1]: Finished NFS server and services.

what i have created in my fstab file for auto mount on boot
192.168.88.10:/remote/share /home/user/localdir nfs auto,nofail,noatime,nolock,intr,tcp,actimeo=1800 0 0

from terminal if i give
sudo mount -a
the share is mounted correctly

ok i managed to solve the problem with the following way.
created 2 files on
/etc/systemd/system
with the following names:

  1. folder-that-i-want-to-mount-my-share.mount
  2. folder-that-i-want-to-mount-my-share.automount

contents of 1st file:

[Unit]
Description=Mount NFS share
After=network-online.target
Wants=network-online.target
[Mount]
What=ip address of share:/my/share
Where=/folder/that/i/want/to/mount/my/share
Options=auto,nofail,noatime,nolock,intr,tcp,actimeo=1800
Type=nfs
TimeoutSec=60
[Install]
WantedBy=multi-user.target

contents of 2nd file:

[Unit]
Description=NFS share mount
[Automount]
Where=/folder/that/i/want/to/mount/my/share
TimeoutIdSec=60
[Install]
WantedBy=multi-user.target

then we need to reload the daemon so

sudo systemctl daemon-reload

Then we have to start and enable the two mounts that we have created.

sudo systemctl enable folder-that-i-want-to-mount-my-share.mount --now
sudo systemctl enable folder-that-i-want-to-mount-my-share.automount --now

Now in every reboot my share is mounted automatically.