Often I come to my mac sitting on my desk in the morning and need to simply unplug it and put it in a bag. While maybe not strictly necessary to properly eject the attached USB drive, it sure would be nice if there were a way to do so without first logging in.
Way to safely eject a USB hard drive from the lock screen
ejectscreen-lockusb
Related Question
- MacOS – OSX disable wake on USB
- MacBook – Western Digital Passport Drive Shows up on Old 2009 MacBook Pro, but not the new one
- External hard drive does not eject
- My WD external drive unmounted itself and now does not work
- IPad – ny way to lock the Lock/Unlock settings
- Troubleshooting: 90 seconds to eject external Time Machine drive
Best Answer
AFAIK there is no save way to eject an external drive from the lock screen.
You have several options though:
Purchase and install Mountain and enable "Unmount external volumes on sleep". The feature still seems to be experimental.
Create a LaunchDaemon which ejects your external drive(s) gracefully at say 5am. Here is an example of a bash script to start with:
If you don't want to write a LaunchDaemon, Sleepwatcher should support your efforts.
Unmount all external volumes before setting your Mac(s) to sleep.