I don’t know about you, but I’m always juggling SD-cards and USB-sticks between my computers. Editing, publishing and archiving photos can take a lot of time, and that means that I’m not always able to finish the job in a single session. I do not copy all downloaded PDF’s to my hard disk, so reading them thoroughly usually takes more than a single evening. I always set my computers in sleep mode before leaving my desk, so when waking them up my Macs always bite me with the message “The disk was not ejected properly“.
More or less by accident I happened to find a possible fix for my troubles – as long as I’m willing to do some serious hacking – Apple does not make it easy to make sure that your external drives are unmounted and remounted automatically before entering or waking up from sleep mode.
The premise of the article “Automatically eject external disks on sleep and reconnect after on OS X“?
To find a way to auto-eject your mounted drives and upon waking up the Mac, auto-remounting any drives that is (sic) still connected…
Be warned, however – if you have never touched a Terminal session, let alone executed a ‘sudo’ command, then the instructions may overwhelm you at first reading. I will be rereading them again (possibly printing them out and annotate them) before trying my hand at the execution. But I know I will like the result… if it still works in Yosemite (the text was written almost two years ago).
In case you don’t know what a PDP-8 is: Wikipedia calls it ‘the first successful commercial minicomputer, produced by Digital Equipment Corporation (DEC) in the 1960s‘. Computing prehistory, indeed!