Lazily mount network file systems

Solution 1:

autofs and automount

Consider using autofs directly to handle the lazy mounting and unmounting of network drives. The automount manual page explains more.

Apple published Autofs: Automatically Mounting Network File Shares in Mac OS X to help administrators set autofs up.

autofs has the benefit of being silent to the user and connects on-demand, instead of at login.

I published setup-autofs to help a customer set up an autofs based connection between their Mac and a Windows shared drive. Once set up, the autofs approach has been resilient.