12

I use a USB key which is encrypted with BitLocker to store various data. I keep that key with me all the time.

What happens all the time is that I send my home computer to hibernate without ejecting the USB key first. Then I unplug the key and take it with me to work. When I get home, I resume my Windows session and even though the key is not plugged in, the drive still appears as mounted on the system.

I can also unmount the non-existing device with mountvol, but that only removes the drive letter. Windows will still think the device is plugged in. When I plug the key in, nothing happens.

The device's class ID is listed in mountvol output, but the device is not listed in the Disk Management panel.

Update: So the problem finally appeared again and I tried all the suggestions. Weavers suggestion seemed very promising but yielded no results. However, while browsing through Device Manager, I noticed that the device in question is still listed under "Portable Devices" and it is not greyed out.
Trying to uninstall that device gives me a "Confirm Device Uninstall" window that tells me it is uninstalling the device but never finishes. At this point, plugging the device into another USB slots has no effect.

The never-ending uninstall dialog

6 Answers 6

2

Steps to remove "ghost" devices from a system

Open command prompt (CMD) and do the following steps:

  • Type set devmgr_show_nonpresent_devices=1
  • Type start devmgmt.msc
    Device manager should open.
  • Select View -> Hidden Devices
  • Open up Disk Drives
  • Remove any faded out items which match with your USB drive's identifier

Reboot is not necessary in most cases, but might be a good idea.

1
  • I like the approach, but without a reboot, the non-existent device does not disappear from the "My Computer" explorer view. Even though I removed exactly that device from the list in Device Manager. Dec 6, 2011 at 9:20
1

Plug the device to different USB port. Then Windows realizes it's indeed a newly plugged device, and the old ghost gets banished.

1
  • That never worked for me, as Windows still thinks the device is already plugged it. Plugging it in again had no effect. Aug 9, 2011 at 17:28
1

Check out USBDeview from Nirsoft. It has the ability to scan your system for all USB related devices and remove any defunct USB drivers. You probably might want to remove the USB drive first before using the tool.

http://www.nirsoft.net/utils/usb_devices_view.html

USBDeview is a software that lists all USB devices that connected to your computer, and allows you disable, enable or uninstall them.

1
  • USBDeview did not list any devices that resemble the one in question. I assume this is at least partly due to the fact that I removed lots of devices through device manager already. Dec 6, 2011 at 9:27
0

Try clicking on "start button" -> right click "computer" -> click "properties" -> click "device manager" (in left column) -> then click the "scan for hardware changes" button ... This should refresh you usb key issue... I have looked for a way or script to run this buttons function automatically, but havent come up with much. If you find something , let me know!

Good luck!

3
  • 2
    you can use Microsoft’s DevCon tool: > devcon rescan
    – Synetech
    Jul 17, 2011 at 18:30
  • I'll give that a try the next time the issue happens. Thanks. Jul 18, 2011 at 9:56
  • Scan for hardware changes did not remove the non-existent device in my case. Dec 6, 2011 at 9:15
0

This might sound a little odd... but you shouldn't experience this issue if you shut your machine down fully instead of hibernating it.

When you hibernate, your machine attempts to remember everything "exactly" as is was plugged in for when you resume your session. When you use your USB away from your machine during the day, changes will be made to files stored in the hidden folder labelled system volume information on your USB, which your computer will have issues with when you start it back up.

Shutting down your machine fully will clear all this information about your USB from the systems memory, so it will be unaware of any changes and will assume that these files should be the way they are. It should also help speed up your system, as hibernation is quite resource intensive.

1
  • At the very least he should be ejecting the device before suspending. He could also not even suspend it.
    – Ramhound
    Dec 6, 2011 at 12:19
0

go to disk management then right click to that particular drive and select option change drive letter and path after that you will see Remove option and do it. problem resolved

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .