Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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, Windows 7 only flushes the cache, but doesn't turn off the drive.

How can I make Windows 7 behave like Windows XP?

share|improve this question

marked as duplicate by grawity, random May 22 '12 at 3:09

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

By "turn it off" do you mean power the drive down, or just unmount it? Once the drive's cache is flushed you can just turn it off safely, and Windows should just unmount it at that point. – fluffy May 14 '12 at 6:11
@fluffy: Maybe my English was ambiguous, but by "turn it off" I definitely meant "power it down" lol. I don't really believe in the "you can just turn it off safely" thing, because the drives still spin when I take them out, and -- because some drives don't flush their caches correctly -- I'd want to power them down before taking them out. – Mehrdad May 14 '12 at 6:17
Okay, my confusion was because I've never had an external USB hard drive that could be powered down by the host computer - the host computer can just unmount it, and then the operator flips a physical switch and unplugs it, or whatever. I don't doubt there are drives with software-controlled power out there, but they're definitely in the vast minority. Modern drives are designed with power interruptions in mind though; self-parking drives aren't exactly new. :) – fluffy May 14 '12 at 6:28
@fluffy: Huh? There's definitely an ATA/SCSI power command that turns off a drive. And XP definitely turns off my drive when I click "safely remove" (you can hear the click, which, in Windows 7, only happens when you disconnect the cable). I don't think it's a minority of the drives... it's just a Windows 7 thing... (And yes, I know it might be doing self-parking, but I don't like risking the cache contents getting discarded. Just being paranoid I guess.) – Mehrdad May 14 '12 at 6:36
How does cutting the power at the port differ from unplugging the cable? The effect on the drive would be identical in both cases. The only situation where cutting the power might be important is a drive that slides into a housing, where you might want to cut power before physically moving the drive. (In fact, if you pull the cable to cut power you're able to give the drive as much time as you feel it needs to shut down.) – Daniel R Hicks May 14 '12 at 11:23
up vote 11 down vote accepted

In Windows XP, the "Safely Remove" feature would completely turn off power to the associated USB port. (If the device is self-powered, its behavior depends on the device itself, in response to the comments above.)

In Windows Vista and above, this feature has been intentionally removed:

Microsoft Support: The Safely Remove Hardware feature does not stop power from being provided to a USB device in Windows Vista

Cause: The Safely Remove Hardware feature does not stop power from being provided to a USB device in Windows Vista. By design, the port to which the device is attached is not suspended in Windows Vista when the device is soft removed.

This is how you can enable it per device VID&PID or globally:

Microsoft Support: USB Port Remains Active for Disabled or Safely Removed USB Device

Resolution: To work around this problem, a registry value can be set to cause Windows Vista, Windows Server 2008, Windows 7, and Windows Server 2008 R2 to revert to the Windows XP and Windows Server 2003 behavior of disabling the USB hub port to which a Soft Removed USB device is attached. This workaround can be applied on a per-device basis (for all instances of a specific device (Vendor ID, Product ID, and Revision), or globally (for all enumerated USB devices).


Global Setting

To apply the workaround globally for all enumerated USB devices, add a REG_DWORD value named DisableOnSoftRemove that has a value of 1 to the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\usbhub\HubG

Use the following command to add the global setting value:

reg add HKLM\SYSTEM\CurrentControlSet\Services\usbhub\HubG /v DisableOnSoftRemove /t REG_DWORD /d 1 /f
share|improve this answer
This is a freaking awesome answer! It worked perfectly, thanks! :D – Mehrdad May 14 '12 at 8:58

I've tested this on Firewire and eSATA drives (well, the same drive but using those 2 different connectors), and the behavior on my Seagate drive is to simply unmount the drive, causing the external drive to behave as if the data cable had been disconnected—the HDD's light begins to dim and then turns off.

However, the drive itself doesn't actually turn off, even though it may appear to be (no spinning, no sound, no lights). This is so that the standard re-mounting procedure in Windows (disconnecting and reconnecting the Firewire/eSATA cable) will allow the drive to be re-mounted.

I believe the procedure on Macs is slightly different, and you can just re-mount it in software. (You can probably do the same thing in Windows 7 by disabling/re-enabling the USB/FireWire/SATA device in Device Manager, but it's kind of a pain.) But this too would require that the drive doesn't get shut off when you eject the disk.

As a side note, many external HDDs, such as mine, do not have a power switch. The only way to actually turn off its power is to disconnect the power cable. And the way to turn it on is to simply plug the power cable in. Otherwise, the HDD just goes into standby or sleep mode.

share|improve this answer

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