velcro

velcro › Guides

Why your Mac loses its NAS shares after sleep

You open the lid and the share on your Synology, TrueNAS, or Windows server is gone, or macOS says server connections were interrupted. What’s happening, and how to stop reconnecting by hand.

What happens

A mounted SMB share is a long-lived connection between your Mac and the server. While the Mac sleeps it stops answering, and after a while the server closes the session. When the Mac wakes, macOS can sometimes pick the session back up. Often it can’t: the share disappears from Finder, or macOS shows a “Server connections interrupted” alert, and apps that had files open on the share report errors.

The same thing happens without sleep when the network changes under the share: you move to another Wi‑Fi network, the Mac gets a new address, you plug in Ethernet, or a VPN such as Tailscale connects or disconnects.

What helps, and what doesn’t

Reconnect automatically with velcro

velcro watches for wake and network changes. After a wake it waits a few seconds for the network to settle, checks which of your shares are missing, and mounts them again with the password in your keychain. It checks again every minute in case the first try was too early.

curl -fsSL https://velcro.dgit.co/install | sh
velcro add smb://me@nas.local/home

The menu bar icon shows whether every share is attached. If you use shares from a terminal or scripts, velcro status reports the same thing without touching the share, so it answers instantly even while the server is unreachable.

For other ways to reconnect, and what each one misses, see how to automatically reconnect network shares on a Mac.

Questions

Why does my Mac say “Server connections interrupted”?
The SMB session to the server ended, usually because the Mac slept or the network changed. macOS asks what to do with shares it can no longer reach.

Can I stop my Mac from disconnecting the NAS during sleep?
Not reliably. Sleep ends the connection on most setups. What you can do is have the share mounted again automatically when the Mac wakes, which is what velcro does.

velcro is a free, open-source menu bar app and command for macOS 13 or later. It keeps SMB and NFS shares mounted, imports USB voice recorders to a NAS, and sends files to a NAS inbox.

Install velcro