<div dir="ltr"><div>updatedb (and mlocate) uses /etc/updatedb.conf to apply some settings such as particular paths to ignore in the PRUNEPATHS variable, one of which is /media. Since this is where removeable disks are usually mounted, that makes sense, but if your server is mounted as a network drive on your machine in say, /mnt then I would think updatedb would grab that. However, by default updatedb.conf lists NFS and other network file systems to be ignored via the PRUNEFS variable.<br></div><div><br></div><div>The downside to non-permanent attached drives being in the updatedb database is that since it's often invoked by cron daily, that snapshot may reflect a state of your machine without the files even if the drive is connected because the snapshot was taken when the drive was not mounted. <br></div><div><br></div><div>This is the practical explanation, any sysadmins want to give their opinions on whether it's a good idea in theory to have network drives be in the locatedb?<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 22, 2018 at 8:13 PM, Chime Hart via SGVLUG <span dir="ltr"><<a href="mailto:sgvlug@sgvlug.net" target="_blank">sgvlug@sgvlug.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All: Yesterday I asked about this on a blind linux list, had `absolutely no responses, but I know several of you will have great suggestions.<br>
I have a local machine, as well as another which is a server for storeage. We have several mount points loaded so I can play mp3s-and-videos on my main machine. Among remaining issues, sometimes when I run "sudo updatedb" says something about /usr/bin/find, permission denuyed. But even more, I would like to run a locate command to look for files on both machines. The 2nd machine is connected through a Gateway. Can some1 please suggest a work around? Thanks so much in advance<span class="HOEnZb"><font color="#888888"><br>
Chime<br>
<br>
</font></span></blockquote></div><br></div>