HDD GURU FORUMS
http://forum.hddguru.com/

CMD/Script to find what SW "The device is currentyl in use"
http://forum.hddguru.com/viewtopic.php?f=7&t=40622
Page 1 of 1

Author:  samstown [ November 19th, 2020, 15:56 ]
Post subject:  CMD/Script to find what SW "The device is currentyl in use"

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
Eject_USB_properly.PNG [ 114.53 KiB | Viewed 25724 times ]

Author:  fzabkar [ November 19th, 2020, 16:28 ]
Post subject:  Re: CMD/Script to find what SW "The device is currentyl in u

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

Author:  samstown [ November 19th, 2020, 16:50 ]
Post subject:  Re: CMD/Script to find what SW "The device is currentyl in u

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.

Author:  pepe [ November 19th, 2020, 19:04 ]
Post subject:  Re: CMD/Script to find what SW "The device is currentyl in u

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

pepe

Author:  fzabkar [ November 19th, 2020, 19:48 ]
Post subject:  Re: CMD/Script to find what SW "The device is currentyl in u

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.

Author:  pepe [ November 20th, 2020, 8:16 ]
Post subject:  Re: CMD/Script to find what SW "The device is currentyl in u

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

pepe

Author:  abolibibelot [ December 17th, 2020, 2:22 ]
Post subject:  Re: CMD/Script to find what SW "The device is currentyl in u

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.

Author:  fzabkar [ December 17th, 2020, 2:50 ]
Post subject:  Re: CMD/Script to find what SW "The device is currentyl in u

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

Author:  Spotmen [ December 17th, 2020, 16:14 ]
Post subject:  Re: CMD/Script to find what SW "The device is currentyl in u

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

Author:  biorpg [ June 11th, 2021, 6:38 ]
Post subject:  Re: CMD/Script to find what SW "The device is currentyl in u

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.

Author:  HaQue [ July 6th, 2021, 21:23 ]
Post subject:  Re: CMD/Script to find what SW "The device is currentyl in u

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

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/