5

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.

Thomas Ward
  • 78,878

2 Answers2

7

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

anlag
  • 336
2

The PRUNE list of exclusions in the updatedb.conf was the problem, it eliminated anything from /media where I had attached my USB HDDs. I removed the entry from the PRUNE list and now updatedb works as I want it to work.