LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-25-2003, 12:04 PM   #1
infidel
Member
 
Registered: Jun 2003
Location: Easley, SC, US
Distribution: Ubuntu 7.10, Mandrake 9.2
Posts: 91

Rep: Reputation: 15
Problem with GNOME Search for Files


Hello, all. A couple of days ago, I started having problems with GNOME's "Search for Files" utility. Any time I try to search for files anywhere other than in my home directory, I get the following message--

warning: slocate: warning: database /var/lib/slocate/slocate.db is more than 8 days old

--and no search results at all. I read the man page for slocate, and thought (based on what I had read) that the command slocate -U /var/lib/slocate might do something useful (this was probably a complete, newbie mistake...). Now when I search, even for a known file in a known location, I get "No Files Found." That is, the error message is gone, but Search won't even find files that I know are there.

I'm still very much learning my way around the filesystem, and GNOME's Search for Files is an essential utility for me. Any help would be greatly appreciated.
 
Old 06-25-2003, 12:26 PM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
You haven't left it on to run that job, apparently. That database needs to be rebuilt.

Open an x term and command this:
Code:
fancy@uilleann ~ $ su -
Password: 
root@uilleann ~ # updatedb
That will rebuild the locate database.
 
Old 06-25-2003, 03:11 PM   #3
infidel
Member
 
Registered: Jun 2003
Location: Easley, SC, US
Distribution: Ubuntu 7.10, Mandrake 9.2
Posts: 91

Original Poster
Rep: Reputation: 15
Thanks, fancypiper-- it worked like a charm.

I take it from your response that there's something that I ought to be doing to insure that the database is regularly and automatically updated. Is there a process I ought to have running, or is it something that Linux does on its own periodically? I'm still very, very new to this-- does it show?

If, when you say "you haven't left it on to run that job", you mean that I haven't left Linux on, that's because I'm still (unfortunately) dual-booting WinME. This duplicitous state of affairs will come to a screeching halt once I've finally figured out how to synchronize my PDA with Mandrake 9.1. Installing Linux was the best thing I've done for this aging machine; I like having an OS that does nothing more or less than what I ask it to do, and handles errors with a bit of grace.

Thanks again for your help.
 
Old 06-25-2003, 03:34 PM   #4
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
There are lots of jobs scheduled to run at various times.

Most distros schedule that particular job to run at around 3 am.

Browse through the directories that have cron in the name in your /etc directory

See the manual pages

man cron
man crontab

Most all of the cron jobs are scheduled in the early AM so as to disrupt uses as little as possible as updatedb can chug down the system and make it slow until it finishes.

Look in the /var/log directory for old logs you may need to remove as part of your system maintainence.

# Mandrake links
Mandrake home page
Mandrake Users website
Easy urpmi config for Mandrake
urpmi mini-HOWTO
Easy software management: Red Carpet
Maximum RPM
rpmfind
You didn't install the developmental packages? As root, command:
urpmi gcc
An Introduction to the Midnight Commander. You can install it by commanding:
urpmi mc
Midnight Commander home page

Last edited by fancypiper; 06-25-2003 at 03:36 PM.
 
Old 06-25-2003, 03:38 PM   #5
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
You might want to edit your profile to reflect your different OS. Look on the left of my post.
 
Old 06-26-2003, 01:47 AM   #6
infidel
Member
 
Registered: Jun 2003
Location: Easley, SC, US
Distribution: Ubuntu 7.10, Mandrake 9.2
Posts: 91

Original Poster
Rep: Reputation: 15
Thanks again for your help-- and your patience.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with .bin files in Gnome 2.6 bear2x Mandriva 2 02-23-2005 05:07 PM
To search for files of a particular size mufy Linux - General 1 12-09-2004 12:44 AM
Search for Files vs. ls albean Linux - Newbie 2 11-14-2004 02:35 PM
Gnome "Search for Files..." not into hidden directory max74 Linux - Software 2 09-11-2003 06:53 PM
can i search for files from the console? Chooco Linux - General 13 06-04-2002 12:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration