Summary: "Device cannot be stopped" can be a frustrating error if there's no obvious cause. Turning off device power or unplugging anyway isn't really safe.
If I have an external hard drive connected and running (but not being used or accessed through my overt actions) and I get the message "The device ... cannot be stopped right now. Try stopping the device again later.", would be safe to turn off the external drive (assuming it has an on/off switch) and then unplug it from the computer? Or would switching it off be just as risky?
•
Ultimately turning off the device is pretty much the same as unplugging the USB cable. So, the short answer is no, it's not really a safe alternative.
Unfortunately it does happen sometimes that a USB device appears to be in use and cannot be stopped. I'll walk through some of the approaches you can take to removing the device while minimizing the risk of data loss.
And no, pulling the plug isn't one of them.
•
The message that you're seeing in Windows XP:

(Windows Vista and Windows 7 have similar messages.)
Here are the steps I take whenever I encounter this (which is often):
I check for Windows Explorer, or Windows Command Prompts that are open and are displaying the contents of the external drive in question, or have that drive set as the "current" drive. This is by far the most common cause on my machine. Simply closing which ever I find, or having it display something else that isn't the removable device instantly resolves the issue.
I fire up Process Explorer, as outlined in Why do I get "device ... cannot be stopped right now" trying to safely remove my USB drive?, and use it to see what application might have a file or "handle" open to something on the removable device. Once I identify the application I then take action appropriate to that program - perhaps closing it, perhaps going to it and doing whatever makes sense in that application to stop it using the external drive.
I wait a while. Seriously, sometimes the process using the external drive will just disappear on its own.(Yep, this is the "Try stopping the device again later." part of the error message.)
I shut down the machine. This is the ultimate. Once the machine has been shut down then by definition it's safe to remove anything you want. (You can use "Restart" as long as you're careful remove the device after Windows has truly shut down, and before it begins to reload - in other words while the BIOS self-test screen is showing.
You'll note that just pulling the plug wasn't on the list. 
However...
I'll be honest.
Sometimes I don't follow my own advice. Sometimes if none of the steps short of rebooting have worked, I'll just wait awhile, paying careful attention to disk activity. If the device has truly been idle for "a while" - I'll remove it anyway.
Caution: If you follow my example you may lose all the data on the device. Heck, you may lose the USB device itself. It's a risk I run because I'm impatient and don't want to wait for a reboot. And it usually works.
And I'm also very well backed up. I'd never take that inappropriate shortcut if the data on the USB device was, say, the only copy of the data.
So, weighing all the risks, I sometimes break the rules. (I include it here because there are times when you honestly are in a hurry, or a reboot just isn't in the cards for some reason.)
I don't recommend that you do the same. Take the time to reboot your machine to be safe.
Related:
Why do I get "device ... cannot be stopped right now" trying to safely remove my USB drive? Windows tries to prevent corruption by disallowing removal of USB devices that are "in use". Unfortunately it's not always obvious what "in use" means.
Safely Remove Hardware: where did the icon go? How do I safely remove hardware without it? The "Safely Remove Hardware" icon can occasionally disappear. It turns out there's a simple workaround to safely remove hardware anyway.
If shutting down Windows cleanly is important, what happens when the power just goes out? We're all told to to shut down Windows before turning power off, but what if the power just goes out? If you're not protected, bad things can happen.
Article C3938 - November 29, 2009
This works for me. . .
Open task manager.
Go to the Processes tab.
End Process "explorer.exe".
All windows will definitely close including the task bar.
Select file on task manager.
Select "New task (Run)"
Type, explorer.exe then hit enter or ok.
Task bar will be back. Eject the device again (Safely remove hardware).
Posted by: Kikzamchine at December 1, 2009 10:55 PMThere is another way, posted on:
http://blogs.msdn.com/pandrew/archive/2007/01/15/unlocker-utility-for-ejecting-usb-drives.aspx
and the little program can be downloade from:
http://download.cnet.com/Unlocker/3000-2248_4-10493998.html
Hope it will some help
Posted by: Pilu at December 1, 2009 11:01 PMwith respect
Berta Istvan (Stephen)
At times it could also be a case of the original application still locking the device. eg: if you were using a wordprocessor to edit a document directly on the USB drive, even after closing the document (but not the application itself) you may not be allowed to stop the device. If in doubt, close all open applications.
Another situation is where your device is being scanned by your anti-virus program. You can either stop the scan or wait until it finishes.
Hope this helps.
Posted by: RikkU at December 1, 2009 11:51 PMRikkU
unlocker always works for me. if it doesn't, you haven't given it enough time to close every process referencing data on the drive. Ending 'explorer.exe' process is just unnecessary.
in hardware properties also (right click device, properties).. some clicks later.. there should be an option to allow for safe removal anytime but you get no cache/indexing or something like that. good trade-off though.
Posted by: josh at December 2, 2009 5:52 AMAnother quick thing I do is to "Unmount" the drive by removing/changing the assigned letter for that drive using the Disk Management Console (diskmgmt.msc). This forces the handles to be removed from the logical drive.
Posted by: SystemCrash at December 2, 2009 1:09 PMGo to My Computer (XP) or Computer (Vista). Right click the drive letter of the drive you want to remove. Left click Eject. Wait for the safe to remove message, then remove. Has worked so far for me.
Posted by: Logan E. Wing, III at December 3, 2009 2:13 PMI have been researching this for SIX months. I have NOt found an ideal solution for this.
1. we need a way to FORCE a dismount of the usb drive. These drives stay locked up just from activity of indexer, explorer, etc, things that may not be WRITING data, but just are LOOKING at the drive.
2. I will try UNLOCKER
3. process explorer is good, BUT there are processes that show up that I have NO CLUE what they are, and am hesitant to shut down those programs without knowing what they do
4. See Truecrypt (disk encryption program). If you start truecrypt, and MOUNT an encrypted drive, and then later try to UNMOUNT it, and something is inadvertently accessing that encrypted drive, truecypt has an option to FORCE dismount. THIS is what is needed for the usb drives.
Leo, KEEP UP the research on this topic, because it affects LOTs of people, and not being ableo to shut these down is a pain
nick
Posted by: nick at December 6, 2009 4:25 PMI can only backup the statement to never remove a USB devicejust like that. I wrecked a stick once doing that.
All my collegues always told me that it is unnecessary to shut down the device, "you can just pull it out, it doesn't hurt". So it did that once. The very next time I plugged the stick into a computer, it seemed fine, but after a some 10 seconds it disappeared from the drive list. No matter what I did, I couldn't get it back.
The only way to see the stick again, was unplug it, wait a little (as if a capacitor had to discharge or so...) and then replug it. Again: it would be visible for a couple of seconds, and then disappear. The longer I waited before replugging it, the longer it would stay visible (hence my suspicion of a capacitor discharging), but never longer than 10 seconds or so. I managed to pull off all important data by copying it onto my hard drive during that few seconds (took me a couple of sessions), but by all practical means the stick has become unusable.
So I disconnect my sticks properly again, no matter what my collegues think of it...
Posted by: Theo at December 7, 2009 12:52 AMMany people try to close a USB drive with a double RIGHT click which displays a box and ask you to select the device you wish to close, this doesn't always work!!! A LEFT click will display the message 'Safely Remove Hardware'.... one click on this does the trick!
Posted by: Colin Mac at December 7, 2009 1:41 AMJust wanted to say thanks for the information contained in the article and comments.Was trying to isolate a hard drive but still have easy access.
Posted by: Adam at December 14, 2009 5:13 PMUnlocker among others,has provided that link,and removed possible mistakes.
Thanks