locate not finding files
Chris,
On Thu, 27 Dec 2007, Chris 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. see /etc/updatedb.conf for pruning -- Cheers Res mysql> update auth set Framed-IP-Address='127.0.0.127' where user= 'troll'; -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
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 |
locate not finding files
On Thu, 2007-12-27 at 23:00 -0600, 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$ > /media is explicitly ignored in the default configuration (it is listed in the PRUNEPATHS variable in /etc/updatedb.conf, and find will not search directories listed in that variable). /media is mostly used for CD/DVD/floppy devices that are not permanently mounted. You may be best advised to move the mount point for sdb2 to somewhere other than /media (/disks/sdb2 for instance) Tim -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
| All times are GMT. The time now is 06:24 PM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.