Mounted SMB-volumes are ejected/unmounted maybe once or twice a day. Remounting is not possible (DS as server is found, but no shared volumes are available).
Solution: Open your DSM GUI and check the "Connected Users" panel. Click on the (-) next to the SMB service. Now mounting shared volumes is possible again.
For those who are familiar with Apple Script, I came up with the following script so you don't have to mess with the DSM GUI. SSH must be enabled in DSM.
Solution: Open your DSM GUI and check the "Connected Users" panel. Click on the (-) next to the SMB service. Now mounting shared volumes is possible again.
For those who are familiar with Apple Script, I came up with the following script so you don't have to mess with the DSM GUI. SSH must be enabled in DSM.
AppleScript:
tell application "Terminal"
activate
set ServerAddress to "YOUR-NAS-IP-ADDRESS"
set ServerUserName to "YOUR-USERNAME"
set ServerPassword to "YOUR-PASSWORD"
set currentTab to do script ("ssh " & ServerUserName & "@" & ServerAddress & ";")
delay 1
do script (ServerPassword) in currentTab
# Line breaks are important!
tell application "System Events" to keystroke "sudo synosystemctl restart pkg-synosamba-smbd.service\r" using {}
delay 1
tell application "System Events" to keystroke ServerPassword & "\r"
delay 2
tell application "System Events" to keystroke "exit" & "\r"
end tell
try
do shell script "killall Terminal"
end try
# Add your volumes here, music given as example
mount volume "smb://" & ServerUserName & "@" & ServerAddress & "/" & "music"