All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: CMD/Script to find what SW "The device is currentyl in use"
PostPosted: November 19th, 2020, 15:56 
Offline
User avatar

Joined: April 20th, 2017, 7:28
Posts: 112
Location: Switzerland
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 16047 times ]
Top
 Profile  
 
 Post subject: Re: CMD/Script to find what SW "The device is currentyl in u
PostPosted: November 19th, 2020, 16:28 
Offline
User avatar

Joined: September 8th, 2009, 18:21
Posts: 13576
Location: Australia
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

_________________
A backup a day keeps DR away.


Top
 Profile  
 
 Post subject: Re: CMD/Script to find what SW "The device is currentyl in u
PostPosted: November 19th, 2020, 16:50 
Offline
User avatar

Joined: April 20th, 2017, 7:28
Posts: 112
Location: Switzerland
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.


Top
 Profile  
 
 Post subject: Re: CMD/Script to find what SW "The device is currentyl in u
PostPosted: November 19th, 2020, 19:04 
Offline

Joined: October 3rd, 2005, 0:40
Posts: 3727
Location: Hungary
https://www.filecroco.com/download-unlocker/

pepe

_________________
Adatmentés - Data recovery
No bitcoin donations :)


Top
 Profile  
 
 Post subject: Re: CMD/Script to find what SW "The device is currentyl in u
PostPosted: November 19th, 2020, 19:48 
Offline
User avatar

Joined: September 8th, 2009, 18:21
Posts: 13576
Location: Australia
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.

_________________
A backup a day keeps DR away.


Top
 Profile  
 
 Post subject: Re: CMD/Script to find what SW "The device is currentyl in u
PostPosted: November 20th, 2020, 8:16 
Offline

Joined: October 3rd, 2005, 0:40
Posts: 3727
Location: Hungary
yeah, thanks, could not recall the author's site and linked one i've found.

pepe

_________________
Adatmentés - Data recovery
No bitcoin donations :)


Top
 Profile  
 
 Post subject: Re: CMD/Script to find what SW "The device is currentyl in u
PostPosted: December 17th, 2020, 2:22 
Offline

Joined: November 22nd, 2017, 21:47
Posts: 309
Location: France
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.


Top
 Profile  
 
 Post subject: Re: CMD/Script to find what SW "The device is currentyl in u
PostPosted: December 17th, 2020, 2:50 
Offline
User avatar

Joined: September 8th, 2009, 18:21
Posts: 13576
Location: Australia
https://web.archive.org/web/20150606170928/http://www.emptyloop.com/unlocker/Unlocker1.9.2.exe

_________________
A backup a day keeps DR away.


Top
 Profile  
 
 Post subject: Re: CMD/Script to find what SW "The device is currentyl in u
PostPosted: December 17th, 2020, 16:14 
Offline

Joined: December 14th, 2020, 11:51
Posts: 33
Location: France
Thank you for Unlocker URL, that's exactly what I was looking for.


Top
 Profile  
 
 Post subject: Re: CMD/Script to find what SW "The device is currentyl in u
PostPosted: June 11th, 2021, 6:38 
Offline

Joined: June 11th, 2021, 5:23
Posts: 2
Location: Las Vegas
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.


Top
 Profile  
 
 Post subject: Re: CMD/Script to find what SW "The device is currentyl in u
PostPosted: July 6th, 2021, 21:23 
Offline
User avatar

Joined: December 4th, 2012, 1:35
Posts: 3747
Location: Adelaide, Australia
IIRC there were some settings in windows to do do with write caching, maybe you can explore that in Google.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: Majestic-12 [Bot] and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group