|
| | |||||||
| Windows Vista Discuss the different versions of Windows Vista, Fuji, or Vienna |
| | LinkBack | Thread Tools |
| |||
| Vista refuses to safely remove external usb hard drive I have no programs accessing anything on my external usb hd, and no explorer windows or command prompts running. The activity light on the drive shows no activity. When I click the "safely remove hardware" icon in the task tray and click "safely remove usb mass storage device - drive (f:)" it says "Windows can't stop your 'generic volume' device because it is in use." and immediately the external drive goes into a flurry of activity with its activity light staying on almost constantly. Windows resource monitor shows that svchost is the culprit, reading the drive at about 2MB/sec continuously. Sysinternals process explorer confirms that nothing besides "System" and "svchost.exe" have any handles open for the drive. The disk activity continues for several minutes, then stops. If I try "safely remove hardware" again, it again refuses, and goes into another flurry of disk activity. The result is that I can't safely remove the device, unless I shut down the machine first, which kind of defeats the point of usb drives being hot pluggable. This is infuriating. |
| |||
| Re: Vista refuses to safely remove external usb hard drive Roof Fiddler, I've seen this happening on XP too every now and then, so there's nothing new in this behavior on Vista. Two ways I usually troubleshoot/workaround this issue: configuring drive for quick removal and tracking down offending process. 1. To configure drive for quick removal, Open Device Manager; expand "Disk drives" node; double click drive in question; on the Policies tab make sure "Optimize for quick removal" radio-button is checked. This will slow down file operations on the drive but will allow you to remove it at any moment without even using (sometimes failing) "Safe Removal" function. 2. Two usual suspects that can keep your USB drive busy are System Restore and Indexing. I'd check their settings to see if your system configured to either create restore points for this drive or to index its contents for instant search. Also, I'd find out exact instance of svchost that has handles open to this drive and which services are running under this instance. I use Sysinternals' handle.exe and built-in tasklist.exe command-line utilities for this. First, you run handle DRIVE: to get PIDs of processes that have handles open on the drive. Then you can run tasklist /SVC /FI "PID eq PROCESS_ID" where PROCESS_ID is the PID you've got from handle. If it's svchost that has handles open, you'll get the list of services that run under this instance of svchost. To get friendly names of services, you can use sc.exe built-in utility: sc qc SERVICE_NAME | find /i "DISPLAY_NAME" where SERVICE_NAME is the name you've got from taskilst output. Example: ======================8<======================== C:\>handle H:\ Handle v3.2 Copyright (C) 1997-2006 Mark Russinovich Sysinternals - [url]www.sysinternals.com[/url] System pid: 4 1C8: H:\$Extend\$RmMetadata\$TxfLog\$TxfLogContainer00... System pid: 4 270: H:\$Extend\$RmMetadata\$TxfLog\$TxfLog.blf System pid: 4 27C: H:\$Extend\$RmMetadata\$TxfLog\$TxfLogContainer00... System pid: 4 288: H:\$Extend\$RmMetadata\$Txf System pid: 4 368: H:\System Volume Information\{3808876b-c176-4e48-b7... System pid: 4 36C: H:\System Volume Information\{477ccf48-a888-11db-b5... svchost.exe pid: 1148 5BC: H:\$Extend\$ObjId svchost.exe pid: 1148 5C4: H:\System Volume Information\tracking.log C:\>tasklist /SVC /FI "PID eq 1148" Image Name PID Services =============== ========= ======================================= svchost.exe 1148 AudioEndpointBuilder, CscService, EMDMgmt, hidserv, Netman, PcaSvc, SysMain, TabletInputService, TrkWks, UmRdpService, UxSms, WdiSystemHost, WPDBusEnum, wudfsvc C:\>sc qc AudioEndpointBuilder | find "DISPLAY_NAME" DISPLAY_NAME : Windows Audio Endpoint Builder C:\>sc qc CscService | find "DISPLAY_NAME" DISPLAY_NAME : Offline Files C:\>sc qc EMDMgmt | find "DISPLAY_NAME" DISPLAY_NAME : ReadyBoost C:\bin> ======================8<======================== Hope this helps, -- Alexander Suhovey "Roof Fiddler" <fiddler@roof.com> wrote in message news:OxkAL$pQHHA.4448@TK2MSFTNGP04.phx.gbl...[color=blue] >I have no programs accessing anything on my external usb hd, and no >explorer windows or command prompts running. The activity light on the >drive shows no activity. When I click the "safely remove hardware" icon in >the task tray and click "safely remove usb mass storage device - drive >(f:)" it says "Windows can't stop your 'generic volume' device because it >is in use." and immediately the external drive goes into a flurry of >activity with its activity light staying on almost constantly. Windows >resource monitor shows that svchost is the culprit, reading the drive at >about 2MB/sec continuously. Sysinternals process explorer confirms that >nothing besides "System" and "svchost.exe" have any handles open for the >drive. The disk activity continues for several minutes, then stops. If I >try "safely remove hardware" again, it again refuses, and goes into another >flurry of disk activity. The result is that I can't safely remove the >device, unless I shut down the machine first, which kind of defeats the >point of usb drives being hot pluggable. This is infuriating. >[/color] |
| |||
| Re: Vista refuses to safely remove external usb hard drive Roof Fiddler wrote:[color=blue] > I have no programs accessing anything on my external usb hd, and no > explorer windows or command prompts running. The activity light on the > drive shows no activity. When I click the "safely remove hardware" icon > in the task tray and click "safely remove usb mass storage device - > drive (f:)" it says "Windows can't stop your 'generic volume' device > because it is in use." and immediately the external drive goes into a > flurry of activity with its activity light staying on almost constantly. > Windows resource monitor shows that svchost is the culprit, reading the > drive at about 2MB/sec continuously. Sysinternals process explorer > confirms that nothing besides "System" and "svchost.exe" have any > handles open for the drive. The disk activity continues for several > minutes, then stops. If I try "safely remove hardware" again, it again > refuses, and goes into another flurry of disk activity. The result is > that I can't safely remove the device, unless I shut down the machine > first, which kind of defeats the point of usb drives being hot > pluggable. This is infuriating.[/color] This is a known bug in XP that seems to be still present in Vista. When a save removal is tried Windows can send a message about that and all processes that hold open but non essential handles should close them now. But the indexing service doesn't care. My commandline tool RemoveDrive can prepare a drive for save removal: [url]http://www.uwe-sieber.de/files/removedrive.zip[/url] Started with parameter -i it stops the indexing service for a moment. Horrible workaround, but it works... Sample: removedrive u: -i For stopping a service admin previleges are required. Greetings from Germany Uwe |
| |||
| Re: Vista refuses to safely remove external usb hard drive "Alexander Suhovey" <asuhovey******.com> wrote in message news:E3F736DD-437B-4E98-B08B-0FEABFD9E608@microsoft.com... [snip][color=blue] > 1. To configure drive for quick removal[/color] [snip][color=blue] > 2. Two usual suspects that can keep your USB drive busy are System Restore > and Indexing.[/color] [snip][color=blue] > handle DRIVE:[/color] [snip][color=blue] > tasklist /SVC /FI "PID eq PROCESS_ID"[/color] [snip][color=blue] > sc qc SERVICE_NAME | find /i "DISPLAY_NAME"[/color] Very useful info! Thanks. I'd already rebooted the machine in order to safely remove the drive by the time I got your message, but I tried your suggestions just now and the svchost with handles open on the drive has the services Windows Audio Endpoint Builder ReadyBoost Infrared monitor service Network Connections Program Compatibility Assistant Service Superfetch Tablet PC Input Service Distributed Link Tracking Client Desktop Window Manager Session Manager Diagnostic System Host WLAN AutoConfig Portable Device Enumerator Service The only services in that list I can think might be using the drive are readyboost and superfetch. The drive is a regular hard drive, not a flash drive, so readyboost wouldn't be using it, so that leaves just superfetch. But I don't know if this current service list is the same as it was yesterday when I was unable to safely remove the drive, and I can't test now because I'm using the drive. If I'm again unable to remove the drive the next time I try, I'll check the services again and post the list. The drive is not set "Optimize for quick removal" because even if it were I wouldn't want to remove it without successfully using the "safe removal" function. Using optimize for quick removal might prevent filesystem corruption when I just unplug it with no warning, but it won't prevent potential data loss or other problems with programs which actually have handles open on the drive for legitimate reasons. I guess I could manually check the handles every time before yanking the drive but I really want to be able to use the "safe removal" function as an easy reminder that I might have forgotten to close some file I had open on the drive. System Restore is turned off, and indexing is not enabled for this drive. |
| |||
| Re: Vista refuses to safely remove external usb hard drive "Roof Fiddler" <fiddler@roof.com> wrote [color=blue][color=green] >> 2. Two usual suspects that can keep your USB drive busy are System >> Restore and Indexing.[/color][/color] Will Vista stop turning System Restore on every time I connect a USB drive? If it will, that's reason enough to move on from WinXP in my book. -- Bob [url]http://www.kanyak.com[/url] |
| |||
| Re: Vista refuses to safely remove external usb hard drive "Roof Fiddler" <fiddler@roof.com> wrote in message news:esV0zxwQHHA.1860@TK2MSFTNGP06.phx.gbl...[color=blue] > The drive is not set "Optimize for quick removal" because even if it were > I wouldn't want to remove it without successfully using the "safe removal" > function.[/color] I can see your point, but turning off write cache doesn't remove tray icon so you can still use it to safely remove your USB drive. -- Alexander Suhovey |
| |||
| Re: Vista refuses to safely remove external usb hard drive Opinicus wrote:[color=blue] > "Roof Fiddler" <fiddler@roof.com> wrote >[color=green][color=darkred] >>> 2. Two usual suspects that can keep your USB drive busy are System >>> Restore and Indexing.[/color][/color] > > Will Vista stop turning System Restore on every time I connect a USB drive? > > If it will, that's reason enough to move on from WinXP in my book.[/color] Yes, is activates it on the system volume only. Indeed unbelievable that this nonsense behaviour hasn't been fixed in five years. Uwe |
| |||
| Re: Vista refuses to safely remove external usb hard drive "Uwe Sieber" <mail@uwe-sieber.de> wrote [color=blue][color=green] >> Will Vista stop turning System Restore on every time I connect a USB >> drive? >> If it will, that's reason enough to move on from WinXP in my book.[/color] > Yes, is activates it on the system volume only. Indeed unbelievable > that this nonsense behaviour hasn't been fixed in five years.[/color] Better late than never. Where do I sign up? -- Bob [url]http://www.kanyak.com[/url] |
| |||
| Re: Vista refuses to safely remove external usb hard drive "Roof Fiddler" <fiddler@roof.com> wrote in message news:esV0zxwQHHA.1860@TK2MSFTNGP06.phx.gbl...[color=blue] > But I don't know if this current service list is the same as it was > yesterday when I was unable to safely remove the drive, and I can't test > now because I'm using the drive. If I'm again unable to remove the drive > the next time I try, I'll check the services again and post the list.[/color] I just now tried to safely remove the drive again, and Vista is refusing, so I performed the checks you suggested: C:\>handle f: Handle v3.2 Copyright (C) 1997-2006 Mark Russinovich Sysinternals - [url]www.sysinternals.com[/url] System pid: 4 C58: F:\$Extend\$RmMetadata\$TxfLog\$TxfLog.blf System pid: 4 D3C: F:\$Extend\$RmMetadata\$Txf System pid: 4 DE0: F:\$Extend\$RmMetadata\$TxfLog\$TxfLogConta iner00000000000000000001 System pid: 4 E04: F:\$Extend\$RmMetadata\$TxfLog\$TxfLogConta iner00000000000000000002 System pid: 4 EA4: F:\System Volume Information\{3808876b-c176 -4e48-b7ae-04046e6cc752} System pid: 4 EC0: F:\System Volume Information\{4efbe3e4-aeb6 -11db-883c-005056c00008}{3808876b-c176-4e48-b7ae-04046e6cc752} svchost.exe pid: 1084 920: F:\System Volume Information\tracking.log svchost.exe pid: 1084 934: F:\$Extend\$ObjId svchost.exe pid: 1084 944: F: C:\>tasklist /svc /fi "pid eq 1084" Image Name PID Services ========================= ======== ============================================ svchost.exe 1084 AudioEndpointBuilder, EMDMgmt, Irmon, Netman, PcaSvc, SysMain, TabletInputService, TrkWks, UxSms, WdiSystemHost, Wlansvc, WPDBusEnum C:\>sc qc AudioEndpointBuilder | find /i "display_name" DISPLAY_NAME : Windows Audio Endpoint Builder C:\>sc qc EMDMgmt | find /i "display_name" DISPLAY_NAME : ReadyBoost C:\>sc qc Irmon | find /i "display_name" DISPLAY_NAME : Infrared monitor service C:\>sc qc Netman | find /i "display_name" DISPLAY_NAME : Network Connections C:\>sc qc PcaSvc | find /i "display_name" DISPLAY_NAME : Program Compatibility Assistant Service C:\>sc qc SysMain | find /i "display_name" DISPLAY_NAME : Superfetch C:\>sc qc TabletInputService | find /i "display_name" DISPLAY_NAME : Tablet PC Input Service C:\>sc qc TrkWks | find /i "display_name" DISPLAY_NAME : Distributed Link Tracking Client C:\>sc qc UxSms | find /i "display_name" DISPLAY_NAME : Desktop Window Manager Session Manager C:\>sc qc WdiSystemHost | find /i "display_name" DISPLAY_NAME : Diagnostic System Host C:\>sc qc Wlansvc | find /i "display_name" DISPLAY_NAME : WLAN AutoConfig C:\>sc qc WPDBusEnum | find /i "display_name" DISPLAY_NAME : Portable Device Enumerator Service How do I find out which of those 12 services is the culprit? |
| |||
| Re: Vista refuses to safely remove external usb hard drive More info: A file which I used earlier on F is foo.tc (a truecrypt volume). Before I attempted to safely remove F, I of course dismounted foo.tc and shut down truecrypt. "handle f:" as I showed in my previous post confirms that truecrypt isn't accessing anything on F, and windows task manager's process list confirms that truecrypt isn't running, and no other program on my system uses .tc files, so nothing has any business accessing that file now. But every time I try to safely remove F, Vista refuses and simultaneously svchost.exe (PID 1084) begins reading f:\foo.tc at about 15MB/sec for several minutes. It has NO BUSINESS doing that! As I mentioned before, system restore is turned off (for all drives) and indexing is turned off for F. So one of the following services is reading f:\foo.tc for no good reason: Windows Audio Endpoint Builder, ReadyBoost, Infrared monitor service, Network Connections, Program Compatibility Assistant Service, Superfetch, Tablet PC Input Service, Distributed Link Tracking Client, Desktop Window Manager Session Manager, Diagnostic System Host, LAN AutoConfig, Portable Device Enumerator Service. How do I find out which one? |
| |||
| Re: Vista refuses to safely remove external usb hard drive "Roof Fiddler" <fiddler@roof.com> wrote in message news:eKJrahzQHHA.3440@TK2MSFTNGP03.phx.gbl...[color=blue] > More info: > A file which I used earlier on F is foo.tc (a truecrypt volume).[/color] Well, depending on TrueCrypt volume size, this may be directly related to the issue. In my experience most of problems with ejecting USB volumes on XP were related to working with big files (like ISO images or virtual hard disks). [color=blue] > So one of the following services is reading f:\foo.tc for no good reason: > Windows Audio Endpoint Builder, ReadyBoost, Infrared monitor service, > Network Connections, Program Compatibility Assistant Service, Superfetch, > Tablet PC Input Service, Distributed Link Tracking Client, Desktop Window > Manager Session Manager, Diagnostic System Host, LAN AutoConfig, Portable > Device Enumerator Service. > How do I find out which one?[/color] At this point I can only guess that this has something to do with write caching/superfetch when working with big files. Even if you dismount TrueCrypt volume and close program, there still can be data in cache waiting to be written down to spindles. One thing I'd try is sync.exe utility by Mark Russinovich. It forces all file system data to be flushed to disks, including removable ones. [url]http://www.microsoft.com/technet/sysinternals/FileAndDisk/Sync.mspx[/url] Unfortunately I cannot reproduce the problem at will so I can't say if it will actually work but I think it worth a try. And if it doesn't help, I'd still try to turn write caching off on USB disk in question to see if (1) problem goes away and (2) loss of performance is tolerable. As I mentioned earlier, you will still be able to use "Safely Remove" feature, it just will not be mandatory. -- Alexander Suhovey |
| |||
| Re: Vista refuses to safely remove external usb hard drive Vista 64 bit have solution in Microsoft, we can request a fix and it will be send by email for free I have another interesting tool which should called in cmd as shown in clip_3.jpg below, (my removable drive 500GB transcend is removed successfully only by this tool) RemoveDrive V1.9.1 - prepares removable drives for safe removal Freeware by Uwe Sieber - [url]www.uwe-sieber.de[/url] Works under Windows 2000, XP, Server 2003 and Vista only. Usage: RemoveDrive DriveSpec: [-l][-h][-w:nnnn] DriveSpec: is the drive to remove, e.g. U: or \ for the current drive [-l] loop until success [-h] show open handles (admin rights required, exprimental) [-w:nnnn] wait nnnn milliseconds before close [-d] show debug information Thanks +-------------------------------------------------------------------+ |Filename: Clip_3.jpg | |Download: [url]http://forums.techarena.in/attachment.php?attachmentid=7583|[/url] +-------------------------------------------------------------------+ -- kkumar176 ------------------------------------------------------------------------ kkumar176's Profile: [url]http://forums.techarena.in/members/kkumar176.htm[/url] View this thread: [url]http://forums.techarena.in/vista-help/668288.htm[/url] [url]http://forums.techarena.in[/url] |
| |||
| Re: Vista refuses to safely remove external usb hard drive treboreevob <guest@unknown-email.com> wrote: [color=blue] > >For anyone having this problem, I've found that if you open task >manager, click 'end process' on explorer.exe, and then click file: new >task, and enter explorer.exe, you should then be able to safely remove >your usb device. > >(sorry if this was already suggested, but I was having the same >trouble, and thought I would share what worked for me)[/color] 1) Your "solution" is an absurd one. 2) The thread you replied to died OVER TWO YEARS AGO. |
| |||
| Re: Vista refuses to safely remove external usb hard drive I've found that stopping the 'Windows Search' service solves this problem for me. Stop the service, do a 'Safely Remove' on the drive, then start it back up. Windows Search is not set up to index that drive, but it seems to prevent it from ejecting anyway, not sure why. -- f8ster ------------------------------------------------------------------------ f8ster's Profile: [url]http://forums.techarena.in/members/123212.htm[/url] View this thread: [url]http://forums.techarena.in/vista-help/668288.htm[/url] [url]http://forums.techarena.in[/url] |
| Bookmarks |
| Thread Tools | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Unable to safely remove USB external drive | larry8 | Vista Hardware | 4 | 07-06-2009 11:30 PM |
| Re: Can't safely Eject External Hard Drive | alireza | Vista Hardware | 0 | 01-19-2009 11:58 AM |
| Can't remove USB external hard drive | Ed Y | Windows Vista | 13 | 07-21-2008 08:10 PM |
| How to get external SATA drive in the Safely Remove Hardware list? | Rick Blackthorn | Windows XP | 11 | 05-10-2007 04:30 AM |
| Safely Remove icon doesn't recognize external HD | Clarence B | Vista Hardware | 0 | 04-12-2007 06:46 PM |
| New To Technology Questions? | Do You Need Help with Your Computer or Device? | Do You Need Help with this site? |