locate not finding files
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@ubuntu:~/sauerbraten experiement$ sudo updatedb
> [sudo] password for chris:
> chris@ubuntu:~/sauerbraten experiement$ locate -i prorat
> chris@ubuntu:~/sauerbraten experiement$ find /media/sdb2/ -iname '*prorat*'
> /media/sdb2/ProRat_v1.9
> /media/sdb2/ProRat_v1.9/ProRat.exe
> chris@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
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
|