What Does “Disk Not Ejected Properly” Mean?

“Disk not ejected properly” means your computer lost its connection to an external drive before the operating system finished all its behind-the-scenes work on it. This message appears on both Mac and Windows systems when you unplug a USB drive, external hard drive, or SD card without using the “Eject” or “Safely Remove Hardware” option first. It can also appear if a cable comes loose, a USB port loses power, or the drive disconnects due to the computer going to sleep.

The warning exists because your computer doesn’t always finish writing data the instant a progress bar hits 100%. Understanding why helps you avoid the real risk here: corrupted or lost files.

Why Your Computer Cares About Ejecting

When you copy files to an external drive, your computer often uses a process called write caching. Instead of sending data directly to the drive in real time, the operating system stores write commands in RAM (your computer’s fast, temporary memory) and feeds them to the drive gradually in the background. This is why a file transfer progress bar can hit 100% and close while the actual writing is still happening behind the scenes. You’re free to keep working, but the drive isn’t truly done yet.

Beyond cached writes, the operating system also maintains metadata about your files: where they’re stored on the disk, their names, their sizes, folder structures. If you pull the drive out while the system is in the middle of updating that metadata, the file system can end up in an inconsistent state. A file might exist on the drive but have no entry in the directory, or a directory entry might point to empty space. That’s corruption, and it’s exactly what the warning is trying to help you avoid.

Does It Always Cause Damage?

Not necessarily. If no files were being read or written at the moment you disconnected, the warning is more of a scolding than a diagnosis. Many people see this message after their laptop goes to sleep with a drive plugged in, or after bumping a cable. If nothing was actively transferring, your files are likely fine.

The risk goes up significantly when you unplug during an active transfer or shortly after one finishes. Even if the progress bar closed, cached data may not have reached the drive yet. In that case, you could end up with incomplete files, missing files, or a drive that asks you to format it before it can be used again.

Your file system format also matters. exFAT, which is commonly used on USB drives and SD cards because it works on both Mac and Windows, is more prone to corruption when a transfer gets interrupted. NTFS (the default Windows format) and APFS (the default Mac format) have journaling features that make them somewhat more resilient, though neither is immune to problems from improper ejection.

Windows Quick Removal vs. Better Performance

Windows has two removal policies for external drives. Since Windows 10 version 1809, the default is “Quick removal,” which disables write caching for external devices. Under this policy, Windows writes data directly to the drive without holding it in RAM first, which means you can technically unplug the drive without ejecting it, as long as no file transfer is actively in progress.

The other option, “Better performance,” enables write caching and can speed up transfers, but it means you absolutely need to use the Safely Remove Hardware process before unplugging. If you’ve changed this setting at some point, or if you’re using an older version of Windows, write caching may be active without you realizing it. You can check by opening Device Manager, finding your external drive under “Disk drives,” right-clicking it, selecting Properties, and looking at the Policies tab.

On a Mac, there’s no equivalent toggle. macOS uses write caching by default, which is why the “disk not ejected properly” notification appears so frequently for Mac users. Always eject before unplugging on a Mac.

What to Do After Seeing the Warning

Plug the drive back in and check your files. Open the folders you were working with and verify that recent files are intact. Try opening a few of them rather than just confirming they exist, since a corrupted file can still show up with the correct name and file size.

If files are missing, if the drive won’t mount, or if your computer asks you to format the drive, you can try repairing it with built-in tools before resorting to anything more drastic.

On Windows

Open Command Prompt as an administrator by typing “Command Prompt” in the search bar, right-clicking it, and selecting “Run as Administrator.” Then type chkdsk X: /f /r, replacing X with the letter assigned to your external drive. The /f flag tells Windows to fix file system errors, and /r tells it to locate bad sectors and attempt to recover readable data. This scan can take anywhere from a few minutes to over an hour depending on the size of the drive.

On Mac

Open Disk Utility (found in Applications > Utilities), select your external drive from the sidebar, and click “First Aid.” This runs a scan similar to Windows’ check disk tool, looking for directory errors and file system inconsistencies and repairing what it can.

If the drive contained important files and these tools can’t fix the problem, stop using the drive immediately. Every new write operation risks overwriting the data you’re trying to recover. At that point, data recovery software or a professional service is your best option.

How to Prevent It

The simplest fix is to always eject before unplugging. On Mac, right-click the drive icon on your desktop or in Finder’s sidebar and select “Eject.” On Windows, click the small USB icon in the system tray (bottom-right corner) and select “Safely Remove Hardware.”

If your computer won’t let you eject because something is “still in use,” some background process is accessing the drive. On Windows, you can identify the culprit by opening Resource Monitor (type “resmon” in the Start menu search), going to the Disk tab, and looking for any processes accessing your drive’s letter. On Mac, Activity Monitor can sometimes help, but often the quickest fix is to close all applications, wait a few seconds, and try ejecting again.

Common offenders include cloud sync services like Dropbox or Google Drive that index new files, antivirus software running a scan, file preview generators like Windows Explorer’s thumbnail cache, and media apps like Photos or iTunes that auto-import from connected drives. Closing or temporarily disabling these usually frees the drive.

If you frequently get this warning because your laptop goes to sleep with a drive attached, check your power and sleep settings. Many computers cut power to USB ports during sleep, which disconnects the drive and triggers the warning. On Mac, you can prevent this by going to System Settings > Energy and adjusting sleep behavior. On Windows, you can disable USB selective suspend in your power plan’s advanced settings.