1
At home, I have a network drive and devices that mount it from a local IPv4 address. Away, my laptop mounts that same drive with sshfs and a DNS-resolvable hostname.
Moving the laptop from network to network is still a problem. I never remember to unmount the filesystem before closing the laptop (and who would?). Shells become unresponsive, lock the mount point, and generally make it a fuss to get back to work.
I imagine the system silently remounting as needed, ideally without interrupting processes with open files. Perhaps this process could be triggered by a wifi rule that runs a certain script upon every network affiliation.
Is there a best practice or a better way to look at this problem?