Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
updatedb problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
asmmsl
n00b
n00b


Joined: 10 Jan 2003
Posts: 10

PostPosted: Sat Jan 18, 2003 8:01 am    Post subject: updatedb problems Reply with quote

when I run updatedb it does not update the database. It will just instantly quit without searching the filesystem. It does create the file in /var/lib/locate if it is not there, but it is empty though.

I rememebr the very first time it started I Ctrl-C'ed it immediately to give some command-line options, and ever since whenever I run it it would quit right away, obviously no searching is done.

P.S. any suggestions which options should used? On my debian system "--localuser=nobody" is passed, any reason not to do this or any other options that may be useful? thanks
Back to top
View user's profile Send private message
garo
Bodhisattva
Bodhisattva


Joined: 15 Jul 2002
Posts: 860
Location: Edegem,BELGIUM

PostPosted: Sat Jan 18, 2003 9:28 am    Post subject: Reply with quote

probably your "updatedb" is damaged by the first ctrl-c, so i would re-emerge the package it belongs to:

Code:
epm -qf /usr/bin/updatedb


epm gives as result "findutils-4.1.7-r1", so:

Code:
emerge rsync && emerge findutils

_________________
My favorite links this month:
- Surf Random
- Web-based SSH
- Stop Spam
Back to top
View user's profile Send private message
Napalm Llama
Guru
Guru


Joined: 04 Jun 2005
Posts: 533
Location: Cardiff, UK

PostPosted: Mon May 28, 2007 12:13 pm    Post subject: Reply with quote

Did you ever find the solution to this problem? I'm encountering it as well (and remerging things won't help, because I've just completed an emerge -e world)

[edit:]
Oh, apparently mine doesn't create /var/lib/locate - but then that file isn't present on my desktop system either, which has a perfectly functioning slocate.
_________________
Ryzen 5600x; Asus TUF Gaming B550-Plus; Geforce 1660 Super
Registered Linux User #381314
# killall humans
Back to top
View user's profile Send private message
Luud
Apprentice
Apprentice


Joined: 05 Jun 2003
Posts: 246
Location: Netherlands

PostPosted: Fri Nov 16, 2007 8:13 pm    Post subject: Slocate / updatedb tricky Reply with quote

There is a tricky bit with slocate.

In /etc/updatedb.conf a number of file system types are excluded from the search (see the PRUNEFS line). Most of these are unambiguous and a good choice. One of them is tricky: "auto".

If you have auto in /etc/fstab then your file systems mount fine and /etc/mtab will report the proper file system once they are mounted.

However, slocate will ignore "auto" file systems (probably because this is what you usually only use for removable devices).

So check you /etc/fstab and replace auto with the proper file system type OR remove auto from the PRUNEFS list.


P.S. I'm talking about "auto" and not "autofs"
_________________
"Great minds don't think alike. If they did, the patent office would only have about fifty inventions." - Wally
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sat Nov 17, 2007 1:44 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Other Things Gentoo.
Not about getting gentoo installed, so moved here.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum