View previous topic :: View next topic |
Author |
Message |
asmmsl n00b
Joined: 10 Jan 2003 Posts: 10
|
Posted: Sat Jan 18, 2003 8:01 am Post subject: updatedb problems |
|
|
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 |
|
|
garo Bodhisattva
Joined: 15 Jul 2002 Posts: 860 Location: Edegem,BELGIUM
|
Posted: Sat Jan 18, 2003 9:28 am Post subject: |
|
|
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 |
|
|
Napalm Llama Guru
Joined: 04 Jun 2005 Posts: 533 Location: Cardiff, UK
|
Posted: Mon May 28, 2007 12:13 pm Post subject: |
|
|
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 |
|
|
Luud Apprentice
Joined: 05 Jun 2003 Posts: 246 Location: Netherlands
|
Posted: Fri Nov 16, 2007 8:13 pm Post subject: Slocate / updatedb tricky |
|
|
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 |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Sat Nov 17, 2007 1:44 pm Post subject: |
|
|
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 |
|
|
|