Members
  • Total Members: 12818
  • Latest: martin
Stats
  • Total Posts: 28534
  • Total Topics: 8240
  • Online Today: 1023
  • Online Ever: 51419
  • (01. January 2010., 10:27:49)












Author Topic: USB Drive or Flash Problems? How to Cleanup and Remove Old USB Storage Drivers  (Read 5370 times)

0 Members and 1 Guest are viewing this topic.

Pez

  • SCF VIP Member
  • *****
  • Posts: 723
  • KARMA: 116
  • Gender: Male
  • Pez
USB Mass Storage devices include:

 * External hard drives and optical drives, including CD and DVD drives
 * Portable flash memory devices
 * Digital cameras
 * Digital audio players & portable media players
 * Card readers
 * Portable gaming systems
 * Mobile phones

One possible cause of USB Mass Storage Device problems: Windows can get "confused" by all the old (and sometimes conflicting) USB storage driver data that tends to collect and remain installed on a PC
 
Here's why: By default, Device Manager only displays drivers of connected devices so the drivers you see in Device Manager aren't the only USB storage drivers that are really there! You probably still have drivers installed for devices you once connected then disconnected long ago!

 •Windows installs drivers for a USB Mass Storage device when you first plug it in to a port
 •Windows sometimes installs the same driver for the same device each time you connect it to a different port!
 •Problem is
 ==> These drivers aren't uninstalled when you simply unplug the device but only when you uninstall the device (or each device instance per port)
 ==> Driver data associates devices with drive letters and ports. Port and drive letter conflicts may occur as you start unplugging/replugging devices

 You may be surprised at just how many old USB drivers are actually still installed on your machine!
 
Steps to Safely Cleanup and Remove old USB Mass Storage Drivers on your PC

1.Shut down your computer. Unplug your USB storage devices: USB Disks, flash, cams, CD/DVD, etc.
 ==> Other USB devices like keyboards, mice and LAN adapters can stay plugged in
 2.Boot computer back up. Click for how to determine whether you are running 32 or 64 bit Windows
 3.Download drivecleanup.zip, unzip and save to your desktop. Move the 32 or 64 bit version of DriveCleanup.exe to C:\Windows\System32
 4.Open a command prompt window as follows:
 ==> For XP only: You must have Admin privileges. Click Start->Run, enter cmd
==> For Vista and Windows 7: You must open an elevated command prompt window!
 5.After the command prompt enter: drivecleanup.exe
 ==> Your command prompt window should be similar to my example below.
 ==> If, instead, you get an error message like Command not recognized it means you didn't move Drivecleanup.exe to the right directory
 6.Reboot. Now just replug your devices for fresh clean device reinstalls!


Code:

C:\>drivecleanup.exe
DriveCleanup V0.7.0 (Win32)
Uninstalls non present storage volumes, Disk, CDROM, Floppy devices
and deletes their registry items
Freeware by Uwe Sieber - www.uwe-sieber.de

removing USB device 'USB\VID_0000&PID_0000\7&2285BC2A&0&1'
 OK
removing USB device 'USB\VID_0411&PID_00A2\WDC_WD2500_____WD-WCANKE590248'
 OK
removing USB device 'USB\VID_0BB4&PID_0C02&MI_00\6&2DD32CD2&1&0000'
 OK
removing USB device 'USB\VID_1058&PID_0702\575845313037453632383432'
 OK
removing USB device 'USB\VID_1058&PID_0702\7274787265616E206C2E3132'
 OK
removing USB device 'USB\VID_1058&PID_0702\F53A39F2AB75F5CDC4B6ABC3'
 OK
removing Disk 'USBSTOR\DISK&VEN_HTC&PROD_ANDROID_PHONE&REV_0100\7&1012C922&1&HT9A2HF00558&0'
 OK
removing Disk 'USBSTOR\DISK&VEN_WD&PROD_1600BEVEXTERNAL&REV_1.02\575845313037453632383432&0'
 OK
removing Disk 'USBSTOR\DISK&VEN_WD&PROD_N_EXTEREXTERNAL&REV_1.02\7274787265616E206C2E3132&0'
 OK
