Locate Command Problem on CentOS 5.5 Live CD

If it doesn't fit in another category, ask it here.
Post Reply
amtradm
Posts: 3
Joined: 2010/10/24 21:29:44

Locate Command Problem on CentOS 5.5 Live CD

Post by amtradm » 2010/10/24 21:49:41

FYI. I thought I’d give the Live CD developers a heads-up on a possible issue I found with the locate command. My apologies if I’m wrong or you’re already aware of it. The live CD was very satisfactory otherwise.

I get a message that /var/lib/mlocate/mlocate.db cannot be found
when attempting to use the locate on the subject CD

Upon checking the /var/lib/mlocate directory I found it was empty.

However, I was able to use locate using the directory of a non-active CentOS5.5 installation on a hard drive as follows:

locate -d /mnt/disc/hdai/var/lib/mlocate/mlocate.db object-sought

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Locate Command Problem on CentOS 5.5 Live CD

Post by pschaff » 2010/10/25 14:43:32

Welcome to the CentOS fora. Reading [url=https://www.centos.org/modules/newbb/viewforum.php?forum=47]FAQ & Readme First[/url] is recommended for new users.

The [b]locate[/b] command is meant to use the database regularly updated by [b]updatedb[/b] run by /etc/cron.daily/mlocate.cron; which does not really make sense for the LiveCD. I suppose it could be run once during the creation process to make the database. A RFE could be filed at the CentOS [url=http://bugs.centos.org/main_page.php]bug tracker[/url] or the [url=https://projects.centos.org/trac/livecd/]LiveCD project[/url].

Post Reply

Return to “CentOS 5 - Miscellaneous Questions”