View previous topic :: View next topic |
Author |
Message |
Xanadu Guru
Joined: 10 Oct 2002 Posts: 335 Location: Hour West of Philly (USA)
|
Posted: Tue Dec 14, 2010 1:42 pm Post subject: [SOLVED] mlocate Doesn't Return Anything |
|
|
Hey!
qlist -Iv wrote: | # qlist -Iv mlocate
sys-apps/mlocate-0.23.1 |
With the move away from slocate a short bit ago, I have not gotten mlocate to do anything. updatedb runs fine (seemingly). A new db is created:
Code: | # date ; updatedb ; ls -l /var/lib/mlocate/
Tue Dec 14 08:33:02 EST 2010
total 13860
-rw-r----- 1 root locate 14192422 Dec 14 08:33 mlocate.db |
And when I use locate, nothing is returned:
Code: | # locate -i linux
# |
Here's the configs:
/etc/updatedb.conf wrote: | # $Id: updatedb.conf,v 1.3 2009/01/29 16:07:33 fauli Exp $
# This file sets variables that are used by updatedb.
# For more info, see the updatedb.conf(5) manpage.
# Filesystems that are pruned from updatedb database
PRUNEFS="afs auto autofs cifs devfs devpts eventpollfs futexfs gfs hugetlbfs iso9660 mqueue ncpfs nfs NFS nfs4 nfsd nnpfs pipefs proc ramfs rpc_pipefs selinuxfs sfs shfs smbfs sockfs subfs supermount sysfs tmpfs udf usbfs vperfctrfs"
# Paths which are pruned from updatedb database
#PRUNEPATHS="/tmp /var/tmp /root/.ccache"
PRUNEPATHS="/tmp /var/tmp /root/.ccache /usr/share/aclocal /usr/local/Backups"
# Skip bind mounts.
PRUNE_BIND_MOUNTS="no" |
/etc/mlocate-cron.conf wrote: | # nice value to run at: see -n in nice(1)
NICE="10"
# ionice class to run at: see -c in ionice(1)
# you have to install sys-apps/util-linux manually
IONICE_CLASS="2"
# ionice priority to run at: see -n in ionice(1)
IONICE_PRIORITY="7" |
Any ideas? I've already removed all traces of slocate since I read (somewhere) that mlocate will fine slocate's stuff and try and reuse that. I removed and remerged mlocate with --noconfmem hoping to force-overwrite anything from before (and anything still left from slocate that I may have missed...).
My filesystems are XFS, if that changes anything.
Code: | #------
/dev/sda5 /boot xfs rw,noatime 0 2
/dev/sda6 / xfs rw,noatime,logbufs=8 0 1
/dev/sda7 /usr/portage xfs rw,noatime,logbufs=8 0 2
/dev/sda8 none swap sw 0 0
#------
#------
/dev/sdb5 none swap sw 0 0
/dev/sdb6 /usr/local xfs rw,noatime,logbufs=8 0 2
#------
#------
# System Stuff
proc /proc proc defaults 0 0
shm /dev/shm tmpfs nodev,nosuid 0 0
#------ |
Help?
M. _________________ I'm not a prophet or a stone-age man
I'm just a mortal with potential of a super man
-David Bowie
Last edited by Xanadu on Sun Jan 09, 2011 6:20 pm; edited 1 time in total |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
Xanadu Guru
Joined: 10 Oct 2002 Posts: 335 Location: Hour West of Philly (USA)
|
Posted: Sun Jan 09, 2011 6:20 pm Post subject: |
|
|
UPDATE:
After I peeled my head off my desk after having noticed this, I decided to type this out.
I've fixed it and mlocate works 100% as advertised. I have *NO* idea why I put this line in /etc/profile, but since I'm the only one that uses this system, it must've been me:
Code: | alias locate="locate -l0" |
(that's lower-case L)
Meaning, it returns ZERO results! I dunno...
It's all good and working now.
M. _________________ I'm not a prophet or a stone-age man
I'm just a mortal with potential of a super man
-David Bowie |
|
Back to top |
|
|
|
|
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
|
|