Unable to unmount/eject a virtual drive - what is withholding it?


  1. Posts : 651
    Windows 10 x64
       #1

    Unable to unmount/eject a virtual drive - what is withholding it?


    When unmounting a virtual drive I sometimes get a warning reading as follows
    "
    There are currently files opened on N:\: or shell windows from that logical device. If you do not close the files before dismounting from the logical device, data may be lost.Do you want to dismount the device anyway?
    "
    I used Process Explorer > Find > Find Handle or DLL Substring, then entered the drive-letter, like X:
    but there are no hits.

    Any suggestions what else to use so as to figure out what is withholding ejecting the drive.
    Note: It is not VHD(X)

    Thanks.

    (Windows 10 x64 1909)
      My Computer

  2. Berton's Avatar
    Posts : 12,271
    Win10 Version 21H2 Pro and Home, Win11 Pro
       #2

    I occasionally get the same type message with USB Thumb drives and the Safely Eject function, usually the process is being held up by antivirus scanning or File Explorer being open to the drive or files on the drive. Waiting a couple of minutes after closing File Explorer frequently works but in other instances rebooting the computer was necessary. It may help to open Task Manager, right-click File Explorer/Windows Explorer and choose Restart rather than rebooting.
      My Computers


  3. Posts : 651
    Windows 10 x64
    Thread Starter
       #3

    Thanks. I do "File > Exited" all applications. I use a Windows Explorer replacement, Directory Opus and also File->Exited that one. It isn't in the Task Manager list, also not under tab "Details". I also disabled protection (AV software), but still 'some' process seems to access the virtual drive. Don't know of any other tools that may cast some light on this.
      My Computer

  4. jimbo45's Avatar
    Posts : 11,060
    Windows / Linux : Arch Linux
       #4

    tfwul said:
    Thanks. I do "File > Exited" all applications. I use a Windows Explorer replacement, Directory Opus and also File->Exited that one. It isn't in the Task Manager list, also not under tab "Details". I also disabled protection (AV software), but still 'some' process seems to access the virtual drive. Don't know of any other tools that may cast some light on this.
    Hi there
    What Virtual Machine software are you using (Not what HOST you are using). If it's Vmware you can always "release" the usb device by going to the menu (in VMWare) and remove the device that way --it will override any Windows (GUEST VM) hold on the device.

    However that's usually an extreme measure as there may well be "latent activity" on the device -- I/O on a VM is not always "committed" at the time the user might "think it has" e.g when copying a large file from the device to the VM (or the other way around).

    If you really need the device the best thing is to power off the VM via the shutdown menu. The I/O cache will then be emptied "gracefully".

    Cheers
    jimbo
      My Computer


  5. Posts : 651
    Windows 10 x64
    Thread Starter
       #5

    Thanks jimbo45.
    Please do note it is a virtual drive, i.e. it needs to be mounted, like VeraCrypt, or a VHD(X).
    Not VM.
    Usually it would be some application still accessing the drive, like Explorer, or a tool like Everything.
    But all applications that do have access to the drive are fully exited.

    So I assume(..) it could be some kind Windows process(?)
    Reason why I tried Process Explorer in the first place.

    As said, Process Explorer does not show anything, whereas, if, for instance, Opus would be active, Opus would show up.

    Now, in this case, the application offers the option to close anyway.
    ("Do you want to dismount the device anyway?")

    I normally dismount 'anyway', no data is lost.

    But ... eh ... I just want to know what it is...
      My Computer

  6. Golden's Avatar
    Posts : 1,647
    Windows 10 Pro x64
       #6

    tfwul said:
    So I assume(..) it could be some kind Windows process(?)
    Reason why I tried Process Explorer in the first place.

    As said, Process Explorer does not show anything
    Does file indexing show up under Process Explorer? I wonder if thats what it could be? Is the virtual drive encrypted?
      My Computers


  7. Posts : 651
    Windows 10 x64
    Thread Starter
       #7

    Thanks!

    Yes indeed, under "Indexing Options" some folders within the encrypted drive were tagged.
    I unchecked them just now, let's see if that helps.
    Frankly speaking, I am not sure though whether I need that indexing for some purpose.
    I use Everything for searching files and X1 to search within searchable content (Word, Excel, PDF, Outlook, etc)
      My Computer

  8. Golden's Avatar
    Posts : 1,647
    Windows 10 Pro x64
       #8

    tfwul said:
    Thanks!

    Yes indeed, under "Indexing Options" some folders within the encrypted drive were tagged.
    I unchecked them just now, let's see if that helps.
    Frankly speaking, I am not sure though whether I need that indexing for some purpose.
    I use Everything for searching files and X1 to search within searchable content (Word, Excel, PDF, Outlook, etc)
    Lets see if that solves the problem. You can turn indexing off if you don't need it:
    Enable or Disable Search Indexing in Windows
      My Computers


 

  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 09:37.
Find Us




Windows 10 Forums