I keep a drive attached to my MacBook for Time Machine backups when I'm at my desk. I also regularly work from places other than my desk. Most of the time, if I close the laptop lid I intend to leave my desk, so I need to unmount the drive. Is there any way to automate this, so that the OS automatically unmounts the drive before sleep? I figure my options are
- Just be a bad computer user and unplug the drive. (yikes)
- Manually remember to unmount the drive… This takes 15-20 seconds altogether, and I'll forget at least some of the time.
- Figure out how to make it automatic.