TL/DR: Clear out recent servers in Finder's 'Connect to Server' dialogue, then: connect to NAS; mount shared folder; disconnect NAS. NAS is now remembered in Finder sidebar.
Long version
A recent thread on keeping shared folders mounted on macOS got a bit side-tracked with having the NAS visible in the Finder when it wasn't mounted.
I've two Macs I use and over different macOS versions I have had this issue since switching off AFP on the NASes. That may be the issue because I found how to fix this.
Two of my NAS have been rebuilt, new static IP, and new Bonjour name plus they had AFP disabled either from the start of for a long time. But the new NAS got the IP and name I use for my main NAS. As such if I want any NAS in Finder's sidebar it will be the main NAS, but instead I get the two older NAS. The only time I get the main NAS in the sidebar is when I've a mounted shared folder: dismount and the NAS disappears.
@Robbie suggested that the Bonjour flags where needed to advertised Time Machine over SMB. This seemed to work but I only later looked and realised my AFP on/off test hadn't done the 'off' step
But now I have the answer!!!
You don't have to be advertising Time Machine over SMB, you only need Bonjour itself enabled.
The important step is to clear out recent servers in the 'Connect to Server' dialogue. This deletes all the entries in the dropdown list but also removes any of those in the Finder sidebar that aren't mounted.
Next in Finder click Network and logon to the NAS and mount a shared folder. When you disconnect from the NAS you'll find it remains in the sidebar, plus is added to 'Connect to Server' recent servers dropdown list.
I'm guessing I had a saved entry for the main NAS that stopped it saving an updated entry for the same Bonjour name.
Long version
A recent thread on keeping shared folders mounted on macOS got a bit side-tracked with having the NAS visible in the Finder when it wasn't mounted.
Permanently mounting a drive on macOS
I thought Synology Drive would do what I want but no? I want a folder on my Mac which is actually a folder/directory/share on my NAS. I want it like a Big Hard Drive that's always connected to my Mac. I want to store Big Files there and I don't want to have to keep connecting/reconnecting to an...
www.synoforum.com
I've two Macs I use and over different macOS versions I have had this issue since switching off AFP on the NASes. That may be the issue because I found how to fix this.
Two of my NAS have been rebuilt, new static IP, and new Bonjour name plus they had AFP disabled either from the start of for a long time. But the new NAS got the IP and name I use for my main NAS. As such if I want any NAS in Finder's sidebar it will be the main NAS, but instead I get the two older NAS. The only time I get the main NAS in the sidebar is when I've a mounted shared folder: dismount and the NAS disappears.
@Robbie suggested that the Bonjour flags where needed to advertised Time Machine over SMB. This seemed to work but I only later looked and realised my AFP on/off test hadn't done the 'off' step
But now I have the answer!!!
You don't have to be advertising Time Machine over SMB, you only need Bonjour itself enabled.
The important step is to clear out recent servers in the 'Connect to Server' dialogue. This deletes all the entries in the dropdown list but also removes any of those in the Finder sidebar that aren't mounted.
Next in Finder click Network and logon to the NAS and mount a shared folder. When you disconnect from the NAS you'll find it remains in the sidebar, plus is added to 'Connect to Server' recent servers dropdown list.
I'm guessing I had a saved entry for the main NAS that stopped it saving an updated entry for the same Bonjour name.