Re: What process is using my drive?

Tech-Archive recommends: Fix windows errors by optimizing your registry




Rich Pasco wrote:

RemoveDrive V0.6 - removes removable drives
Freeware by Uwe Sieber - www.uwe-sieber.de
Removing Drive F:\ (Memorex TD CLASSIC 003B USB Device)
failed
check for open files on F:\ or \Device\Harddisk2\DP(1)0-0+b
Press any key to close
C:\>

Thank you for RemoveDrive; it is nice, but it still doesn't say which
process is using my drive.

That wasn't the plan. It shows the DOS device name of the
device to remove (\Device\Harddisk2\DP(1)0-0+b).
This one you can enter in the 'Find handle' function
of Sysinternals ProcessExplorer. Usually it's enough
to take a characteristic part like 'disk2'.

Of course I would like to add these 'Find handle' function
to my tool. In fact I did it but there is an unsolved problem
that makes it freeze when it checks a certain type of handle.

The handle check is activated by the -h switch.
http://www.uwe-sieber.de/files/removedrive07.zip


Greetings from Germany

Uwe



For example, it says:

C:\>RemoveDrive.exe F:
RemoveDrive V0.6 - removes removable drives
Freeware by Uwe Sieber - www.uwe-sieber.de
Removing Drive F:\ (Memorex TD CLASSIC 003B USB Device)
failed
check for open files on F:\ or \Device\Harddisk2\DP(1)0-0+b
Press any key to close
C:\>

In this case, I had another command prompt window open with its
current drive set to F:. I tried again after closing that window:

C:\>RemoveDrive.exe F:
RemoveDrive V0.6 - removes removable drives
Freeware by Uwe Sieber - www.uwe-sieber.de
Removing Drive F:\ (Memorex TD CLASSIC 003B USB Device)
success
Press any key to close
C:\>

So what would be nice would be if RemoveDrive could give a message
more like:

Failed; process CMD.EXE has files open on F:

Thanks,

- Rich


Uwe Sieber wrote:

Rich Pasco wrote:
I have a portable hard disk attached to my my WinXP computer (Firewire
interface, if it makes a difference). If I click on the "Safely remove
hardware" icon, I get a notice telling me the Ddevice 'Generic volumne'
cannot be stopped right now. Please try stopping the device again later."

With Sysinternals ProcessExplorer you can search for open
handles:
http://www.sysinternals.com/Utilities/ProcessExplorer.html

But you have to search for the DOS device name, not for the
drive letter. My command line tool RemoveDrive shows it:
http://www.uwe-sieber.de/files/removedrive.zip

It look so:

-----------------------
C:\>RemoveDrive.exe u:

RemoveDrive V0.6 - removes removable drives
Freeware by Uwe Sieber - www.uwe-sieber.de
Removing Drive U:\ (Corsair Flash Voyager USB Device)
failed
check for open files on U:\ or \Device\Harddisk3\DP(1)0-0+8f
-----------------------

In this case it would be enough to search for 'disk3' in the
ProcessExplorer (Find -> Find Handle).


Greetings from Germany

Uwe
.



Relevant Pages

  • Re: What process is using my drive?
    ... RemoveDrive V0.6 - removes removable drives ... Freeware by Uwe Sieber - www.uwe-sieber.de ... Removing Drive F:\ (Memorex TD CLASSIC 003B USB Device) ...
    (microsoft.public.windowsxp.general)
  • Re: how do I remove a "ghost" cd rom drive
    ... "Uwe Sieber" wrote: ... Maybe it's a different malware, ... E or F drives and what you described isnt quite what I saw - tho it did have ... Macrium Image and didn't try to run the game til today. ...
    (microsoft.public.windowsxp.general)
  • Re: Q-Phone, one more time
    ... Examining the system, I found two devices in Device Manager, "Generic Flash HS-CF USB Device" and "Generic Flash HS-Combo USB Device" as installed hardware, even though there were no devices attached to USB ports. ... Upon rebooting the PC, with no USB devices attached to the PC, the USB devices reappear in device manager, and the E:\ and F:\ drive letters are allocated as removable storage drives. ... Motorola's answer is to reimage the machine, their tech supprt have no idea what registry entries its products install on the system. ...
    (microsoft.public.windowsxp.hardware)
  • Re: External hard drive crashes system
    ... didn't get two bad drives in a row, but okay, since it behooves me to do so, ... When I write "When I connect the EHD, ... It shows the model #, tells me it's a USB device, then crashes. ... a 250GB Seagate drive in an Ultra enclosure, ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: new external hard drive problems
    ... they are recognizing them as CD/DVD drives ... Computer Management> Disk Management) and see if the USB device is listed. ...
    (microsoft.public.windowsxp.help_and_support)