You can define directories that should be omitted in
/etc/updatedb.conf. You can use regular expressions, citing GNU:
Directories to omit from the database, which would otherwise be
included. The environment variable
PRUNEPATHS also sets this value.
Default is /tmp /usr/tmp /var/tmp
/afs. The paths are used as regular
expressions (with find ... -regex, so
you need to specify these paths in the
same way that find will encounter
them. This means for example that the
paths must not include trailing
So change the following line in
PRUNEPATHS="/tmp /var/spool /media"
PRUNEPATHS="/tmp /var/spool /media .*/\..*"
should work just fine ;-)