I am currently developing an application which

copies all files from USB, when detected, to my local hard-drive

As I mentioned that I'm still developing, so I have to plug-in and plug-out my USB again and again to test my code.

Is there a way to detect USB again after Safely Remove Hardware?


1 Answer 1


Answer from kolypto on ServerFault:

When you "safely remove" a USB HDD - it stops spinning. I believe there's a USB command to turn the device off (sleep mode, actually). So the thing you need is how to turn the device back on.

The application Safelyremove has a command-line tool that is capable of returning the device back: "Returning just stopped device back!".

It is shareware, but it works :)

  • Thanks @Keltari and kolypto. You saved my USB and my laptop's USB port.
    – Umair Ayub
    Mar 20, 2014 at 14:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.