removing Disk 'USBSTOR\DISK&VEN_WD&PROD_N_EXTEREXTERNAL&REV_1.02\F53A39F2AB75F5CDC4B6ABC3&0'
 OK
removing Disk 'USBSTOR\DISK&VEN_WDC_WD25&PROD_00JS-00NCB1&REV_\WDC_WD2500_____WD-WCANKE590248&0'
 OK
removing volume 'STORAGE\REMOVABLEMEDIA\8&3152D400&0&RM'
 OK
removing volume 'STORAGE\REMOVABLEMEDIA\9&29B6E3D1&0&RM'
 OK
removing volume 'STORAGE\REMOVABLEMEDIA\9&BC53371&0&RM'
 OK
removing volume 'STORAGE\VOLUME\1&30A96598&0&SIGNATURE44FDFE06OFFSET7E00LENGTH2543150400'
 OK
removing volume 'STORAGE\VOLUME\1&30A96598&0&SIGNATUREC12C6F64OFFSET7E00LENGTH3A388A8400'
 OK
Regkey delete HKLM\System\MountedDevices\\??\Volume{91a9bc60-2535-11df-b96f-00256495135f}
 OK
Regkey delete HKLM\System\MountedDevices\\??\Volume{91a9bc61-2535-11df-b96f-00256495135f}
 OK
Regkey delete HKLM\System\MountedDevices\\??\Volume{dce40c14-30ad-11df-b973-00256495135f}
 OK
Regkey delete HKLM\System\MountedDevices\\??\Volume{d4227929-32c8-11df-b97c-00256495135f}
 OK
Regkey delete HKLM\System\MountedDevices\\??\Volume{9827b60e-34f1-11df-b983-00256495135f}
 OK
Regkey delete HKLM\System\MountedDevices\\DosDevices\Z:
 OK
Regkey delete HKLM\System\MountedDevices\\DosDevices\H:
 OK
Regkey delete HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\H
 OK
Regkey delete HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\Z
 OK

Removed 6 USB devices
Removed 0 USB hubs
Removed 5 Disk devices
Removed 0 CDROM devices
Removed 0 Floppy devices
Removed 5 Storage volumes
Removed 9 Keys from registry


C:\>


The DriveCleanup V0.8.1 tool's documentation.



DriveCleanup V0.8.1 - removes non present drives from the device tree
Freeware by Uwe Sieber (c) 2007-2011

Removes from the device tree non present
- USB hubs
- USB mass storage devices
- USB Disk devices
- USB CDROM devices
- USB Floppy devices
- USB Storage Volumes
- USB WPD devices (Vista, Win7 only)

and their linked registry items under

HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceClasses
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\CPC\Volume


Usage:

DriveCleanup [-t] [-n] [-u] [-d] [-c] [-f] [-v] [-r]

no params:  cleanup all
-t          test mode
-n          no wait when finished
-u          only USB mass storage devices
-d          only USB Disk devices
-c          only USB CDROM devices
-f          only USB Floppy devices
-v          only USB Storage Volume devices
-r          only registry items of USB volumes
-w          only USB WPD devices

Called without parameter it removes all types of devices listed above and cleans the registry.

Samples:

DriveCleanup -t
test mode, lists devices and registry items to remove

DriveCleanup
removes non present devices related to drives and their registry items

DriveCleanup -v -d
removes non present USB Storage Volumes and USB Disks


Works under Windows 2000, XP and higher only. Under x64 edtitions of Windows
only the x64 version works.

Administrator previleges are required for cleanup.

Their is two easy way to configure a system!
Every thing open and every thing closed.
Every thing else is more or less complex.

Start Turfing ! http://scforum.info/index.php/topic,8405.msg21475.html#msg21475

Samker's Computer Forum - SCforum.info





Samker

  • SCF Administrator
  • *****
  • Posts: 7206
  • KARMA: 291
  • Gender: Male
  • Whatever doesn't kill us makes us stronger.
    • SCforum.info - Samker's Computer Forum

Really great and useful topic...  :up:

Thanks Pez!

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
Second Anti-Bot trap, type or simply copy-paste below (only the red letters):www.scforum.info:

Enter your email address to receive daily email with 'SCforum.info - Samker's Computer Forum' newest content:

Terms of Use | Privacy Policy | Advertising