
Why it exists
External drives keep spinning and keep waking a sleeping Mac, and a Time Machine drive that is still mounted when the Mac sleeps can come back with the "Disk Not Ejected Properly" warning. DriveGuard unmounts the drives you choose when you step away, and mounts them again when you are back, without ever risking the data on them.
Free and open source
DriveGuard is free software, released under the GNU General Public License, version 3.
The whole app is public. You can read the code, run it, change it and share it, and anything built from it stays open. That matters for an app that touches your backup drive: you can check exactly what it does.
What it does
Unmounts when you step away
Choose when: screen lock, screen saver, display sleep, user switch or just before the Mac sleeps. Drives come back when you return.
Time Machine aware
Before every unmount it checks Time Machine. If a backup is running, or it can't tell, it waits and checks again. Your Time Machine drive is marked in the list.
You pick the drives
Nothing is touched until you tick a drive. Each drive can have its own delay and its own triggers.
Never forces
If macOS says a drive is busy, DriveGuard does not push. It retries politely, then leaves the drive mounted and tells you.
Tells you what is in the way
When a drive won't unmount, the activity log names the programs holding it open. DriveGuard also waits if a program is writing to the drive.
Encrypted drives too
macOS locks an encrypted drive when it is unmounted. Save the drive's password once, in your own keychain, and DriveGuard unlocks it when you return. macOS asks you to give DriveGuard Full Disk Access for this. No password saved, and the drive is left alone.
Mounts them again
Drives return when you unlock the screen or wake the Mac. If DriveGuard quits or crashes while drives are unmounted, it remounts them the next time it starts.
Lives in the menu bar
Remount a drive, unmount now, or pause DriveGuard for an hour, all from the menu bar. The icon shows when drives are unmounted or paused.
Tells you when something fails
An optional notification if an unmount is refused or a remount fails, plus an activity log you can export.
Safe by design
Your data comes first, so DriveGuard has hard rules.
- It never forces an unmount, and never ejects: the drive stays connected.
- It never unmounts while Time Machine is backing up, or when it can't tell. Right before sleep it can't wait, so it skips the drive instead.
- It only touches drives you ticked. The startup disk, internal drives, network shares and disk images are always left alone.
- It never holds the Mac from sleeping longer than your limit, and never blocks sleep.
Private by design
DriveGuard keeps everything on your own Mac. There are no accounts, no advertising and no tracking, and the app makes no network connections of its own. Its settings stay on your Mac, and the activity log is saved only in a small file on your Mac, so you can read what happened even after a restart. Read the privacy policy.
Good to know
- Open source under the GNU GPL v3: read the code on GitHub.
- Made for the Mac, running macOS 15 or later.
- Not coming to the Mac App Store. To unmount and mount drives and ask Time Machine for its status, DriveGuard runs without the App Store sandbox. The download is on GitHub.
- Version 1.0 is out. Download it from GitHub, open the disk image and drag DriveGuard into Applications. It is signed and notarized by Apple. See the updates page for what is in it.
- It only unmounts and remounts: it does not eject, repair or format anything.
Need a hand?
Visit the support page for answers and how to get in touch, or choose Help ▸ DriveGuard Help in the app. Found a bug or have an idea? The project is open source, so you can also take a look at the repository on GitHub.