how to create a new instance and specify the disk to index?

Discussion related to "Everything" 1.5.
Post Reply
Ralf_Reddings
Posts: 142
Joined: Fri Mar 24, 2023 4:53 pm

how to create a new instance and specify the disk to index?

Post by Ralf_Reddings »

ive tried the following, and when i check the settings window (indexes > ntfs), there are no drives included at all, not even z: drive;

Code: Select all

everything -instance bak -no-auto-include -add-ntfs-volume z:
everything -instance bak -no-auto-include -add-volume z:
everything -instance bak -no-auto-include -volumes z:

Also, i think there is a bug with "-no-auto-index", everything does not it recognise it (shows help dialog), whereas "-no-auto-include" works fine. on am latest alpha.
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: how to create a new instance and specify the disk to index?

Post by NotNull »

If the Z:-drive is not included in the list under Indexes => NTFS, it is very likely (a) not an NTFS formatted volume or (b) not online.

FWIW:
everything.exe -instance bak -no-auto-include -add-ntfs-volume T:
here indexes my (NTFS) T:-drive as expected.
(everything64.exe in my case)


To test: see what IndexThis makes of it.
Is the drive listed under NTFS or under network/folders/ ..
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: how to create a new instance and specify the disk to index?

Post by void »

When Everything adds your z: drive to your index, it will check the following:
If a volume policy is set, the drive is not added. (set policies are shown in Everything under Help -> Troubleshooting Information -> Policies)
If the volume name (\\?\Volume{01234567...) is not specified, a volume name look-up from the volume path is performed, if the lookup fails, the drive is not added.

Currently, this volume name lookup is broken for SUBST volumes.

What is the z: drive? is it a subst volume?



-no-auto-index
was added in 1397a.
Ralf_Reddings
Posts: 142
Joined: Fri Mar 24, 2023 4:53 pm

Re: how to create a new instance and specify the disk to index?

Post by Ralf_Reddings »

void wrote: Fri Jan 30, 2026 9:34 pm If the volume name (\\?\Volume{01234567...) is not specified, a volume name look-up from the volume path is performed, if the lookup fails, the drive is not added.

Currently, this volume name lookup is broken for SUBST volumes.

What is the z: drive? is it a subst volume?
am not sure what you mean subst volumes. the drive am trying to include in the index, is a macirum reflect backup file (.mrimg), which the macrium backup software lets you mount as a "internal drive" ntfs drive, meaning it will show up on "my pc", just like any other drive. I want to create a instance of everything where i can just browser this one drive and then trash the instance later on as needed.

the intresting thing is, if i create the instance with just "-no-auto-include", then when the instance window shows up, going to settings > indexes > ntfs. i do see the drive i want to include listed there, and i just have to tick "inlcude in database", which is wha am trying to do from the command line from the outset.
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: how to create a new instance and specify the disk to index?

Post by void »

What version of Everything are you using?
-Older versions of Everything would reset your volume list when using -no-auto-include. (-add-volume would be ignored)

If you manually check Include in database for your z: drive, does it get indexed by Everything?
-The z: drive might not be a true NTFS volume.
Ralf_Reddings
Posts: 142
Joined: Fri Mar 24, 2023 4:53 pm

Re: how to create a new instance and specify the disk to index?

Post by Ralf_Reddings »

void wrote: Sat Jan 31, 2026 9:33 pm What version of Everything are you using?
-Older versions of Everything would reset your volume list when using -no-auto-include. (-add-volume would be ignored)
i have upgraded to
1.5.0.1404a (x64)
, since reading your reply, i unfortunetly did not make note of the version i was on before updgrading, however, it cant be old, as i try to stay up to date.

with this most recent version, the first line works, "k:" is a 8tb physical, removable drive, it gets indexed correctly at instance creation. second line, same thing, only the "z:" drive is silently ignored:

Code: Select all

everything -instance bak2 -no-auto-include -add-ntfs-volume "k:"
everything -instance bak2 -no-auto-include -add-ntfs-volume "k:;z:"
void wrote: Sat Jan 31, 2026 9:33 pm If you manually check Include in database for your z: drive, does it get indexed by Everything?
-The z: drive might not be a true NTFS volume.
yes. if i dont specify a drive, and at instance creation i got to settings (indexes > ntfs) and tick "inlcude in database", everything rebuilds dbs and the drives content is shown.

i work with this virtual drive quite often throughout everything, and up to now, everything treated it like any internal/removable drive, which was very nice.
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: how to create a new instance and specify the disk to index?

Post by void »

Z: not being added is a issue with a volume path lookup.
Specifically the GetVolumePathName API.

For some reason this volume path lookup fails for your Z: drive.
It also fails for SUBST volumes and will be fixed in the next update.

For now, you will need to specify the volume name and mount path:

Code: Select all

-add-ntfs-volume [{"path":"Z:","volume_name":"\\\\?\\Volume{01234567-0123-0123-0123-0123456789ab}"}]
Where "\\\\?\\Volume{01234567-0123-0123-0123-0123456789ab}" is the volume name for your Z: drive.
Escape
\
with
\\

To find the volume name, in Everything, under the Tools menu, click Options.
Click the NTFS tab.
Double click your Z: drive.
Volume names can also be found under Help -> Troubleshooting information when the volume is included in your index.
Post Reply