LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 03:19 PM   #1
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

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, 03: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, 03:46 PM   #3
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

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, 10:18 PM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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, 10:32 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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, 10:55 PM   #6
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

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 02:05 PM
What is the equivlent of locate and updatedb in suse? abefroman SUSE / openSUSE 2 05-07-2005 06:13 PM
Frontend for Updatedb and Locate? tbeehler Linux - Software 4 02-13-2004 10:07 AM
Updatedb and Locate - commands not found rodviking Linux - Software 3 11-17-2003 12:41 AM
updatedb/locate difficulty UB_KMA Linux - General 4 12-29-2002 06:28 PM

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

All times are GMT -5. The time now is 08:13 AM.

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