-   Linux - Software (
-   -   updatedb.conf: how to add nfs drive? (

Kropotkin 01-21-2010 09:45 AM

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):

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?


gankoji 01-22-2010 06:49 PM

If you look at that first option

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!

All times are GMT -5. The time now is 09:56 PM.