locate can't find files?

Karl Auer kauer at biplane.com.au
Sat May 14 04:58:55 UTC 2022


On Fri, 2022-05-13 at 21:16 -0700, MR ZenWiz wrote:
> My apologies, I didn't mean to be rude.

Nor did I percieve it as such!

> I copied that file to the htera directory and updated the db - not
> found there.

This is proof positive that the location of the file is the problem.

> I looked in /etc/updatedb.conf and I don't see anything too obvious
> there:
> 
> 21:09 [admar at marbase:~/Downloads] $ sudo cat /etc/updatedb.conf
> PRUNE_BIND_MOUNTS="yes"
> # PRUNENAMES=".git .bzr .hg .svn"
> PRUNEPATHS="/tmp /var/spool /media /var/lib/os-prober /var/lib/ceph
> /home/.ecryptfs /var/lib/schroot"
> PRUNEFS="NFS afs autofs binfmt_misc ceph cgroup cgroup2 cifs coda
> configfs curlftpfs debugfs devfs devpts devtmpfs ecryptfs ftpfs
> fuse.ceph fuse.cryfs fuse.encfs fuse.glusterfs fuse.gvfsd-fuse
> fuse.mfs fuse.rclone fuse.rozofs fuse.sshfs fusectl fusesmb hugetlbfs
> iso9660 lustre lustre_lite mfs mqueue ncpfs nfs nfs4 ocfs ocfs2 proc
> pstore rpc_pipefs securityfs shfs smbfs sysfs tmpfs tracefs udev udf
> usbfs"

Is this file used by plocate? You can check by adding /home to the
PRUNEPATHS list, updating the database, and seeing if files in your
home directory are still located. Dunno how plocate works - if it runs
all the time you may need to send it a HUP signal or restart it some
other way.

> /htera is a 4Tb hard drive in /etc/fstab, mounted pretty ordinarily. 

How exactly is it mounted, and where exactly is the /htera mountpoint?
Maybe post that line out of fstab? And the output from "mount | grep
htera"

There are a bunch of filesystem types there that updatedb.conf says it
will not search. I seem to remember you mentioned a bind mount, which
will also not be searched.

If you are unsure, comment out the PRUNE_BIND_MOUNTS line, rebuild the
database and see if anything changes.

The mount command or the fstab entry will tell you the filesystem type
mounted on /htera. If the filesystem type is in that PRUNFS list,
removing it from the list might solve your problem.

Otherwise we all remain stumped :-)

Regards, K.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer

GPG fingerprint: 61A0 99A9 8823 3A75 871E 5D90 BADB B237 260C 9C58
Old fingerprint: 2561 E9EC D868 E73C 8AF1 49CF EE50 4B1D CCA1 5170







More information about the ubuntu-users mailing list