Drive Manager to CIFS share on NAS Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
thetaylor
Posts: 4
Joined: Sun Apr 12, 2020 2:33 pm

Drive Manager to CIFS share on NAS

Post by thetaylor »

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.
User avatar
Joulinar
Posts: 2533
Joined: Sat Nov 16, 2019 12:49 am

Re: Drive Manager to CIFS share on NAS

Post by Joulinar »

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
thetaylor
Posts: 4
Joined: Sun Apr 12, 2020 2:33 pm

Re: Drive Manager to CIFS share on NAS

Post by thetaylor »

# 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
thetaylor
Posts: 4
Joined: Sun Apr 12, 2020 2:33 pm

Re: Drive Manager to CIFS share on NAS

Post by thetaylor »

It should also be noted this only happens on my RPi4, none of the 3B's
User avatar
Joulinar
Posts: 2533
Joined: Sat Nov 16, 2019 12:49 am

Re: Drive Manager to CIFS share on NAS

Post by Joulinar »

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

Code: Select all

,noauto,x-systemd.automount
@MichaIng
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
thetaylor
Posts: 4
Joined: Sun Apr 12, 2020 2:33 pm

Re: Drive Manager to CIFS share on NAS

Post by thetaylor »

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