Switch to full style
Tools for hard drive diagnostics, repair, and data recovery
Post a reply

CMD/Script to find what SW "The device is currentyl in use"

November 19th, 2020, 15:56

Hello,

From time to time, I have devices showing the message on the pictures when trying to eject from USB icon in tray. Is there a way to see what process is using the ressources in W10 and macOS, I've google it but result doesn't work here. There no program open on the bar, nothing on the try except USB icon, BT, Volume, Network, Time. As I take no risk... I am shutting down W10 in such case.

Looking at Task Manager, doing ps in powershell, I see nothing.



Thanks
Sam
Attachments
Eject_USB_properly.PNG

Re: CMD/Script to find what SW "The device is currentyl in u

November 19th, 2020, 16:28

Would these tools be of any use?

https://docs.microsoft.com/en-us/sysinternals/downloads/handle
https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorer

Re: CMD/Script to find what SW "The device is currentyl in u

November 19th, 2020, 16:50

as always, thank you. I've tried process explorer, could not figured out what's going on.

I'll do more research and post my outputs here.

Re: CMD/Script to find what SW "The device is currentyl in u

November 19th, 2020, 19:04

https://www.filecroco.com/download-unlocker/

pepe

Re: CMD/Script to find what SW "The device is currentyl in u

November 19th, 2020, 19:48

pepe wrote:https://www.filecroco.com/download-unlocker/

This is the author's site:

http://www.emptyloop.com/unlocker/

He has a table of similar programs by other authors, mostly freeware.

Re: CMD/Script to find what SW "The device is currentyl in u

November 20th, 2020, 8:16

yeah, thanks, could not recall the author's site and linked one i've found.

pepe

Re: CMD/Script to find what SW "The device is currentyl in u

December 17th, 2020, 2:22

1) Download links don't seem to work on the emptyloop.com website.
2) I read years ago that Unlocker was bundled with adware/spyware/junkware ; don't know if it still applies. On Windows 7, using LockHunter which works well for the most part (sometimes it fails to completely unlock a drive because of some very stubborn system process locking it, not sure if Unlocker would fare better in such situations).
3) ProcessExplorer is much more complicated to use than those single purpose tools.
3) No clue about Mac OS.

Re: CMD/Script to find what SW "The device is currentyl in u

December 17th, 2020, 2:50

https://web.archive.org/web/20150606170928/http://www.emptyloop.com/unlocker/Unlocker1.9.2.exe

Re: CMD/Script to find what SW "The device is currentyl in u

December 17th, 2020, 16:14

Thank you for Unlocker URL, that's exactly what I was looking for.

Re: CMD/Script to find what SW "The device is currentyl in u

June 11th, 2021, 6:38

samstown wrote:as always, thank you. I've tried process explorer, could not figured out what's going on.

I'll do more research and post my outputs here.


The software being suggested here are all great for determining and resolving issues of files that are open in a process, but this issue is that of a device being held open in a process.
The reason you don't see anything in process explorer is that generally it is the Kernel that is responsible for the open device.
I sugest using a tool like https://www.uwe-sieber.de/usbtreeview_e.html for such cases, and attempt to restart the USB device from the device tree it displays. If that fails, it also offers the ability to restart each USB port, directly.

Re: CMD/Script to find what SW "The device is currentyl in u

July 6th, 2021, 21:23

IIRC there were some settings in windows to do do with write caching, maybe you can explore that in Google.
Post a reply