0

I'm working to replace an older Ubuntu 20 VM running on my desktop (VMware Workstation 16 Player) with a new VM running Debian 11. The network adapter is set to "Bridged".

Everything has worked well except one thing - I store home directories on a Synology NAS, which the Linux/BSD hosts mount via NFS4. This works fine if I mount from command:

apt install nfs-common
mount -t nfs 192.168.1.100:/volume1/homes /mnt/homes

So I've added this to /etc/fstab and rebooted:

192.168.1.100:/volume1/homes /mnt/homes nfs rw 0 0

However, the directory does not mount at startup. Based on /var/log/daemon.log, it seems to be trying to mount before the network interface is fully operational:

Jul  2 12:42:49 debian systemd[1]: Started RPC bind portmap service.
Jul  2 12:42:49 debian systemd[1]: Reached target Remote File Systems (Pre).
Jul  2 12:42:49 debian systemd[1]: Reached target RPC Port Mapper.
Jul  2 12:42:49 debian systemd[1]: Mounting /mnt/homes...
Jul  2 12:42:49 debian systemd[1]: Started Network Time Synchronization.
Jul  2 12:42:49 debian systemd[1]: Reached target System Time Set.
Jul  2 12:42:49 debian systemd[1]: Reached target System Time Synchronized.
Jul  2 12:42:49 debian mount[392]: mount.nfs: Network is unreachable
Jul  2 12:42:49 debian systemd[1]: mnt-homes.mount: Mount process exited, code=exited, status=32/n/a
Jul  2 12:42:49 debian systemd[1]: mnt-homes.mount: Failed with result 'exit-code'.
Jul  2 12:42:49 debian systemd[1]: Failed to mount /mnt/homes.
Jul  2 12:42:49 debian systemd[1]: Dependency failed for Remote File Systems.
Jul  2 12:42:49 debian systemd[1]: remote-fs.target: Job remote-fs.target/start failed with result 'dependency'.
Jul  2 12:42:49 debian systemd[1]: Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
Jul  2 12:42:49 debian systemd[1]: Starting Load/Save RF Kill Switch Status...

I tried Ubuntu 22 with the same config and it mounted fine. But I'm trying to use Debian because it tends to be simpler and use less memory.

John Heyer
  • 181
  • 2
  • 8

0 Answers0