Home > windows > Detect USB after Safely Remove USB

Detect USB after Safely Remove USB

March 20Hits:5
Advertisement

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?

Answers

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 :)

Tags:windows, usb

Related Articles

  • Detect USB after Safely Remove USBMarch 20

    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 dete

  • What is the rationale behind safely removing USB media from windows PCs?

    What is the rationale behind safely removing USB media from windows PCs? September 18

    This question already has an answer here: Should I unmount a USB drive before unplugging it? 10 answers Will unplugging a USB key without safely removing it cause problems? 2 answers Quite often when I'm in a rush, I automatically pull out a USB pend

  • how to safely remove usb storage?October 18

    My android 2.3 tablet supports usb. It mounts all usb drives. However there is no mechanism for unmounting in the settings menu. On direct unplugging usb devices, i get notification " usb mass storage device removed unexpectedly Is there is an app fo

  • Unable to safely remove usb-driveJuly 23

    I am unable to safely remove my Nokia E63 (connected via cable). Error detaching: helper exited with exit code 1: Detaching device /dev/sdc USB device: /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2) SYNCHRONIZE CACHE: FAILED: No such file or di

  • Problem to safely remove USB dongleOctober 17

    I use Micromax USB data card device to establish internet connection. But the device can't be removed safely by using the option " safely remove device". How can it solve? --------------Solutions------------- "Safely remove device" is

  • Windows 7 safely remove USB multiple disk enclosure from command lineJuly 31

    I want to eject a USB multi-disk enclosure from the command line or with a tool that offers command line support. I can find information about ejecting a USB drive but nothing that seems to support multi-disk enclosures (or at least I don't see how i

  • Unable to safely remove usb external hard drive

    Unable to safely remove usb external hard driveNovember 1

    I'm using Ubuntu 14.04 LTS, and connecting USB Flash Drives and External USB Hard Drives regular basis, I'm able to Eject my USB Flash Drive but I can't Eject or Safely Remove the External USB Hard Disks, It's seems Ubuntu provide only Unmount featur

  • Removing/hiding the option to "safely remove USB devices" via GPO and registryMay 4

    I ave already gone through http://serverfault.com/questions/12833/how-to-prevent-windows-from-safely-removing-hardware and it has a registry based solution for WinXP, however what I am after is: 1. a GPO based solution 2. windows 7, 2003 and 2008 as

  • How to unmount (safely remove) USB disk/pendrive from Windows 8 after opening file in Metro ApplicationJanuary 21

    I have problem with unmounting (safely removal) of disk/pendrive from Windows 8 after opening some files from Metro application: Attach disk Open file (say photo) from Metro Application Move to different screen in Metro Application Change to desktop

  • How do I access a digital camera drive via usb after safely removing it?July 11

    In Ubuntu 11.04, I unwisely right clicked and "safely unmounted the drive" of my Sony HDR-XR150 connected via USB. Now, when I plug my digital camera into my computer via USB, Ubuntu either doesn't register the new drive, or flashes the "re

  • Safely remove USB modem?July 23

    In short: before unplugging a USB modem, should I take any action to make the removal safe? I received a HUAWEI-367, it worked great the first day. The next morning the modem was very warm and had no internet connection. I tried to re-connect but it

  • What is the difference between Eject and Safely Remove DeviceDecember 7

    Taking this question and it's answer into account What is the difference between "Unmount", "Eject", "Safely Remove Drive" and the eject icon? I ask: Why do both options appear if they are the same. Is there some kind of diff

  • Don't want "Safely Remove Hardware" procedure under Windows XPJanuary 30

    I am using a PC with Windows XP and a laptop with Windows 7. Under Windows 7, I can simply physically remove any USB stick. Files are written directly, when this is finished I just pull out the USB stick. Under Windows XP, I have to "Safely Remove Ha

  • Turn off drive after "Safely Remove"? May 14

    Possible Duplicate: USB hard drive doesn't graceful power off after eject on Windows 7 When you click "Safely Remove Hardware" to disconnect an external hard drive, Windows XP flushes the drive's cache and turns it off. On the other hand, Window

  • Unable to detach (spindown) external USB HDD in 15.04; Safely Remove just remounts it backJuly 12

    I have external USB 3.0 HDD with several partitions on it, and I can't safely remove (spin down) it before unplugging in Ubuntu 15.04. I can run "Unmount" on each partition; but after unmounting all partitions disk is still spinning (it vibrates

  • Is there a quick way to safely remove a USB flash drive under Windows?April 30

    USB flash drives are an essential tool for any admin but I find the process of safely removing a flash drive under Windows to be inconvenient (click the tray icon, find your drive in the too-much-information USB bus tree, click stop, etc...). I know

  • Do not get 'Safely remove' option in Tray for USB storage devicesAugust 9

    I had done some tweaks in service settings (Disabled some as I thought it is not needed). Now, I am not getting the option to safely remove mass storage device when I click the icon on the system tray. I tried enabling some of the services, but it di

  • How to safely remove a USB drive when "Windows can't stop your 'Generic volume' device because a program is still using it."?September 6

    With Windows XP and Windows Vista, I try to remove an external USB hard drive, but usually get the message ""Windows can't stop your 'Generic volume' device because a program is still using it.". I tried closing all programs on the desktop,

  • Hide internal USB device from "Safely remove hardware"

    Hide internal USB device from "Safely remove hardware"November 8

    I have a card reader in my PC (Windows Vista). It is connected to internal USB port, so it never gets disconnected. Since it is USB, device shows up in "Safely Remove Hardware" dialog and explorer context menu. It is easy to disconnect device by

  • How to "Un-Eject" a USB Flash drive - Eject is easy (safely remove hardware), but what about Un-Eject or Reconnect?

    How to "Un-Eject" a USB Flash drive - Eject is easy (safely remove hardware), but what about Un-Eject or Reconnect? March 20

    This question already has an answer here: How do I get Windows to re-attach a USB device without having to plug it in again? 4 answers There are times after I eject a USB Flash drive, I want to copy some more files over to the USB Flash drive. In thi

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.473 s.