Shared folders between two MAC machines - shotcuts dissappear

goliveuk
goliveuk used Ask the Experts™
on
Hello,

I have an issue with disappearing shortcuts of shared folders between two mac machines. Here is the case in details:

On MAC1 there are 10 folders on the desktop that are shared on the network. They are accessible and visible on MAC2.

When I created shortcuts on the desktop of MAC2, they work fine until MAC1 is rebooted. Then a warning message appears and shortly after that the shortcuts are gone.

Is there a way to resolve this issue?

MAC1 is running macOS Yosemite 10.10.5

MAC2 is running macOS Mojave version 10.14.3

Thank you
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
AlexSenior Infrastructure Analyst

Commented:
What's the warning message?

Are you using IP or Hostname to get the shortcut?

Author

Commented:
The message is Server Connections Interrupted: Like this one:  

https://i.stack.imgur.com/kkPvq.png


I am dragging the folders from the Finder to the desktop.
David FavorFractional CTO
Distinguished Expert 2018

Commented:
This is by design.

When you reboot, the shared directories are no longer available.

Likely work around will be to write a simple script to do the following...

while (1) {

      sleep 1;

      next if (shortcuts still exist);

      next if (MAC1 is offline);

      recreate your shortcuts here

}

Open in new window

Generally, when you're connected to a shared folder/disk from a Mac, it will show up on the desktop.  These are virtual links.

You probably want to do this with automator if you want the disks to behave as if you were clicking on it.  Doing in bash will need a different method.

tell application "Finder"
    try
        mount volume "smb://USERNAME:PASSWORD@Mac1/Shares$/D207"
        mount volume "smb://USERNAME:PASSWORD@Mac1/Shares$/D201"
        mount volume "smb://USERNAME:PASSWORD@Mac1/Shares$/f...inistratie"
        mount volume "smb://USERNAME:PASSWORD@Mac1/users$/A...n/homedir"
        mount volume "smb://USERNAME:PASSWORD@Mac1/Project"
        mount volume "smb://USERNAME:PASSWORD@Mac1/Fab"
        delay 1
    end try
end tell

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial