This must have happened to each of us many times that when we click the “Safely Remove Hardware” icon in the system tray to remove hardware, we get an error message saying “The device ‘Generic Volume’ cannot be stopped right now. Try stopping the device again later”.
The only reason for this problem is that the pen drive is still in use and some data is either being read from it or being written into it. That means some process is using the drive but we do not know what the processes are that are accessing the drive.
Steps to fix the problem:
1. End the processes that are using the USB drive:
Download and install this software called as Unlocker, now open My Computer, right click on your USB drive icon, click on Unlocker.
Now click on Unlock All to kill all the processes using the Drive. Now the drive should get safely removed.
2. Clean the system infected by viruses:
If the first step fails that means the process that is accessing the pen drive is a virus for sure. So to clean the system just scan the computer with a good updated Anti Virus and delete the viruses that are found. The problem would certainly get solved.