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.
Drive Manager to CIFS share on NAS Topic is solved
Re: Drive Manager to CIFS share on NAS
Pls can you post your /etc/fstab entry. Thx
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Re: Drive Manager to CIFS share on NAS
# 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
#----------------------------------------------------------------
# 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
Re: Drive Manager to CIFS share on NAS
It should also be noted this only happens on my RPi4, none of the 3B's
Re: Drive Manager to CIFS share on NAS
ok I guess solution should be similar to this viewtopic.php?p=23805#p23802
pls add the following to the end of the mount entry
@MichaIng
Not sure why this is missing, maybe you can have a look to the code
pls add the following to the end of the mount entry
Code: Select all
,noauto,x-systemd.automount
Not sure why this is missing, maybe you can have a look to the code
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Re: Drive Manager to CIFS share on NAS
Thank you for the quick response. It really is appreciated. I'll test and come back if I have any problems.