Article 59YEZ [SOLVED] mlocate not finding files on external USB harddisk

[SOLVED] mlocate not finding files on external USB harddisk

by
titopoquito
from LinuxQuestions.org on (#59YEZ)
Hi all,

I'm puzzled about mlocate's behaviour. This is on Slackware64-current (somewhere enf of October) with Xfce4 pre 16 and a 5.9.3 kernel (AMD Renoir CPU/GPU, so no stock kernel). The relevant partition is formatted ext4.

If I run updatedb after plugging in my external USB harddisk a subsequent "locate" command with a file that exists on the harddisk is giving no result.

ext4 is of course per se working (my internal harddisk is formatted with it). "/run/media" oder "/var/run" don't appear in the prune list as you can see above. No exotic file system, no pruned path that I am aware of, I don't get it.

Any ideas why the content of the harddisk is not picked up?

The difference between mounting the harrdisk and not mounting it looks like this (output of "mount"):
Code:--- mount-ohne-hp 2020-11-04 13:59:28.775095227 +0100
+++ mount-mit-hp 2020-11-04 13:59:02.720422778 +0100
@@ -32,3 +32,5 @@
/dev/mapper/veracrypt1 on /data type ext4 (rw,relatime)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=341)
gvfsd-fuse on /var/run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=341)
+/dev/sda1 on /run/media/tito/HPPortableDrive type ext4 (rw,nosuid,nodev,relatime,uhelper=udisks2)
+/dev/sda1 on /var/run/media/tito/HPPortableDrive type ext4 (rw,nosuid,nodev,relatime)My /etc/updatedb.conf:
Code:PRUNE_BIND_MOUNTS = "yes"
PRUNEFS = "9p afs anon_inodefs auto autofs bdev binfmt_misc cgroup coda configfs cpuset debugfs devpts ecryptfs exofs gfs gfs2 gpfs hugetlbfs inotifyfs iso9660 jffs2 lustre mqueue ncpfs nfs nfs4 nfsd pipefs proc ramfs rootfs rpc_pipefs securityfs selinuxfs sfs sockfs sysfs tmpfs ubifs udf usbfs ceph fuse.ceph"
PRUNENAMES = ".git .hg .svn .bzr .arch-ids {arch} CVS"
PRUNEPATHS = "/afs /dev /net /proc /sys /tmp /usr/tmp /var/cache/ccache /var/lib/ceph /var/spool/cups /var/tmp"Thanks for reading this far :)latest?d=yIl2AUoC8zA latest?i=r6sTNTIWGiw:clxwBWCHykQ:F7zBnMy latest?i=r6sTNTIWGiw:clxwBWCHykQ:V_sGLiP latest?d=qj6IDK7rITs latest?i=r6sTNTIWGiw:clxwBWCHykQ:gIN9vFwr6sTNTIWGiw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments