I have a lovely new 1TB external hard drive and moved all my music onto it a short while ago.  Now even though I have iPods and iPhones, for playing that music from my laptop, ITunes on Windows is pretty poor so I’ve tended to use Media Player and, more recently, Zune for that task.

Now, as you would expect I wanted my music into these programs automatically I included the music folder in my library as shown:

image

Now given I’m on a laptop and I usually want to leave work at the end of the day I’ll Safely Remove the drive from my laptop before packing up, but now when I do I get either the infamous “Windows can't stop your 'Generic Volume' device because it is in use” message or the “Problem Ejecting USB Mass Storage Device” message as shown:

image

But I closed Media Player (and everything else) so it can’t be locking files can it?

Now, as it happens, in the past I’ve seen Windows Search Indexing locking external drives, but I’d already made sure that the drive isn’t indexed by turning off the flag in the properties window:

image

and if I look at the Indexing Options in Control Panel I see this:

image

You can see that the G: drive (the external) isn’t indexed, yet if you look at the location summary in the bottom pane there’s a folder called Music there.  What gives?

So I expand the G: drive settings and what do I see? That the folder is, in fact, indexed by Windows Search and it is very likely locking the drive.  What the…?! Why isn’t the G:\ drive showing with a greyed checkbox to indicate that one or more child folders are included.  Thanks for the great UI there, Microsoft.

image

So if I just clear it now, then I’ll be able to safely remove the drive, but this is what happens in Media Player’s settings:

image

Which of means that new items I add to my Music folder won’t automatically appear.  That’s not what I want.  In fact it sucks.

Maybe I should just use the Zune player instead? Unfortunately, by default, Zune relies on the Windows Media Player library settings, so to break the dependency I have to go into Zune settings and unlink the Zune folders from the windows libraries.

image

Now I can add the Music folder from the external USB drive and Zune will automatically index the folder and pick up changes to the contents, just as I wanted.  And it does it without keeping the drive locked when I exit the program.

image

So now when I want to go home, I can just close Zune and then safely remove the drive as I would expect.

image

 

Phew! Talk about a major pain in the butt! How is a normal, non technical person ever going to figure this out for themselves.  Maybe I should’ve just stuck with iTunes – at least it doesn’t lock your external drives on you.