locate not giving all results (after distribution upgradtion)
NoOp
glgxg at sbcglobal.net
Thu May 6 21:51:39 UTC 2010
On 05/06/2010 10:03 AM, H.S.Rai wrote:
> On Thu, May 6, 2010 at 1:28 PM, H.S.Rai <hardeep.rai at gmail.com> wrote:
>> What I found "locate" does not through all expected files / folders.
>> This happened after upgradation from 9.10 to 10.04. Even I tried to
>> run updatedb
>>
>> How to find how old is my database. and what I can do to set it
>> default setting, as I used to be with earlier version of Ubuntu.
$ ls -al /var/lib/mlocate/mlocate.db
$ ls -al /var/lib/mlocate/mlocate.db
-rw-r----- 1 root mlocate 12739093 2010-05-06 07:59
/var/lib/mlocate/mlocate.db
Now updatedb:
$ sudo updatedb
and running 'ls -al /var/lib/mlocate/mlocate.db' again shows:
$ ls -al /var/lib/mlocate/mlocate.db
-rw-r----- 1 root mlocate 12740083 2010-05-06 14:49
/var/lib/mlocate/mlocate.db
Standard updatedb.conf:
$ cat /etc/updatedb.conf
PRUNE_BIND_MOUNTS="yes"
# PRUNENAMES=".git .bzr .hg .svn"
PRUNEPATHS="/tmp /var/spool /media"
PRUNEFS="NFS nfs nfs4 rpc_pipefs afs binfmt_misc proc smbfs autofs
iso9660 ncpfs coda devpts ftpfs devfs mfs shfs sysfs cifs lustre_lite
tmpfs usbfs udf fuse.glusterfs fuse.sshfs ecryptfs fusesmb devtmpfs"
>
> Will it be because I made earlier my home encrypted? If yes, is there
> any easy way to make it normal so that I can make use locate.
>
> If not any alternate to this (locate).
>
Maybe these will help?
http://manpages.ubuntu.com/manpages/lucid/en/man8/updatedb.8.html
http://manpages.ubuntu.com/manpages/lucid/man1/locate.findutils.1.html
http://manpages.ubuntu.com/manpages/lucid/en/man1/find.1posix.html
http://manpages.ubuntu.com/manpages/lucid/en/man5/updatedb.conf.5.html
More information about the ubuntu-users
mailing list