FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 12-28-2007, 04:17 AM
Res
 
Default 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
 
Old 12-28-2007, 04:19 AM
Corey Bettenhausen
 
Default 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
 
Old 12-28-2007, 04:22 AM
Tim Frost
 
Default 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
 

Thread Tools




All times are GMT. The time now is 06:57 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org