Safe Removal of USB Drive Hacks in Windows 8.x
How many times have we seen the "device is in use, please close, blah, blah, blah..." message when trying to eject an external/USB harddrive ?
TOO MANY !!! ONCE is too many for some of us when (think) we know that we've shut everything that is touching the drive down.
You've probably also realised that the "reboot into safe mode" is a total cop-out and no more of an answer than "shutdown"!
Similarly, you've probably also already sussed that suggestions about updating drivers or using recovery console are generally pointless.
Finally in desperation, you have turned to your friend Google (who knows more about you than your parents or spouse probably know)...
Let me guess... you've done everything you can think of as the known problem children, right ?
- Closed all Windows Explorer processes using "pskill.exe" or from Task Manager (this is funny when you see the answer to the problem).
- Stopped & disabled the "Windows Search" service.
- Stopped the Windows Media ... & Media Center ... services.
- Stopped or suspended any data fingerprinting anti-virus service.
- Stopped or suspended the general anti-virus services for storage or removables.
- Stopped & disabled all continuous imaging (backup) services.
- Stopped the Distributed Link Tracking Client service.
- Stopped all the USB services for virtualisation software (ie: VMware, Hyper-V, etc.).
- Checked that no shadow copy backup is configured to stream to the drive.
- Checked that the drive policy is set for "Quick Removal" in properties.
- Checked that no shares are configured for the drive (device or letter).
- Downloaded and run "handle.exe" or "procexp.exe" to check no handles exist (see note below list).
- Checked for the possibility that there is any malware on your PC holding files in a death grip.
- Tried the various tricks on the 'net that involve the MMC and disk management.
- Tried the various tricks on the 'net that call for issuing a "Restart" of the Server service.
- Resorted to ultimate solution and used "shutdown" to resolve it.
- Couldn't shutdown, so used "sync.exe" plus "handle.exe", then just ripped it out hoping all would be ok.
Note: The mentioned handle checkers are here : SysInternals Suite or here
Well, Windows 8.1 has a dirty little secret (v8.0 is a little more forgiving for some reason?).
If you are one of those people that like to have Task Manager running in the Systray, you have inadvertantly tripped over one of the changes between v8 and all prior versions of Windows. With the introduction of v8, you would likely have seen the nice shiny Resource Monitor that has far more features than poor old Task Manager.
Well guess what... If you have a closer look at what options are on the new version of Task Manager has far more features than its predecessors, most notably the inclusion of "Disk" and "Network" loads on the "Process" panel. Further to this, you may have noticed in v8, Task Manager defaults to a "Paused" state instead of the old "Normal" refresh cycle.
Congratulations, you've found the narky little pest that is constantly (well, at your refresh rate) accessing the disks to open the NTFS metadata (among other things).
If you just shutdown Task Manager and retry ejecting the USB drive... VOILA! ... You can relaunch Task Manager after the drive is physically unplugged.
In theory, once the drive has been unmounted, only an explicit mount request should undo this process, but as most UNIX-heads will tell you, "mount" is just a software command for the relevant disk controller, so Task Manager's "Disk" monitoring may be able to re-issue the request while the USB controller can still see the USB device on the bus.
Exceptions:
- Any variant of FAT seems unaffected (Your experience may differ from mine).
- Most SSD or other FLASH/EEPROM technology appears impervious (possibly due to speed or driver).
- NAS units on USB connections may be ok, but it will depend on how the driver handles the NAS unit.
- Some USB drive controllers isolate the drive on demand resulting in SSD-like response & behaviour.
- Wireless drives may behave like NAS units and subsequently be "ok", but didn't have one on hand to test.
Footnote: I refer to "USB" drives throughout, but the issue probably also afflicts eSATA and Firewire drives. Note also that we're talking about traditional "disk" drives (aka "spinning rust" technology), so some aspects are specific to that technology.
Disclaimer: All referenced trademarks are the property of their respective owners. Any use or misuse of the page content is entirely at your own risk. Backup completely and often. If you don't understand any of the commentary or instructions, DON'T DO ANYTHING ! GET HELP !!
Please direct all gripes, complaints or whinges to...
... where they will be ignored in due course. ;-)
If you represent an entity or representative with suitable authority to request removal of a link or content,
I'm sure you have the resources to determine my personal email and direct the appropriate correspondence.
Copyright ©2014-2015 RPGC