LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 08-28-2005, 04:19 PM   #1
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: SuSE 9.2 Professional, OpenSuSE 10.1 64 bit, Open SuSE 10.2, Debian Etch
Posts: 535

Rep: Reputation: 30
updatedb / locate doesn't appear to work


locate is not finding files that i know are there.
i've done an updatedb.
i've tried it both as root and as a regular user.

the files are on a hard drive at /mnt/bdrive/this/that/and/so/on

is there something special i must do with files under /mnt/?
 
Old 08-28-2005, 04:30 PM   #2
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
I don't know if updatedb will scan mounted devices; I don't think it'd index removable media. It'd be great if someone can confirm or deny this.
 
Old 08-28-2005, 04:46 PM   #3
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: SuSE 9.2 Professional, OpenSuSE 10.1 64 bit, Open SuSE 10.2, Debian Etch
Posts: 535

Original Poster
Rep: Reputation: 30
according to this:
http://wiki.linuxquestions.org/wiki/Updatedb
you have to explicitly _exclude_ /mnt if you don't want it
 
Old 08-28-2005, 11:18 PM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,796

Rep: Reputation: 323Reputation: 323Reputation: 323Reputation: 323
It's quite simple, really. If you want partitions and devices such as zip/cd media included in the locatedb, the partitions must be mounted at the time updatedb is run; the media must be in the drive and mounted if you want it (them) included in the locatedb.

Having said that, if you want files from /mnt/bdrive/this/that/and/so/on included in the locatedb, then /mnt/bdrive must be mounted when the updatedb command is run. If it is not mounted, updatedb won't see it, and won't include it in the locatedb.
 
Old 08-28-2005, 11:32 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,000
Blog Entries: 11

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
Quote:
Originally posted by allelopath
according to this:
http://wiki.linuxquestions.org/wiki/Updatedb
you have to explicitly _exclude_ /mnt if you don't want it
Please note that there's TWO DIFFERENT tools out
there. There's locate/updatedb and slocate/updatedb.

The latter uses a configuration file (/etc/updatedb.conf) and
in the distros that I've come across /mnt is in the PRUNE_PATH
section, which means that updatedb won't touch it.


Cheers,
Tink
 
Old 08-28-2005, 11:55 PM   #6
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: SuSE 9.2 Professional, OpenSuSE 10.1 64 bit, Open SuSE 10.2, Debian Etch
Posts: 535

Original Poster
Rep: Reputation: 30
Suse doesn't have slocate, darnit.
I see that KDE has a front end called klocate, but when i try to install that rpm, i end up in dependency hell.
 
  


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
how to configure updatedb to update locate database manually septanla Linux - General 4 12-22-2010 03:05 PM
What is the equivlent of locate and updatedb in suse? abefroman Suse/Novell 2 05-07-2005 07:13 PM
Frontend for Updatedb and Locate? tbeehler Linux - Software 4 02-13-2004 11:07 AM
Updatedb and Locate - commands not found rodviking Linux - Software 3 11-17-2003 01:41 AM
updatedb/locate difficulty UB_KMA Linux - General 4 12-29-2002 07:28 PM


All times are GMT -5. The time now is 06:15 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration