locate not finding files
Corey Bettenhausen
corey at 31415926535.com
Fri Dec 28 05:19:53 UTC 2007
Christopher Lemire wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Why does locate not find files in my other partition that other
> applications can find. I haven't tried Beagle yet.
>
> chris at ubuntu:~/sauerbraten experiement$ sudo updatedb
> [sudo] password for chris:
> chris at ubuntu:~/sauerbraten experiement$ locate -i prorat
> chris at ubuntu:~/sauerbraten experiement$ find /media/sdb2/ -iname '*prorat*'
> /media/sdb2/ProRat_v1.9
> /media/sdb2/ProRat_v1.9/ProRat.exe
> chris at ubuntu:~/sauerbraten experiement$
>
Whenever you run locate (actually slocate), it parses /etc/updatedb.conf
( see 'man locate'). Take a look at this file, specifically the
"PRUNEPATHS" variable. Mine lists /media and thus, I assume, means it
will not be indexed.
-Corey
More information about the ubuntu-users
mailing list