How are you mounting your network shares, and what type are they? For example, I use /etc/fstab
, and the x-systemd.automount,auto
options work well for me when using SMB shares (which is the type of network share I guess you’re using in Windows). For example I use this template:
//$SERVER_ADDRESS cifs credentials=$YOUR_CREDENTIALS,uid=$YOUR_UID,gid=$YOUR_GID,vers=$VERSION_REQUIRED,x-systemd.automount,auto,iocharset=utf8,file_mode=$FILE_PERMISSIONS,dir_mode=$DIR_PERMISSIONS 0 0
There is a good tutorial on systemd mount units if you prefer those.