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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-28-2005, 03:19 PM
|
#1
|
|
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:
|
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/?
|
|
|
|
08-28-2005, 03:30 PM
|
#2
|
|
Senior Member
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,178
Rep:
|
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.
|
|
|
|
08-28-2005, 03:46 PM
|
#3
|
|
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:
|
according to this:
http://wiki.linuxquestions.org/wiki/Updatedb
you have to explicitly _exclude_ /mnt if you don't want it
|
|
|
|
08-28-2005, 10:18 PM
|
#4
|
|
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,595
|
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.
|
|
|
|
08-28-2005, 10:32 PM
|
#5
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,916
|
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
|
|
|
|
08-28-2005, 10:55 PM
|
#6
|
|
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:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:25 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|