Thursday, May 2, 2024
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 604  / 3 Years ago, fri, august 6, 2021, 7:02:01

Manpage states the by default updatedb includes the entire file system. I have two usb attached drives that don't get included updatedb. I can create my own db file for each drive but wondering if I can force updatedb to include them?


I realized this was so when locate didn't find files I new existed on one of the attached drives. Executing sudo updatedb had no effect.


More From » command-line

 Answers
7

Take a look in /etc/updatedb.conf, particularly the PRUNEPATHS parameter which lists paths to be excluded from the database.


[#1797] Friday, August 6, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
hirtieve

Total Points: 207
Total Questions: 104
Total Answers: 114

Location: Cook Islands
Member since Thu, May 21, 2020
4 Years ago
hirtieve questions
;