You are not logged in.

#1 2009-12-19 20:36:31

luuuciano
Member
Registered: 2007-01-27
Posts: 310

[solved automagically] locate do not work properly...

Hi!

Suddenly I realize that my locate do not work properly...
for example I do a "locate *.jpg"
and just lists 4 files!
all of them in ~

I did an updatedb (anyway, it is made every night at 00)
deleted the locate db and created it again... always having the same behavior...

any idea?

Last edited by luuuciano (2009-12-19 21:03:20)


I arch, you arch, he arch, she arch, we arch, they arch...

Offline

#2 2009-12-19 20:40:24

keiss
Member
From: Czech Republic
Registered: 2009-12-13
Posts: 6

Re: [solved automagically] locate do not work properly...

What do you have in your /etc/updatedb.conf file ?
Edit: And where are the files that you expected to see ?

Last edited by keiss (2009-12-19 20:41:34)


The ability to quote is a serviceable substitute for wit.

Offline

#3 2009-12-19 20:41:38

luuuciano
Member
Registered: 2007-01-27
Posts: 310

Re: [solved automagically] locate do not work properly...

here it is:

$ cat /etc/updatedb.conf
# directories to exclude from the slocate database:
PRUNEPATHS="/media /mnt /tmp /var/tmp /var/cache /var/lock /var/run /var/spool"

# filesystems to exclude from the slocate database:
PRUNEFS="afs auto autofs binfmt_misc cifs coda configfs cramfs debugfs devpts ftpfs iso9660 mqueue ncpfs nfs nfs4 proc ramfs securityfs shfs smbfs sshfs sysfs tmpfs udf usbfs


the files are all over my ~...
4 jpg files in a 150gb hd is a joke...

Last edited by luuuciano (2009-12-19 20:43:01)


I arch, you arch, he arch, she arch, we arch, they arch...

Offline

#4 2009-12-19 20:51:29

keiss
Member
From: Czech Republic
Registered: 2009-12-13
Posts: 6

Re: [solved automagically] locate do not work properly...

I would try running updatedb like so:

updatedb --debug-pruning 2>&1 | grep Skipping

and check if the paths where your other .jpg files are aren't being skipped.


The ability to quote is a serviceable substitute for wit.

Offline

#5 2009-12-19 21:00:06

luuuciano
Member
Registered: 2007-01-27
Posts: 310

Re: [solved automagically] locate do not work properly...

mmmm, just the usual stuf...

$ sudo updatedb --debug-pruning 2>&1 | grep Skipping
Skipping `/dev': in prunefs
Skipping `/media': in prunepaths
Skipping `/mnt': in prunepaths
Skipping `/proc': in prunefs
Skipping `/sys': in prunefs
Skipping `/tmp': in prunepaths
Skipping `/var/cache': in prunepaths
Skipping `/var/lock': in prunepaths
Skipping `/var/run': in prunepaths
Skipping `/var/spool': in prunepaths
Skipping `/var/tmp': in prunepaths


I arch, you arch, he arch, she arch, we arch, they arch...

Offline

#6 2009-12-19 21:01:07

luuuciano
Member
Registered: 2007-01-27
Posts: 310

Re: [solved automagically] locate do not work properly...

ooops!

I tried searching... and it works!

no idea what happened... but I could not use locate for a couple of weeks, until now

Last edited by luuuciano (2009-12-19 21:03:59)


I arch, you arch, he arch, she arch, we arch, they arch...

Offline

Board footer

Powered by FluxBB