Odd locate behavior

MR ZenWiz mrzenwiz at gmail.com
Wed Sep 18 05:58:16 UTC 2024


On Tue, Sep 17, 2024 at 11:16 AM Little Girl <littlergirl at gmail.com> wrote:
>
> Hey there,
>
> MR ZenWiz wrote:
>
:
>
> >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.
>
> Interesting. I had never heard of those until now.
>
> >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.
>
> Or you could have left them as is and turned the yes to a no in the
> event that there's an advantage to the bind mount over the symlink.
>
The strangest part is that some of the bind mounts (which I still
have) get indexed and files there show up in the locate results.

There's probably a pattern I could narrow down, but I don't really
care that much. It might be that my ~/Music directory was bind-mounted
to /home/Music, which is on the same true drive (/home). That might be
the check - the others are mostly bound to other drives. IIt's not
worth my time to dig into - I have been in interrupt overload for days
- too much to do and none of it bringing in any money.

End of OT rant...

MRZ




More information about the ubuntu-users mailing list