Database for external drive with random letter

Discussion related to "Everything" 1.5.
Post Reply
vsub
Posts: 501
Joined: Sat Nov 12, 2011 11:51 am

Database for external drive with random letter

Post by vsub »

I have a backup drive that have its own database but sometimes when I connect the drive,it may not be assigned to the drive letter of the database and everything does not update the database nor I can access the files from Everything
Can I do something about it?
Sometimes a different drive may be assigned to the drive letter the database is made for and when that happens,everything will add those files to the database
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: Database for external drive with random letter

Post by void »

I have a backup drive that have its own database but sometimes when I connect the drive,it may not be assigned to the drive letter of the database and everything does not update the database nor I can access the files from Everything
Can I do something about it?
Everything should do a fast reindex to update the new drive letter without going to disk.

Sounds like you have disabled monitoring for the volume?
What is your setup? -Help -> Troubleshooting information.


Sometimes a different drive may be assigned to the drive letter the database is made for and when that happens,everything will add those files to the database
If you use folder indexing (Tools -> Options -> Folders) this might occur.
There's also cases where this can occur for FAT/network-drive indexes in Everything 1.5.0.1399a and earlier. (fixed in 1400a+)
vsub
Posts: 501
Joined: Sat Nov 12, 2011 11:51 am

Re: Database for external drive with random letter

Post by vsub »

I have a separate instance of Everything that I only run when I want to search(even when the drive is not connected)or update that database
Now for some reason windows decide to assign the backup drive to "G" instead of "F" even tho there was no other drive connected nor anything was assigned to drive F

This screenshot shows my drives when the backup drive is already disconnected

This is the shortcut
C:\Tools\Everything\Everything.exe -folders-sidebar -instance Backup -db Backup.db -no-auto-include -config Backup.ini
The ini is already configured to include on that drive

I want this database to never include anything other than that drive and only update it when I run that instance while the drive is connected
Attachments
Everything_CPVmjaRevA.jpg
Everything_CPVmjaRevA.jpg (92.76 KiB) Viewed 2325 times
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: Database for external drive with random letter

Post by void »

Please check your Tools -> Options -> Advanced -> auto_move_ntfs_volumes setting
-When enabled, Everything should automatically detect the new drive letter for this volume.

I suspect Everything is seeing the drive as a completely different volume.
Could you please confirm:
Plugin your backup drive.
From the same location as your screenshot. (Tools -> Options -> NTFS)
double click the offline backup drive (backup (F:) (Offline))
Take note of the volume name.
double click the online backup drive (backup (G:))
Does the offline volume name match the online volume name?

-Everything uses the volume name to uniquely identify volumes.
vsub
Posts: 501
Joined: Sat Nov 12, 2011 11:51 am

Re: Database for external drive with random letter

Post by vsub »

Why are those values not default,I am sure I have never change them
Also I have found something that may be a bug
If I run my "backup" instance that have a separate ini file,those settings are not remembered
I set the ntfs to true and exit(File=>Exit)and when I run it again,ntfs is set to false again but the thing is,if I open the Backup.ini file and check for that option,that option is set to 1 but in the settings it is shown 0(false)
auto_move_ntfs_volumes=1

When I do the same on my main instance,the options are remembered

I tried turning off the main instance and then run the backup one but there is no change
Everything is using the service(not running as admin)and it is located in C:\Tools\Everything

Also,if I connect another drive to the same drive letter and that drive happens to have the same file name(but different file)in the same location as the backup drive,everything will open it
I don't know if that's normal

When I connect another drive and it is assigned to drive F,the backup drive Tools=>Options=>NTFS is labeled as offline

When I connect the wrong drive to letter F,the files from the backup drive are faded but when I connect the backup drive(drive G)while the other one is still connected to letter F,the files are not faded but trying to run any of the files,it will say that the file is missing

I am using Version 1.5.0.1400a (x64)
Attachments
Everything_hflhzkeGJ0.jpg
Everything_hflhzkeGJ0.jpg (94.3 KiB) Viewed 2278 times
Everything_oUuNSGgjNh.jpg
Everything_oUuNSGgjNh.jpg (118.75 KiB) Viewed 2278 times
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: Database for external drive with random letter

Post by void »

Thank you for the advanced setting values.
Why are those values not default,I am sure I have never change them
I changed the default values during early development.
There was issues with auto-moving volumes in earlier builds.
-or-
it's the -no-auto-include switch, see below..


Also I have found something that may be a bug
If I run my "backup" instance that have a separate ini file,those settings are not remembered
I set the ntfs to true and exit(File=>Exit)and when I run it again,ntfs is set to false again but the thing is,if I open the Backup.ini file and check for that option,that option is set to 1 but in the settings it is shown 0(false)
auto_move_ntfs_volumes=1
It's the -no-auto-include command line option that is disabling these settings.
Please remove this command line switch as it's designed to only be used once during install.

I will trial not disabling auto_move options when using -no-auto-include in the next alpha update as this is unexpected.


When I connect another drive and it is assigned to drive F,the backup drive Tools=>Options=>NTFS is labeled as offline

When I connect the wrong drive to letter F,the files from the backup drive are faded but when I connect the backup drive(drive G)while the other one is still connected to letter F,the files are not faded but trying to run any of the files,it will say that the file is missing
Everything monitors the volume by the volume name (not drive letter)
Everything will show the volume as online with the wrong drive letter.
Removing -no-auto-include and re-enabling Tools -> Options -> Advanced -> auto_move_ntfs_volumes should fix the issue.
vsub
Posts: 501
Joined: Sat Nov 12, 2011 11:51 am

Re: Database for external drive with random letter

Post by vsub »

Yes that fixed it,thanks
Post Reply