Forums
New posts
Search forums
News
Security News
Technology News
Giveaways
Giveaways, Promotions and Contests
Discounts & Deals
Reviews
Users Reviews
Video Reviews
Support
Windows Malware Removal Help & Support
Mac Malware Removal Help & Support
Mobile Malware Removal Help & Support
Blog
Log in
Register
What's new
Search
Search titles only
By:
Search titles only
By:
Reply to thread
Menu
Install the app
Install
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Forums
Security
Guides - Privacy & Security Tips
How to ACTUALLY safely remove ext HDD/USB in Win Vista & later
Message
<blockquote data-quote="Myna" data-source="post: 158572" data-attributes="member: 18185"><p>If you have a USB device connected to a computer running Windows Vista, Windows Server 2008, Windows 7, or Windows Server 2008 R2, and you then Disable the device in Device Manager, or Safely Remove the device using the system tray icon, you may observe one of the following symptoms:</p><ul> <li data-xf-list-type="ul">The USB device shows continued indications of activity (such as an LED that remains illuminated).</li> <li data-xf-list-type="ul">The USB device continues to receive USB packets and continues to consume power corresponding to an active device state.</li> <li data-xf-list-type="ul">Physically disconnecting the Disabled or Safely Removed USB device may, in some cases, cause an error in an active transfer to a different USB device.</li> </ul><p>These symptoms are not observed on a computer running Windows XP or Windows Server 2003 under similar conditions.</p><p></p><p><span style="font-size: 18px"><strong>CAUSE</strong></span></p><p>When a USB device is Disabled in Device Manager or Safely Removed using the system tray icon, a Remove Device request (PnP IRP IRP_MN_REMOVE_DEVICE) is issued to perform a "Soft Removal" of the USB device. The USB device is marked as Removed for Plug and Play purposes, although the device has not been physically disconnected yet.</p><p></p><p>In Windows XP and Windows Server 2003, when a USB device is marked as Removed, the USB hub port to which it is connected is Disabled. When the port is Disabled, no further USB traffic is sent to the device.</p><p></p><p>In Windows Vista, Windows Server 2008, Windows 7, and Windows Server 2008 R2, when a USB device is marked as Removed, the USB hub port to which it is connected is not Disabled. When the USB hub port remains Enabled after the USB device is marked as Removed, the Symptoms described above may occur.</p><p></p><p><span style="font-size: 18px"><strong>RESOLUTION</strong></span></p><p>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).</p><p></p><p><strong>Important</strong> This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs.</p><p></p><p><span style="font-size: 12px"><strong>Per-Device Setting</strong></span></p><p>To apply the workaround for a specific device, add a <strong>REG_DWORD</strong> value named <strong>DisableOnSoftRemove</strong> that has a value of <strong>1</strong> to the following registry subkey:</p><p><strong>HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\usbflags\vvvvpppprrrr</strong></p><p>(where <strong>vvvv</strong> is the device's Vendor ID, <strong>pppp</strong> is the device's Product ID, and <strong>rrrr</strong> is the device's Revision number).</p><ol> <li data-xf-list-type="ol">Click <strong>Start</strong>, click <strong>Run</strong>, type <strong>regedit</strong> in the <strong>Open</strong> box, and then click <strong>OK</strong> .</li> <li data-xf-list-type="ol">Locate and then click the following subkey in the registry: <br /> <strong>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\UsbFlags</strong></li> <li data-xf-list-type="ol">On the <strong>Edit</strong> menu, point to <strong>New</strong>, and then click <strong>Key</strong>.</li> <li data-xf-list-type="ol">Type the name of the new key in the following form:<br /> <strong>vvvvpppprrrr</strong><br /> where <strong>vvvv</strong> is a 4-digit hexadecimal number that identifies the vendor (idDevice from the USB Device Descriptor),<br /> <strong>pppp</strong> is a 4-digit hexadecimal number that identifies the product (idVendor from the USB Device Descriptor), and <br /> <strong>rrrr</strong> is a 4-digit binary-coded decimal number that contains the revision number of the device (bcdDevice from the USB Device Descriptor).</li> <li data-xf-list-type="ol">On the <strong>Edit</strong> menu, point to <strong>New</strong>, and then click <strong>DWORD (32-bit) Value</strong>.</li> <li data-xf-list-type="ol">Type <strong>DisableOnSoftRemove</strong> for the name of the DWORD Value, and then press ENTER.</li> <li data-xf-list-type="ol">Right-click <strong>DisableOnSoftRemove</strong>, and then click <strong>Modify</strong>.</li> <li data-xf-list-type="ol">In the <strong>Value data</strong> box, type <strong>1</strong> , and then click <strong>OK</strong>.</li> <li data-xf-list-type="ol">Exit Registry Editor.</li> </ol><p><span style="font-size: 12px"><strong>Global Setting</strong></span></p><p>To apply the workaround globally for all enumerated USB devices, add a <strong>REG_DWORD</strong> value named <strong>DisableOnSoftRemove</strong> that has a value of <strong>1</strong> to the following registry subkey:</p><p><strong>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\usbhub\HubG</strong></p><ol> <li data-xf-list-type="ol">Click <strong>Start</strong>, click <strong>Run</strong>, type <strong>regedit</strong> in the <strong>Open</strong> box, and then click <strong>OK</strong> .</li> <li data-xf-list-type="ol">Locate and then click the following subkey in the registry: <br /> <strong>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\usbhub</strong></li> <li data-xf-list-type="ol">On the <strong>Edit</strong> menu, point to <strong>New</strong>, and then click <strong>Key</strong>.</li> <li data-xf-list-type="ol">Type <strong>HubG</strong> for the name of the new key, and then press ENTER.</li> <li data-xf-list-type="ol">On the <strong>Edit</strong> menu, point to <strong>New</strong>, and then click <strong>DWORD (32-bit) Value</strong>.</li> <li data-xf-list-type="ol">Type <strong>DisableOnSoftRemove</strong> for the name of the DWORD Value, and then press ENTER.</li> <li data-xf-list-type="ol">Right-click <strong>DisableOnSoftRemove</strong>, and then click <strong>Modify</strong>.</li> <li data-xf-list-type="ol">In the <strong>Value data</strong> box, type <strong>1</strong> , and then click <strong>OK</strong>.</li> <li data-xf-list-type="ol">Exit Registry Editor.</li> </ol><p><strong></strong></p><p><strong>APPLIES TO</strong></p><ul> <li data-xf-list-type="ul">Windows Vista Ultimate</li> <li data-xf-list-type="ul">Windows Vista Ultimate 64-bit Edition</li> <li data-xf-list-type="ul">Windows Vista Enterprise</li> <li data-xf-list-type="ul">Windows Vista Enterprise 64-bit Edition</li> <li data-xf-list-type="ul">Windows Vista Business</li> <li data-xf-list-type="ul">Windows Vista Business 64-bit Edition</li> <li data-xf-list-type="ul">Windows Vista Home Premium</li> <li data-xf-list-type="ul">Windows Vista Home Premium 64-bit Edition</li> <li data-xf-list-type="ul">Windows Vista Home Basic</li> <li data-xf-list-type="ul">Windows Vista Home Basic 64-bit Edition</li> <li data-xf-list-type="ul">Windows Server 2008 Standard</li> <li data-xf-list-type="ul">Windows Server 2008 Enterprise</li> <li data-xf-list-type="ul">Windows Server 2008 Datacenter</li> <li data-xf-list-type="ul">Windows Server 2008 Service Pack 2</li> <li data-xf-list-type="ul">Windows 7 Ultimate</li> <li data-xf-list-type="ul">Windows 7 Enterprise</li> <li data-xf-list-type="ul">Windows 7 Professional</li> <li data-xf-list-type="ul">Windows 7 Home Premium</li> <li data-xf-list-type="ul">Windows 7 Home Basic</li> <li data-xf-list-type="ul">Windows Server 2008 R2 Standard</li> <li data-xf-list-type="ul">Windows Server 2008 R2 Enterprise</li> <li data-xf-list-type="ul">Windows Server 2008 R2 Datacenter</li> </ul></blockquote><p></p>
[QUOTE="Myna, post: 158572, member: 18185"] If you have a USB device connected to a computer running Windows Vista, Windows Server 2008, Windows 7, or Windows Server 2008 R2, and you then Disable the device in Device Manager, or Safely Remove the device using the system tray icon, you may observe one of the following symptoms: [LIST] [*]The USB device shows continued indications of activity (such as an LED that remains illuminated). [*]The USB device continues to receive USB packets and continues to consume power corresponding to an active device state. [*]Physically disconnecting the Disabled or Safely Removed USB device may, in some cases, cause an error in an active transfer to a different USB device. [/LIST] These symptoms are not observed on a computer running Windows XP or Windows Server 2003 under similar conditions. [SIZE=5][B]CAUSE[/B][/SIZE] When a USB device is Disabled in Device Manager or Safely Removed using the system tray icon, a Remove Device request (PnP IRP IRP_MN_REMOVE_DEVICE) is issued to perform a "Soft Removal" of the USB device. The USB device is marked as Removed for Plug and Play purposes, although the device has not been physically disconnected yet. In Windows XP and Windows Server 2003, when a USB device is marked as Removed, the USB hub port to which it is connected is Disabled. When the port is Disabled, no further USB traffic is sent to the device. In Windows Vista, Windows Server 2008, Windows 7, and Windows Server 2008 R2, when a USB device is marked as Removed, the USB hub port to which it is connected is not Disabled. When the USB hub port remains Enabled after the USB device is marked as Removed, the Symptoms described above may occur. [SIZE=5][B]RESOLUTION[/B][/SIZE] 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). [B]Important[/B] This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. [SIZE=3][B]Per-Device Setting[/B][/SIZE] To apply the workaround for a specific device, add a [B]REG_DWORD[/B] value named [B]DisableOnSoftRemove[/B] that has a value of [B]1[/B] to the following registry subkey: [B]HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\usbflags\vvvvpppprrrr[/B] (where [B]vvvv[/B] is the device's Vendor ID, [B]pppp[/B] is the device's Product ID, and [B]rrrr[/B] is the device's Revision number). [LIST=1] [*]Click [B]Start[/B], click [B]Run[/B], type [B]regedit[/B] in the [B]Open[/B] box, and then click [B]OK[/B] . [*]Locate and then click the following subkey in the registry: [B]HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\UsbFlags[/B] [*]On the [B]Edit[/B] menu, point to [B]New[/B], and then click [B]Key[/B]. [*]Type the name of the new key in the following form: [B]vvvvpppprrrr[/B] where [B]vvvv[/B] is a 4-digit hexadecimal number that identifies the vendor (idDevice from the USB Device Descriptor), [B]pppp[/B] is a 4-digit hexadecimal number that identifies the product (idVendor from the USB Device Descriptor), and [B]rrrr[/B] is a 4-digit binary-coded decimal number that contains the revision number of the device (bcdDevice from the USB Device Descriptor). [*]On the [B]Edit[/B] menu, point to [B]New[/B], and then click [B]DWORD (32-bit) Value[/B]. [*]Type [B]DisableOnSoftRemove[/B] for the name of the DWORD Value, and then press ENTER. [*]Right-click [B]DisableOnSoftRemove[/B], and then click [B]Modify[/B]. [*]In the [B]Value data[/B] box, type [B]1[/B] , and then click [B]OK[/B]. [*]Exit Registry Editor. [/LIST] [SIZE=3][B]Global Setting[/B][/SIZE] To apply the workaround globally for all enumerated USB devices, add a [B]REG_DWORD[/B] value named [B]DisableOnSoftRemove[/B] that has a value of [B]1[/B] to the following registry subkey: [B]HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\usbhub\HubG[/B] [LIST=1] [*]Click [B]Start[/B], click [B]Run[/B], type [B]regedit[/B] in the [B]Open[/B] box, and then click [B]OK[/B] . [*]Locate and then click the following subkey in the registry: [B]HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\usbhub[/B] [*]On the [B]Edit[/B] menu, point to [B]New[/B], and then click [B]Key[/B]. [*]Type [B]HubG[/B] for the name of the new key, and then press ENTER. [*]On the [B]Edit[/B] menu, point to [B]New[/B], and then click [B]DWORD (32-bit) Value[/B]. [*]Type [B]DisableOnSoftRemove[/B] for the name of the DWORD Value, and then press ENTER. [*]Right-click [B]DisableOnSoftRemove[/B], and then click [B]Modify[/B]. [*]In the [B]Value data[/B] box, type [B]1[/B] , and then click [B]OK[/B]. [*]Exit Registry Editor. [/LIST] [B] APPLIES TO[/B] [LIST] [*]Windows Vista Ultimate [*]Windows Vista Ultimate 64-bit Edition [*]Windows Vista Enterprise [*]Windows Vista Enterprise 64-bit Edition [*]Windows Vista Business [*]Windows Vista Business 64-bit Edition [*]Windows Vista Home Premium [*]Windows Vista Home Premium 64-bit Edition [*]Windows Vista Home Basic [*]Windows Vista Home Basic 64-bit Edition [*]Windows Server 2008 Standard [*]Windows Server 2008 Enterprise [*]Windows Server 2008 Datacenter [*]Windows Server 2008 Service Pack 2 [*]Windows 7 Ultimate [*]Windows 7 Enterprise [*]Windows 7 Professional [*]Windows 7 Home Premium [*]Windows 7 Home Basic [*]Windows Server 2008 R2 Standard [*]Windows Server 2008 R2 Enterprise [*]Windows Server 2008 R2 Datacenter [/LIST] [/QUOTE]
Insert quotes…
Verification
Post reply
Top