I have two Raspberry Pi 4s, the Client is Pi4 and the Server is Pi2. Both are running Manjaro Xfce. I'm using systemd to manage the attachment of Pi4 to Pi2's disk and it works well. It connects when the Pi2 is up and doesn't hang during boot when the Pi2 is down.
Here's the problem: If Pi2 is down and I boot Pi4, the boot is not a problem. But, if I then boot Pi2 (the server) and try to use systemctl on Pi4 to connect to Pi2 it doesn't work. I've tried sudo systemctl start srv-samba.mount and sudo systemctl restart srv-samba.mount and neither work.
Here's my srv-samba.mount file:
1 [Unit]
2 Description=Access Pi2s Share
3 After=network.target
4
5 [Mount]
6 What=//192.168.1.30/pi2
7 Where=/srv/samba
8 Type=cifs
9 Options=_netdev,iocharset=utf8,rw,credentials=/home/larry/.smb,workgroup=WORKGROUP,cache=loose,uid=larry,gid=larry
10 TimeoutSec=30
11
12 [Install]
13 WantedBy=multi-user.target
14
Any thoughts? Comments?