This Device is Currently in Use - USB Jump Drive

Page 3 of 12 FirstFirst 12345 ... LastLast

  1. Posts : 1,937
    win 10 Insider
       #21

    OK. I did see the 'Device in use' but later it worked flawlessly multiple times.

    Looking at Event Viewer/Applications I see a couple of warnings as below:-

    The application \Device\HarddiskVolume1\Program Files\Windows Defender\MsMpEng.exe with process id 2056 stopped the removal or ejection for the device USB\VID_1516&PID_1603\93E41C6E20914A881D1308E9.

    So, at least in my case, the holding prog was Defender.
      My Computers


  2. Posts : 2,799
    Linux Mint 20.1 Win10Prox64
       #22

    Yes, it's H:\

    So, do I need to ID the drive letter when I sync?

    Thanks for the help.
    If no device letter is given: sync -e will eject everything
    Specifying explicit drive letter will eject only that drive.

    FYI, This is how it works. If a removable drive is currently accessed by some processes then Safely remove will display the message and you can look at the Process Explorer to find out which process is causing it then open task manager to kill it in order to remove the device so it depends on when you try to safely remove a device. That's why sometimes it works some other times it won't.
      My Computer


  3. Posts : 16,325
    W10Prox64
       #23

    topgundcp said:
    If no device letter is given: sync -e will eject everything
    Specifying explicit drive letter will eject only that drive.

    FYI, This is how it works. If a removable drive is currently accessed by some processes then Safely remove will display the message and you can look at the Process Explorer to find out which process is causing it then open task manager to kill it in order to remove the device so it depends on when you try to safely remove a device. That's why sometimes it works some other times it won't.
    So, she would type: sync -e h: to eject the drive in question?
      My Computer


  4. Posts : 5,478
    2004
       #24

    Is it showing as a removable drive? My external USB drive has all partitions showing as local drives on 10565 - that is why I can't eject it.

    simrick said:
    So, she would type: sync -e h: to eject the drive in question?
    yes /e (or -e) is eject, /r (or -r) is flush and you can put the drives with or without the colon ( : ).

    So sync /e /r g h i will flush and eject drives g,h and i. For example.
      My Computer


  5. Posts : 29,078
    Windows 10 21H1 Build 19043.1023
    Thread Starter
       #25

    halasz said:
    Is it showing as a removable drive? My external USB drive has all partitions showing as local drives on 10565 - that is why I can't eject it.

    yes /e (or -e) is eject, /r (or -r) is flush and you can put the drives with or without the colon ( : ).

    So sync /e /r g h i will flush and eject drives g,h and i. For example.
    Two more questions: What's flush? Also, will it now tell me it's safe to remove the Flash Drive?
      My Computer


  6. Posts : 29,078
    Windows 10 21H1 Build 19043.1023
    Thread Starter
       #26

    Well, guess what, Sports Fans! sync isn't recognized by Run nor is it recognized by the Command Prompt. Sigh . . .
      My Computer


  7. Posts : 5,478
    2004
       #27

    Wynona said:
    Well, guess what, Sports Fans! sync isn't recognized by Run nor is it recognized by the Command Prompt. Sigh . . .
    You need to open the command prompt to the directory where sync.exe is. For example mine is in C:\Users\hali\OneDrive\Programs\SysInternals

    Code:
    C:\Users\hali\OneDrive\Programs\SysInternals>sync
    
    Sync 2.2: Disk Flusher for Windows 9x/Me/NT/2K/XP
    Copyright (C) 1997-2004 Mark Russinovich
    Sysinternals - www.sysinternals.com
    
    Flushing: C D E F G H I J K
    
    C:\Users\hali\OneDrive\Programs\SysInternals>
    Wynona said:
    Two more questions: What's flush? Also, will it now tell me it's safe to remove the Flash Drive?
    The flush option forces anything that is in the buffer onto disk. If you had write caching turned on (in device manager) then if you didn't flush the cache you would lose data that was in memory not on disk if you just disconnected it.

    For USBs write caching is off by default anyway.

    It will not tell you anything - it will just look like above. As long as you aren't using the disk you can disconnect it once it finishes (it takes a fraction of a second usually).
      My Computer


  8. Posts : 29,078
    Windows 10 21H1 Build 19043.1023
    Thread Starter
       #28

    halasz said:
    You need to open the command prompt to the directory where sync.exe is. For example mine is in C:\Users\hali\OneDrive\Programs\SysInternals

    Code:
    C:\Users\hali\OneDrive\Programs\SysInternals>sync
    
    Sync 2.2: Disk Flusher for Windows 9x/Me/NT/2K/XP
    Copyright (C) 1997-2004 Mark Russinovich
    Sysinternals - www.sysinternals.com
    
    Flushing: C D E F G H I J K
    
    C:\Users\hali\OneDrive\Programs\SysInternals>


    The flush option forces anything that is in the buffer onto disk. If you had write caching turned on (in device manager) then if you didn't flush the cache you would lose data that was in memory not on disk if you just disconnected it.

    For USBs write caching is off by default anyway.

    It will not tell you anything - it will just look like above. As long as you aren't using the disk you can disconnect it once it finishes (it takes a fraction of a second usually).
    Thanks for the information Halasz. I'm sorry, but this is more than any "normal" user of Windows should be asked to know and/or understand! What's wrong with requiring Windows 10 to just work; even something as menial as "Safe to Eject".

    I followed the path you gave, using my username and Sync still didn't work. Curious: Why did you use OneDrive in the path?
      My Computer


  9. Posts : 5,478
    2004
       #29

    I used OneDrive as that is where I saved it - I use onedrive to save all these little programs to save downloading them again and again.

    If you have just download it - it will be probably still be in your downloads folder :)

    The important thing is the path in the administrator cmd prompt contains the sync.exe object. You can check by changing the path and then entering dir and see if you can see it. It should look like this:

    Code:
    Microsoft Windows [Version 10.0.10565]
    (c) 2016 Microsoft Corporation. All rights reserved.
    
    C:\Windows\system32>cd c:\users\hali\downloads
    
    C:\Users\hali\Downloads>dir
     Volume in drive C is Windows-vm1
     Volume Serial Number is 3EA0-230C
    
     Directory of C:\Users\hali\Downloads
    
    13/10/2015  16:05    <DIR>          .
    13/10/2015  16:05    <DIR>          ..
    01/11/2006  14:05           150,328 sync.exe
                   1 File(s)        150,328 bytes
                   2 Dir(s)  14,006,308,864 bytes free
    
    C:\Users\hali\Downloads>
      My Computer


  10. Posts : 29,078
    Windows 10 21H1 Build 19043.1023
    Thread Starter
       #30

    I've just provided Feedback on this issue: I might add that there are numerous feedback items on this issue and I've upvoted a couple or three of them.

    Feedback:

    Build 10565 - Safely Remove Hardware and Eject Media

    Prior to Build 10547 and now Build 10565, Safely Remove Hardware and Eject Media worked flawlessly. Is it too much to ask that this should continue to be so?

    No matter whether I just plug my Flash Drive in and then attempt to safely remove it, or if I have plugged it in and used it, then attempted to safely remove it, the result is always the same!

    *This device is currently in use. Close any programs or windows that might be using the device, and then try again.*

    I use my "USB Sticks/Flash Drives" extensively and this is not acceptable!
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 14:06.
Find Us




Windows 10 Forums