Software - Support > Other

locate doesnīt seem to include home directory

(1/2) > >>

Hi stevef,  :)

thanks for the link.
In fact I stumbled over the same article yesterday but didnīt bother referring to it as it doesnīt seem to apply with my case.

To answer your question:

No, the files system for my LL installation is ext3 for root as well as for home.
So I think changing the respective line to

--- Code: ---PRUNE_BIND_MOUNTS = "no"
--- End code ---
wouldnīt be of help here.  :023:

Curious though: the locate command does find files elsewhere. So generally it works alright. Itīs just the home partition which seems to be excluded.

Thanks anyway for your time and help.

Many greetings
Rosika  :wave


I'm not helping much.  On the systems I have, mlocate (LL5) and plocate (LL6) both find files in the home directory (and any sub-directories) - subject to them being cached in the database.  Is your disk btrfs ?

I found this which suggest some issues with mlocate and btrfs related to home directory

Hi stevef,  :)

thanks for your help.

--- Quote ---You may have plocate in LL6
--- End quote ---

Yes, indeed LL 6.2 came with both installed:

--- Code: ---dglob plocate; and dglob mlocate
--- End code ---

The output of the command you provided is:

--- Code: ---ls -al /var/lib/plocate/
total 7000
drwxr-xr-x  2 root root       4096 Jan 25 16:20 .
drwxr-xr-x 80 root root       4096 Jan 19 17:41 ..
-rw-r--r--  1 root root        183 Feb 17  2022 CACHEDIR.TAG
-rw-r-----  1 root plocate 7142630 Jan 25 16:20 plocate.db
--- End code ---

So date and time of plocate.db is:

--- Code: ---Jan 25 16:20
--- End code ---
Well, I tried the command just yesterday...

Thanks again and many greetings
Rosika :wave

You may have plocate in LL6.  What's date and time of the file plocate.db at

--- Code: ---ls -al /var/lib/plocate/
--- End code ---

I dontīt know if it helps anything at all. Iīll give you the contents of updatedb.conf

--- Code: ---cat /etc/updatedb.conf
# PRUNENAMES=".git .bzr .hg .svn"
PRUNEPATHS="/tmp /var/spool /media /var/lib/os-prober /var/lib/ceph /home/.ecryptfs
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"
--- End code ---


[0] Message Index

[#] Next page

Go to full version