If I understand correctly, the database
locate relies on is just for files on partitions of internal HDDs. I wonder if it is possible to use
locate on external HDDs?
The locate database is generally configured to omit files on removable disks, since they can't be assumed to be there later. It can be configured through a file such as
For a removable disk, it is probably better to keep the database in a separate file. Run
to update the database. Add
If you want to keep the locate database on the removable disk, don't add the path to
The config file is here: