Odd locate behavior
MR ZenWiz
mrzenwiz at gmail.com
Tue Sep 17 02:19:05 UTC 2024
On Mon, Sep 16, 2024 at 10:02 AM Little Girl <littlergirl at gmail.com> wrote:
>
> Hey there,
>
:
>
> It's interesting. I figured it could be because they're soft links
> rather than actually being there, but I just tried that by creating a
> soft link and putting it elsewhere and locate was able to find both
> locations, so that's not it, either.
>
Problem solved - pilot error.
I have a number of directories on my machine I want accessible through
'links,' but hard links don't work and symlinks aren't a good fit for
some of them. So I use bind mounts to link them together.
Bad idea in this case - locate explicitly ignores them because of
PRUNE_BIND_MOUNTS setting to "yes." Duh.
I turned the /home/Music directory into a symlink, and voila.
I knew this was the case, but I forgot.
Be aware...
MRZ
More information about the ubuntu-users
mailing list