Windows says "Problem Ejecting USB Mass Storage Device" or "This device is currently in use", even though you are ready to unplug the drive. Usually, a file, app, or background service still has access to it. The safest fix is to finish any file transfers, close programs using the USB drive, and try Safely Remove Hardware and Eject Media again. If nothing appears to be open, use a file-handle tool to find the hidden process instead of forcing the drive offline.
Quick answer: Save and close files on the USB, wait for transfers and scans to finish, close USB folders, then use the Windows taskbar eject control. If the same message returns, identify the process with Resource Monitor, PowerToys File Locksmith, or Process Explorer and close its app normally. If you still cannot release the drive, save your work and shut Windows down before disconnecting it. Never format the drive or terminate an unknown system process just to clear an ejection warning.
In This Article
Part 1. Why Windows Says Your USB Drive Is in Use
The error appears when Windows cannot release a removable storage device for removal. It can happen while a document is open, after a file transfer, or when background software such as an antivirus scanner, backup service, indexer, cloud-sync client, or media player is still working with files on the USB. You might see the message on a flash drive, an external hard drive, or a USB-attached SCSI (UAS) storage device.

The wording can vary, but the first checks are usually the same. Use the message and what the drive is doing to choose a safe next action:
| What Windows shows | What to check first | Safe next action |
| "This device is currently in use" | A file or app may still have an open handle. | Close the related app and try ejecting again. |
| "Windows can't stop your Generic volume device" | File Explorer, a program, or a background service may be using the volume. | Use the process-finding methods in Part 3. |
| "Problem Ejecting USB Attached SCSI (UAS) Mass Storage Device" | Some USB storage uses the UAS interface; the message does not by itself mean the hardware has failed. | Finish transfers and identify the program or service holding the drive. |
| Drive has disappeared, shows RAW, or asks to be formatted | This is a detection or file-system problem, not just a busy-device warning. | Stop writing to the drive and protect important files before attempting repair. |
Before continuing: If a copy or backup is still running, do not interrupt it. If the USB drive is repeatedly disconnecting, extremely hot, physically broken, or not detected, stop troubleshooting it as an ordinary ejection error; a different device or recovery problem may be involved.
Part 2. Try These Safe Fixes Before Using Advanced Tools
Start with actions that do not change the USB drive's partitions, file system, or device configuration. Windows 11 and Windows 10 offer the same basic safe-removal workflow, although the icons and menus can look slightly different.
- Save and close open files. Close documents, photos, videos, archives, installers, portable apps, and Command Prompt or PowerShell windows that were opened from the USB drive.
- Wait for ongoing activity. Check that copy and move progress bars, downloads, backups, security scans, and synchronization tasks are finished. A quiet File Explorer window is not proof that every background process has stopped.
- Close USB folders. Close File Explorer windows and tabs showing the USB's drive letter, such as E:. If you were running software from the drive, exit the app normally.
- Eject from the taskbar. In the notification area, open Safely Remove Hardware and Eject Media (check Show hidden icons if necessary), select the correct USB device, and wait for the Safe To Remove Hardware confirmation before unplugging.

- Try File Explorer when available. Open This PC, right-click the removable USB drive and select Eject if that option appears. If the error returns, leave the USB connected and continue to Part 3.
How to tell it worked: Windows displays a safe-to-remove notification or the removable device disappears from the eject menu. If you see another busy-device warning, do not keep forcing removal; identify the process still using the drive.
For the standard Windows procedure, see Microsoft's safe removal instructions. For the broader question of what happens after disconnecting without ejecting, see removing a USB flash drive without safely ejecting it.
Part 3. Find the Process Preventing USB Ejection
If the USB still says it is in use after you close visible apps, an open file handle may belong to a background process. You do not need to guess which service to kill: inspect the drive or affected file first. The three options below range from a built-in Windows utility to dedicated Microsoft tools.
Use Resource Monitor Without Installing Anything
Best for: A Windows PC where you know the USB drive letter but do not know which app has a file open.
- Keep the USB connected. Open This PC and note its drive letter, such as E:.
- Press Windows + R, type
resmon.exe, and press Enter. - Open the CPU tab. Expand Associated Handles near the bottom of the Resource Monitor window.
- Search for
E:, a distinctive folder name, or a file you know is on the USB. Replace E: with your actual letter. - Look at the matching Image, PID, and handle path. If you recognize a document editor, player, backup program, or sync client, save its work and close the application normally.
- Clear the search, check that the relevant handle has disappeared, then attempt to eject the USB again.

If no result appears: The handle may not be shown under the expected drive-letter path, the activity may have ended, or the block may be at another level of Windows. Try a file or folder name or one of the methods below. An empty search result does not mean it is safe to unplug during active writes. Microsoft describes this Resource Monitor workflow in its file-lock troubleshooting guidance.
Use PowerToys File Locksmith for a Specific File or Folder
Best for: You suspect a particular USB folder or file is open. Microsoft PowerToys includes File Locksmith, which lists processes using the selected file or directory.
- Install PowerToys from an official Microsoft source if it is not already installed, then open PowerToys and enable File Locksmith.
- In File Explorer, right-click a file or folder on the USB. On Windows 11, choose Show more options if needed, then Unlock with File Locksmith.
- Review the processes it reports. Expand a result to confirm which file is involved.
- If the process is an app you recognize, switch to it, save your work, and exit normally. Refresh the File Locksmith results and try ejecting again.

Important: File Locksmith checks files and directories that you select; it may not reveal every volume-level or system handle. It can offer an End task button, but terminating processes may interrupt writes or lose unsaved work. Avoid using it on unknown Windows services. See the official File Locksmith guide for current controls and limitations.
Use Process Explorer for a Deeper Handle Search
Best for: The error persists, the process is not obvious, or Resource Monitor did not identify a usable result. Microsoft Sysinternals Process Explorer can search the handles and DLLs opened by processes.
- Download Process Explorer from Microsoft Sysinternals and run it. If some processes are not visible, use an administrator account with appropriate permissions.
- Press Ctrl + F or choose Find > Find Handle or DLL.
- Enter the USB drive path, for example
E:\, or a distinctive file or folder name. Select Search. - Review each matching process and handle path. Select an entry to inspect the owning process in the main window.
- If it is a user app, save its work and close it from the app itself. Repeat the search and try ejecting when the relevant handle is gone.

Do not select Close Handle or kill System, svchost.exe, or an unfamiliar service simply to make the drive disappear. Manually closing an arbitrary handle can destabilize an application or corrupt active work. Use the official Process Explorer reference to understand the process listing before taking action.
Part 4. What If Nothing Is Open but the USB Still Will Not Eject?
The query "problem ejecting usb mass storage device but nothing is open" describes a real troubleshooting gap: closing every visible window does not necessarily release background handles. The safe next step depends on what the tools in Part 3 actually show.
Choose the Next Step Based on What You Find
Do not treat all process-search results as equivalent. This quick decision table helps you avoid disrupting Windows just to remove a drive.
| What you find | What it suggests | What to do |
| A recognizable app such as a player, editor, or archive tool | A document or folder on the USB is still open. | Save work, close the app normally, then eject again. |
| Backup, sync, or antivirus software | A background operation may still be scanning or writing. | Wait for it to finish, or pause it within that app if safe and supported; retry ejecting. |
| Windows Explorer | An open folder or preview may be holding the USB. | Close USB folders first. If needed, restart Windows Explorer from Task Manager only after saving work and confirming transfers have stopped. |
| System, svchost.exe, or an unfamiliar service | A Windows service or lower-level handle may be involved. | Do not force-close it. Save work and use the sign-out or shutdown path below. |
| No matching process, but the busy warning persists | The search was inconclusive; it is not proof that the drive is idle. | Try another distinctive file/path, then sign out or shut down without forcing the drive offline. |
What about "USB Attached SCSI (UAS) Mass Storage Device"? That wording identifies a USB storage interface. It does not change the first-line approach: finish I/O, find the actual application or service, and use safe removal. Do not uninstall drivers or switch disk modes solely because the warning includes UAS.
Sign Out or Shut Down When the Lock Will Not Clear
If you have checked open applications, let transfers finish, and still cannot release the drive, use a controlled shutdown rather than trial-and-error system changes.
- Save everything. Confirm that no important file transfer, backup, scan, or application write is in progress.
- Try signing out. Select Start, open the account menu, and choose Sign out. Sign in again and try the taskbar eject control. This can clear user-session apps, but it may not resolve a system-level handle.
- If the error remains, shut Windows down. Use Start > Power > Shut down and wait until the PC is fully powered off and drive activity has stopped before disconnecting the USB.
- Reconnect and check the drive. Start Windows, reconnect the USB only if needed, and make sure files are readable. If files are missing or Windows asks to format the device, stop writing to it and follow Part 6.

