MacOS and SMB unmounting issues, work around

Currently reading
MacOS and SMB unmounting issues, work around

2
0
NAS
DS220+
Operating system
  1. macOS
Mobile operating system
  1. Android
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.

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"

 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

I can confirm that the latest smb update resolved the issue in my case. I can now save files directly on...
Replies
20
Views
3,684
Both Plex server for the NAS and the Plex client app for MacOS are free, and will catalogue & stream your...
Replies
9
Views
2,841
Deleted member 5784
D
  • Question
yes,i can, i only try it on windows, i find the solution,i clone/make a new sharing folder with same file...
Replies
2
Views
1,485
  • Solved
Well, I sorted the problem out. I ensured that the Windows firewall rules were meant specifically for the...
Replies
16
Views
3,525
I can see that being a reasonable approach to updating, especially operating systems. As for AFP, I’ve...
Replies
6
Views
2,711
  • Solved
I registered on this forum only to thank you. I had exactly the same problem with exactly the same...
Replies
11
Views
8,320

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending threads

Back
Top