When you click on the “Safely Remove Hardware” icon in the system tray to remove your USB thumbdrive, you may receive an error message saying that it is still in use and you may not be able to remove it successfully.
Do the following error messages look familiar to you?
The above errors are reported if there are processes with file handles opened on the USB drive. To safely remove the drives, you will need to determine the offending processes and terminate them.
To resolve this :
- Download a copy of Process Explorer from the Microsoft TechNet website. Once downloaded, extract the executable from the ZIP archive and run it.
- Press ‘Ctrl-F’ or goto the Find menu and click on the ‘Find Handle or DLL’ option.
- Type the drive letter of the USB device in the textbox and click on the ‘Search’ button.
- Take note of the process name and it’s PID. Look at the screenshot below for an example.
- From the main process tree view, click on the PID header to sort the entries based on the process ID and search for the offending process.
- Right-click on the process and kill the process.
You should now be able to safely remove your USB drive. If you are still facing problems with the USB drive, a restart of you computer may be required.