NFS mount disapears when switching from wired to wifi network


Almost everything's in the title.

My laptop (Thinkpad E580 / Manjaro 18.1.1) has some static NFS mounts (fstab) from my NAS.

I use both wired network (through a USB-C dock station) or wifi.

Every time I switch (wired <-> wifi), my mounts disappears and I have to remount them and get the following :

[xxxx@LAPTOP-Diego ~]$ sudo mount -a
[sudo] Mot de passe de xxxx : 
Created symlink /run/systemd/system/ → /usr/lib/systemd/system/rpc-statd.service.

What do you suggest to make this permanent ?

I would think you could write a systemd service to do that.

If I could, I would ! :sunglasses:

Here is a link with a lot of examples on writing Systemd services:

This service checks if you are connected and then restarts your network connection if you are not. A little modification to the restart script would probably do the trick.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by