Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] mlocate Doesn't Return Anything
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
Xanadu
Guru
Guru


Joined: 10 Oct 2002
Posts: 335
Location: Hour West of Philly (USA)

PostPosted: Tue Dec 14, 2010 1:42 pm    Post subject: [SOLVED] mlocate Doesn't Return Anything Reply with quote

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
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Mon Dec 20, 2010 4:08 pm    Post subject: Reply with quote

Try moving the config files, forcing mlocate to create new defaults.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Xanadu
Guru
Guru


Joined: 10 Oct 2002
Posts: 335
Location: Hour West of Philly (USA)

PostPosted: Sun Jan 09, 2011 6:20 pm    Post subject: Reply with quote

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
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