TL;DR
If you want to use plocate while your filesystem is btrfs, do the following:
- edit
/etc/updatedb.conf: replacePRUNE_BIND_MOUNTS = "yes"withPRUNE_BIND_MOUNTS = "no" - save the file
- update the db with
sudo updatedb - test again with
$ locate hometo see any outputs from home directory
Introduction
plocate is supposed to be a much faster drop-in replacement for mlocate, but I had a lot of troble getting it to work.
I ended up creating the SO question plocate couldn’t find results in my home dir but mlocate could. How to search results in home dir?. The details are in the post.
Getting Started
- Install
plocate:
pacman -Syu plocate
Check if you’re using
btrfswithlsblk -f. If yes, check the above TL;DR solutionTest with
$ locate homeand see if there’s any results fromhomedirectory.
Conclusion
Hopefully this article is helpful to someone in similar shoes.