What not to try for this warning: Formatting the USB, converting NTFS to FAT32, running DiskPart offline disk, forcing a volume offline in Disk Management, uninstalling a storage driver, and ending unknown system processes are not equivalent to safe ejection. They can create a new problem without identifying the process that was using the drive.
Part 5. Can You Unplug a USB Drive Without Ejecting It?
Windows has two relevant removal policies for external storage. Since Windows 10 version 1809, Quick removal has been the default; it reduces reliance on write caching. Better performance can cache writes and requires the Safely Remove Hardware procedure. The policy is set per device and can be checked in the device's properties.
| Windows policy | What it means | Safest decision |
| Quick removal | Windows manages storage without caching write operations in the same way as Better performance. | Still wait for active copying or application writes to finish; use Eject when Windows reports the device is busy. |
| Better performance | Windows may cache writes to the external device. | Use Safely Remove Hardware before unplugging so pending writes can finish. |
If you need to inspect the setting, right-click Start > Disk Management, locate the correct external device, open its Properties, and check the Policies tab (sometimes reached through the Hardware tab). Consult the Microsoft external-storage removal policy documentation for the exact interface on your Windows build.
Do not change the removal policy as a way to fix an active file lock. Quick removal is not permission to interrupt a copy operation or ignore a busy-device warning. If important files are involved, resolving the activity and following the safe-removal prompt is the more cautious choice.
Part 6. Recover USB Files Only If Something Is Missing
An ejection warning alone is not data loss. If all files are present and the USB reads normally, you do not need a recovery tool just to eject it. Recovery becomes relevant if files disappeared after an unsafe removal, the drive is readable but some folders are missing, or the USB has become RAW or asks to be formatted.
When files matter, stop saving new data to the affected USB. Do not format it, run CHKDSK, initialize it, or write a new partition before protecting the data. If the USB is physically damaged, extremely unstable, or not detected by any computer, repeated software scans may be unsuitable; consider professional help.
Recover Files from a Detectable USB Drive with Recoverit
Wondershare Recoverit supports file recovery from USB and other external devices when the computer can detect the source. It scans for recoverable files and allows preview of supported results before you choose a destination. It does not fix Windows file locks or guarantee the restoration of overwritten data.
- Connect the source USB. Use a stable port and confirm Windows detects it. Avoid copying or installing anything onto the affected drive.
- Select the USB in Recoverit. Open Recoverit on a healthy computer, locate the connected USB under the available recovery sources, and select the correct device. The exact screen labels can vary by version.

- Scan the selected USB. Start a scan of the selected device and allow it to complete before relying on the results.

- Filter and preview found files. Review results, narrow the list by file type or path, and preview important files when supported before deciding what to restore.

- Recover to a separate healthy location. Select the needed files and use Recover to save them to your computer or a different drive, not the affected USB. Open a sample of recovered files to check them.

- Only then consider repairs. Once important files are preserved and verified, evaluate whether the USB needs a separate file-system repair or reformatting procedure.
For current UI screenshots and step-by-step recovery details, see the official Recoverit Windows guide for external devices and USB flash drive recovery function page.
Video guide: The existing Recoverit tutorial below covers recovering files from a corrupted USB. It is for an actual file-loss case, not for the original Windows eject warning.
Conclusion
When Windows reports Problem Ejecting USB Mass Storage Device, the next step is to release the activity using the drive, not to format or forcibly disable it. Close visible files first, then use Resource Monitor, File Locksmith, or Process Explorer to identify a hidden process. If the lock persists, save your work and shut down before disconnecting. If a removal has already caused missing files, protect the source USB and recover to a different drive before attempting repair.
FAQ
-
Why does my USB say it is in use when nothing is open?
A background scanner, indexer, backup tool, sync client, or Windows service can keep a file or volume handle open after visible windows are closed. Check the USB drive in Resource Monitor or Process Explorer, close a recognized app normally, and use a controlled shutdown if you cannot safely release the handle. -
How do I fix "Problem Ejecting USB Attached SCSI (UAS) Mass Storage Device"?
The UAS wording identifies the storage interface, not a separate repair method. Finish file transfers, close apps, identify open handles with a trusted tool, and use Windows Safe Removal. Do not switch disk modes or uninstall drivers solely because the message mentions UAS. -
Should I format my USB drive to solve the eject error?
No. Formatting does not release a program that is actively using the drive, and it can erase files. If the USB is also damaged or RAW, preserve or recover important data first and handle the file-system problem separately. -
Can I force-eject a USB if I cannot find the blocking process?
A missing search result does not prove the drive is idle. Save your work, wait for outstanding I/O, try signing out, and if necessary shut Windows down fully before disconnecting. Do not force-close an unknown system process or use DiskPart offline commands as an ordinary eject shortcut. -
Does Recoverit fix the "This device is currently in use" warning?
No. Recoverit is for recovering missing or lost files from supported storage, not for clearing active Windows file locks. Use the safe-ejection steps first; consider recovery software only if files are actually missing and the USB remains detectable.