Drive Manager to CIFS share on NAS

I’m having some issues with drive manager dropping CIFS connections to my synology NAS and I wondered if anyone had any recommendations. The connection is in fstab and looks correct. On reboot the share doesn’t connect, but going into drive manager and clicking refresh finds it and creates the share in /mnt/.

Do you think it’s trying to connect before the network adapter is ready? Alternatively rather than fixing the issue on boot what is the refresh command drive manager uses. I can then just add this to a CRON job for every few hours.

Pls can you post your /etc/fstab entry. Thx

Please use “dietpi-drive_manager” to setup mounts

#----------------------------------------------------------------

NETWORK

#----------------------------------------------------------------
//192.168.1.100/sabnzbd /mnt/sabnzbd cifs username=sabnzbd,password=XXXXXXXX,iocharset=utf8,uid=dietpi,gid=dietpi,file_mode=0770,dir_mode=0770,vers=2.1,_netdev,nofail 0 0

#----------------------------------------------------------------

TMPFS

#----------------------------------------------------------------
tmpfs /tmp tmpfs defaults,size=1978M,noatime,nodev,nosuid,mode=1777 0 0
tmpfs /DietPi tmpfs defaults,size=10m,noatime,nodev,nosuid,mode=1777 0 0
tmpfs /var/log tmpfs defaults,size=50m,noatime,nodev,nosuid,mode=1777 0 0

#----------------------------------------------------------------

MISC: ecryptfs, vboxsf (VirtualBox shared folder), bind mounts

#----------------------------------------------------------------


#----------------------------------------------------------------

SWAPFILE

#----------------------------------------------------------------


#----------------------------------------------------------------

PHYSICAL DRIVES

#----------------------------------------------------------------
PARTUUID=cb7b86f7-02 / ext4 noatime,lazytime,rw 0 1
PARTUUID=cb7b86f7-01 /boot vfat noatime,lazytime,rw 0 2

It should also be noted this only happens on my RPi4, none of the 3B’s

ok I guess solution should be similar to this https://dietpi.com/forum/t/samba-share-doesnt-mount-after-reboot/3988/7

pls add the following to the end of the mount entry

,noauto,x-systemd.automount

MichaIng
Not sure why this is missing, maybe you can have a look to the code

Thank you for the quick response. It really is appreciated. I’ll test and come back if I have any problems.