Edit the /etc/updatedb.conf file. Add the paths to the PRUNEPATHS line. For example:
PRUNEPATHS="/tmp /var/spool /media /mnt"