Unable to "safely remove" external drive on Windows 11

If you are experiencing problems with "Everything", post here for assistance.
antares
Posts: 3
Joined: Fri Mar 04, 2022 8:04 am

Unable to "safely remove" external drive on Windows 11

Post by antares »

I've set up a new computer running Windows 11. I also installed Everything as a service. However, I haven't been able to "safely remove" external storage anymore ever since. (On Windows 7, running as a regular program, there was no such issue.) In Everything settings, I chose not to include external volumes in indexing - although they to appear there.

If I check the Event Viewer in such cases, the relevant entries usually say: "The application System with process id 4 stopped the removal or ejection for the device USB\VID_174C&PID_55AA\MSFT3000000000000000000000.")

And this is the output of OpenedFilesView in such cases (F and E in this case are the external drives):
Image

In Disk Manager, the external storage is always "optimized for quick removal" under Policies, so I just unplug the drive, as I don't really have a choice.

Is there anything I can do to prevent this? Or is simply unplugging enough?
void
Developer
Posts: 20417
Joined: Fri Oct 16, 2009 11:31 pm

Re: Unable to "safely remove" external drive on Windows 11

Post by void »

Thank you for the bug report antares,

What model external hard drive do you have?

Could you please send some debug output:
  • Please make sure your external hard disk is connected.
  • In Everything, type in the following search and press ENTER:
    /debug_log
  • Eject your disk.
    --wait for the unable to safely remove message--
  • In Everything, type in the following search and press ENTER:
    /restart
  • please send your %TEMP%\Everything Debug Log.txt to support@voidtools.com
therube
Posts: 5869
Joined: Thu Sep 03, 2009 6:48 pm

Re: Unable to "safely remove" external drive on Windows 11

Post by therube »

However, I haven't been able to "safely remove" external storage anymore ever since.
Does that mean that you were able to safely remove before you installed Everything (& its' Service)?

If not, if you (now) uninstall Everything & its' Service, are you then able to safely remove?

Why type of drive is this?
therube
Posts: 5869
Joined: Thu Sep 03, 2009 6:48 pm

Re: Unable to "safely remove" external drive on Windows 11

Post by therube »

Does the fact that OpenedFilesView shows a E:|F: $TxfLogContainer0000000000000000000x entry imply that Everything is holding something (a handle) open there?
therube
Posts: 5869
Joined: Thu Sep 03, 2009 6:48 pm

Re: Unable to "safely remove" external drive on Windows 11

Post by therube »

On my end, an "F:" (NTFS, & maybe that matters) drive shows up in OFV (with a $TxfLogContainer0000000000000000000x entry), whether indexed (& journaled) in Everything or not. (And does safely remove, regardless.)

A different drive, K: (FAT), is not seen by OFV - unless I actually open a file/directory on it.
Pseudoryx
Posts: 17
Joined: Mon May 06, 2024 7:08 pm

Re: Unable to "safely remove" external drive on Windows 11

Post by Pseudoryx »

Reviving this thread because I'm having the exact problem on Windows 11. Was this ever resolved?
My external drive is in the middle of a backup process right now so I can't generate my own log, but I can confirm that Everything is preventing it from ejecting.
therube
Posts: 5869
Joined: Thu Sep 03, 2009 6:48 pm

Re: Unable to "safely remove" external drive on Windows 11

Post by therube »

What version of Everything?

More recent versions of Everything 1.5 Beta had some fixes for Safely Remove issues.


(And same may not have ended up in Everything 1.4?

So if you're not running current 1.5, test that.)
Pseudoryx
Posts: 17
Joined: Mon May 06, 2024 7:08 pm

Re: Unable to "safely remove" external drive on Windows 11

Post by Pseudoryx »

I'm running 1.5.0.1423b (x64). Let me know if there is a toggle or setting I could check.
therube
Posts: 5869
Joined: Thu Sep 03, 2009 6:48 pm

Re: Unable to "safely remove" external drive on Windows 11

Post by therube »

1423 is most recent.

Maybe send a debug log?

In the step,
Perform your es.exe search
you'd want to attempt the Safely Remove instead.


Or maybe a Service debug log report?
(Wait till void lets you know.)
void
Developer
Posts: 20417
Joined: Fri Oct 16, 2009 11:31 pm

Re: Unable to "safely remove" external drive on Windows 11

Post by void »

Please send a debug log:
  • Make sure your USB drive is plugged in.
  • In Everything, from the Tools menu, under the Debug submenu, click Start Debug Logging...
  • Please attempt to safely remove your USB drive.
  • In Everything, from the Tools menu, under the Debug submenu, click Stop Debug Logging...
    --This will open your %TEMP%\Everything Debug Log.txt
  • Could you please upload this file in a bug report.
What is the maker and model of your external drive?
Pseudoryx
Posts: 17
Joined: Mon May 06, 2024 7:08 pm

Re: Unable to "safely remove" external drive on Windows 11

Post by Pseudoryx »

Thanks all for chiming in. I have submitted a debug log.
The external drive is a Seagate Expansion HDD.
Evidence that Everything.exe (admin) is the only process using the drive at the time of the test was from PowerToys' File Locksmith.
void
Developer
Posts: 20417
Joined: Fri Oct 16, 2009 11:31 pm

Re: Unable to "safely remove" external drive on Windows 11

Post by void »

Thank you for the debug logs.
2026-10-18 16:06:47.303: WM_DEVICECHANGE 0000000000008001 00000000005ef820
2026-10-18 16:06:47.303: stop ntfs_monitor G: 4294967295 0000000006ea8eb0
Everything closes all handles to your G: drive


2026-10-18 16:06:48.058: WM_DEVICECHANGE 0000000000008002 00000000005ef820
Shortly after, the OS reports the device removal failed.
Everything restarts monitors on your G: drive.



Does 'safely remove' work if you stop Everything monitoring your G: drive:
  • In Everything, from the Index menu, click Stop Updating.
  • Attempt to safely remove your device.
    Does safely remove succeed?
  • Restart monitoring in Everything:
  • In Everything, from the Index menu, click Update indexes.


Try running Everything as a standard user:
  • In Everything, from the Tools menu, click Options.
  • Click the General tab on the left.
  • Check Store settings and data in %APPDATA%\Everything.
  • Uncheck Run as administrator.
  • Click OK.
  • Exit Everything (from the File menu, click Exit).
  • Restart Everything.
Pseudoryx
Posts: 17
Joined: Mon May 06, 2024 7:08 pm

Re: Unable to "safely remove" external drive on Windows 11

Post by Pseudoryx »

I tested it a week ago but forgot to comment in here. Here is my report.

Does 'safely remove' work if you stop Everything monitoring your G: drive: No, ejecting the drive was still blocked.

Try running Everything as a standard user: Yes... but with an additional step. "Run indexing process as administrator" has to be unchecked, too.
void
Developer
Posts: 20417
Joined: Fri Oct 16, 2009 11:31 pm

Re: Unable to "safely remove" external drive on Windows 11

Post by void »

Is Everything still monitoring changes?

You'll need to install the Everything Service or Run the indexing process as admin.

Whats shown under Tools -> Options -> General?
Pseudoryx
Posts: 17
Joined: Mon May 06, 2024 7:08 pm

Re: Unable to "safely remove" external drive on Windows 11

Post by Pseudoryx »

I have Everything Service installed. Here is what I have checked under Tools -> Options -> General.
Everything-2810-223.png
Everything does stop monitoring changes once I stopped updating the index.
I was incorrect with my assessment that "Run indexing process as administrator" has to also be unchecked before ejecting the drive. I forgot to update one device I was testing from 1423b to 1424b. In 1424b the drive can be ejected while this setting is still running.
You do not have the required permissions to view the files attached to this post.
void
Developer
Posts: 20417
Joined: Fri Oct 16, 2009 11:31 pm

Re: Unable to "safely remove" external drive on Windows 11

Post by void »

Run indexing process as administrator can be unchecked, as it's not used when the service is installed.

Does the safety remove issue persist ?
Pseudoryx
Posts: 17
Joined: Mon May 06, 2024 7:08 pm

Re: Unable to "safely remove" external drive on Windows 11

Post by Pseudoryx »

Noted, I will uncheck it then.

And no, the safety removal no longer persists. The tl,dr for future users coming across this thread is to make sure that (a) Everything is not running as admin and (b) stop indexxing before removing a portable storage.