-1
1
Sometimes, when trying to eject (remove) an external USB hard drive, Windows 7 issues the following error:
Problem Ejecting USB Mass Storage Device
Windows can't stop your 'Generic volume' device because a program is still using it. Close any programs that might be using the device, and then try again later.
This question addresses this issue when it happens in Windows XP or Windows Vista. Are there better techniques to use in Windows 7 SP1, preferably something that does not require a closed-source third-party tool?
Things I have tried:
- Closing all applications.
- Letting the system sit for 5 minutes to finish any outstanding NTFS journal writes.
- Disabling Windows indexing.
- Ensuring that there are no shares.
- Temporarily disabling antivirus.
- Using USB Disk Ejector (did not help).
- Putting the system in sleep mode and then waking it up.
- Using SysInternal's Process Explorer to see if any processes are using the drive.
My technique in the past was to turn off the system, but chkdsk often detects errors after doing this.
First you need to know what exactly causes the problem. Start sysinternals process explorer and do a search your usb hdd drive letter (for example:
– Jack White – 2016-07-20T23:55:49.363f:). Which processes use the drive? https://technet.microsoft.com/en-us/sysinternals/processexplorer.aspxThanks Jack. Process Explorer turned up nothing using it. – RockPaperLizard – 2016-07-21T01:38:14.750
Completely killing and restarting Windows Explorer always does the trick for me. On the rare occasion that it does not, logging off and then logging back on will take care of it (no restart required) – InterLinked – 2016-07-21T01:40:30.080
@InterLinked Thanks! Next time it happens, I will try both of those suggestions. Would you like to turn your comment into an answer, or would you prefer I create an answer with those tips? – RockPaperLizard – 2016-07-21T02:24:26.313
I forgot to tell you to run Process Explorer by right-clicking the downloaded file and selecting
Run as administrator. Please launch it like that and try searching again. – Jack White – 2016-07-21T11:39:19.617If process explorer still reveals nothing, please open the start menu, right click
Computer, selectManage, to the left of the window selectSystem tools -> Event viewer -> Windows Logs -> Systemand see if a warning event ID225fromKernel-PnPshowed up recently saying(something) stopped the removal or ejection for the device (something). If it does, please find the offending process by matching itsprocess idtoPIDcolumn of Process Explorer, and tell us what it is. – Jack White – 2016-07-21T11:52:08.250@JackWhite Thanks. The next time it happens, I will do exactly that. – RockPaperLizard – 2016-07-21T19:44:21.453
@JackWhite Ironically, it has not happened in the last two weeks. – RockPaperLizard – 2016-08-05T21:16:13.750