LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 01-21-2010, 08:45 AM   #1
Kropotkin
Member
 
Registered: Oct 2004
Location: /usr/home
Distribution: Mint, Ubuntu server, FreeBSD, Android
Posts: 362

Rep: Reputation: 32
updatedb.conf: how to add nfs drive?


Hi all,

I have a question about the locate command.

I would like an NFS drive to be added to the drives that are updated by updatedb. Here is my update.conf (default values):
Code:
PRUNE_BIND_MOUNTS = "yes"
PRUNEFS = "auto afs gfs gfs2 iso9660 sfs udf"
PRUNENAMES = ".hg .svn"
PRUNEPATHS = "/afs /net /sfs /tmp /udev /var/spool/cups /var/spool/squid /var/tmp"
As far as I can see, there is no option explicitly excluding NFS drives.

Neither, as far as my perusal of man updateddb.conf is there any way to telling updatedb to include a given path, only exclude one.
Anyone know way of getting it to include a path on an NFS drive?

Thanks.
 
Old 01-22-2010, 05:49 PM   #2
gankoji
Member
 
Registered: Nov 2007
Location: Southern California
Distribution: Slackware-13.0 x86_64, Slackware 12.2, slackware64-current
Posts: 225

Rep: Reputation: 35
If you look at that first option
Code:
PRUNE_BIND_MOUNTS="yes'
you will find your solution. Bind mounts are when you attach (or 'bind') another file system to your kernel's root system. This is pretty standard in linux. If you set that option to no, and have the NFS share mounted, updatedb will will likely include the NFS in your locate DB. Hope this helps!
 
  


Reply

Tags
locate, updatedb



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
ls: cannot access /etc/resolv.conf: stale nfs file handle - but i'm not using nfs schneidz Linux - General 4 10-02-2009 02:39 PM
What should I add into my xorg.conf file to add a resolution? gannggstaz Linux - Desktop 2 09-30-2009 06:06 PM
updatedb crashes: src/updatedb.c:730: scan_cwd: Assertion `name_size > 1' failed sumanc Fedora 3 07-11-2008 04:39 PM
how to configure updatedb.conf file for NFS sub-directory ursidious Linux - Newbie 1 04-05-2005 05:00 PM
Updatedb is crashing my usb2 external drive turls Linux - Hardware 1 12-06-2004 07:52 AM

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

All times are GMT -5. The time now is 01:50 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