Eject stubborn macOS disks without logging out.
Find what's blocking, close it safely, eject cleanly.
Sound familiar?
DiskFree fixes this. ↓
Shows which apps and processes are preventing ejection, and whether they're reading or writing to the disk.
Warns you if any process is actively writing before taking action. No data corruption risk.
Closes blocking apps and ejects cleanly — no logout, no Force Quit, no restart required.
Separates user apps from system processes (Spotlight, iCloud) that release automatically on unmount.
Click Copy Script above and paste into a file called eject-disk.sh, or download it directly.
Or pass a volume name directly: ./eject-disk.sh "Extreme SSD"
Add to your PATH for global access — run from anywhere, no path needed:
DiskFree is fully open source — a single readable bash file with no dependencies, no network calls, and no telemetry. It uses lsof, kill, and diskutil — standard macOS tools. We recommend reviewing any script before running it on your machine.
If a process is actively writing to your disk, DiskFree will warn you before taking action. Save your work before closing blocking apps. This software is provided "as is" under the MIT License.