I changed my configuration so locate is also searching through external harddisks that are mounted in /media
.
My /etc/updatedb.conf
:
PRUNE_BIND_MOUNTS="yes"
# PRUNENAMES=".git .bzr .hg .svn"
PRUNEPATHS="/tmp /var/spool /home/.ecryptfs /media/Win8"
PRUNEFS=...(rest is default)
my main HDD i always use is
/media/rubo77/Data
if it is connected, and I run updatedb
it is indexed, but each time I atart my computer with detached HDD the dayly /etc/cron.daily/mlocate
is clearing that up.
I would like to be able to find files on the detached device too. If I don't want to I can always use locate -e
that only shows currently existing files.
How can I tell locate to keep the index for files in media if the drive is not mounted so I can locate files on the detached device?