Ask Leo! by Leo A. Notenboom

Why is my "generic volume in use" when removing my external hard drive?

Search First! Then browse: Categories | Full Archive | By Date | Newsletter

Home » Hardware » Disks and Mass Storage

Summary: Before you can remove a removable device, Windows needs to make sure no programs are still accessing it. If one or more are, you can't "safely remove".

I bought a new 1TB external hard drive the other day and installed it on my laptop right away, everything was working fine until I tried to safely remove it. Whenever I click safely remove it says "Windows cant stop your generic volume device because it is in use". I checked everything and I didn't have a single program running. I don't want to shut it off manually because I have hundreds of important files on it and I don't want to lose them. can you help?

Oh, just because you don't have a program running, doesn't mean that there aren't other programs running. Heck, that's all Windows itself is: a computer program.

What we have is a situation very much like How can I find out who is using a "file in use"? - except that we don't know the name of the file, or whatever else might be "in use".

I'll show you my technique, which looks very similar to the file in use scenario, as well as cover an easily overlooked common cause or two.

I'd guess the most common cause of an unexpected device in use is having Windows Explorer open and viewing the contents of the drive.

Windows Explorer viewing a removable drive

That's enough for the device to be considered "in use". The solution? Simply either close the Windows Explorer window, or select and view some other drive.

The same's true for the Windows Command prompt:

Windows Command Prompt viewing a removable drive

The problem is that the removable drive is the "current" drive in the Windows Command prompt. The solution is to close the window, or change the current drive.

"... this concept of a 'current' drive is actually common to all Windows programs ..."

Now, the problem gets more complex, because this concept of a "current" drive is actually common to all Windows programs, and is frequently handled differently by each. For example in some applications if you do a "File Open..." and open a file on your removable drive, the application will set the "current drive" to be that drive - and leave it that way even after you've subsequently closed the file. In fact, it may not change until you perform some other kind of open or save operation using a different drive.

Or, of course, you can close the application.

And yes, often the "application", for lack of a better term, is Windows itself, making it difficult to understand exactly what is still accessing the device, not to mention whether or not you can close it or change what it's accessing.

One approach is to break out one of my favorite diagnostic tools, Process Explorer.

Download process explorer, if you haven't already, and run it. Type CTRL+F (or hit the Find menu, Find Handle or DLL ... menu item), and type in the drive letter of the device, followed by a colon. In the examples above where my flash drive was the H: drive, I'd type in H:, and then click on Search.

Process Explorer Find operation on a drive letter

What you're seeing in this example are the two processes on my machine that have the device in use: the Windows Explorer and Windows Command prompt that I used for my examples above.

Now that you've identified which process has the device in use, you can take appropriate action: something in the program - like changing the current drive in a Windows Command prompt - or by closing the program itself, if that makes sense.

And finally, as mentioned in a related article on the topic, you might well find that the culprit is your anti-malware tool scanning the device, or the Windows indexing service, or other tools that might be accessing your drives.

Related:

Helpful? Get new articles weekly by email in my FREE newsletter!

Your Name:
Your Email:


Why Subscribe?

Article C3890 - October 15, 2009

Recent Comments
3 Comments

In my case it was almost always search indexer (on XP).
Since I've upgraded to Windows 7 a couple of weeks ago, I have never had any trouble ejecting anything.
So far so good :-)

Posted by: Vincent at October 15, 2009 4:34 PM

In my case the icon doesn't disappear, but now when I click it and then click the volume to be stopped (such as my external Drive) I now never get a note saying it's safe to remove. The only thing that happens is the icon will move positions or blink. How do I get back the "safe to remove" notation?

Posted by: Vincent S. Venturella at October 20, 2009 7:40 AM

The original question mentioned a 1TB external drive with "hundreds of important files on it". To be perfectly safe in that situation, you can always Shutdown (not Hibernate, or Sleep, or Standby, or even Restart) Windows. Once the system powers off you can safely remove the external drive, since in the process of shutting down, Windows will terminate all processes, close all files, and post any buffered writes to all drives.

I encounter this problem nearly every time I connect a FLASH drive or USB hard drive to my Vista laptop. I have never been able to identify the offending process, but having read this article I will have Process Explorer at the ready the next time it happens. Oddly, this never seems to happen to camera memory cards when I insert them into the builtin card reader on that laptop, even though I cannot imagine how they are treated differently -- they look like just another external drive otherwise.

Posted by: Howie Marshall at October 20, 2009 1:37 PM

Post a comment on "Why is my "generic volume in use" when removing my external hard drive?":






(Email Address will not be published.)

Remember Me?

By popular demand...
my tip jar
Cuppa Joe
Buy Leo a Latte!

(you may use HTML tags for style)

RSS feed Subscribe to the RSS Feed specifically for comments on this article.

Before commenting, please...

  • Read the article at the top of this page. If your comment shows you didn't, it'll be deleted and ignored.

  • Comment only on this article. Use the Google search box at the top of the page if you have a question about something else.

  • Don't include personal information in the comment. No email addresses. No phone numbers. No physical addresses.

  • Don't spam. Excessive links to unrelated sites within a comment or across multiple comments will cause all such comments to be removed.

  • Don't ask me to recover lost passwords or hacked accounts. I can't, and those comments will be deleted.

  • I can't respond to every comment. And I can't vouch for the accuracy of others who do.

Please wait. Your comment is being processed ...


Question? Ask Leo!