Announcement

Collapse
No announcement yet.

updatedb behavior when using bind mounts

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    updatedb behavior when using bind mounts

    I use bind mounts rather than symlinks to access my data files in a separate partition.

    I noticed when using "locate" much of my home directory would not be included in the results. It turns out that bind mounts are hidden from updatedb by default.

    To change the default behavior of updatedb, simply edit the file /etc/updatedb.conf

    Mine initially looked like this:
    Code:
    PRUNE_BIND_MOUNTS="yes"
    # PRUNENAMES=".git .bzr .hg .svn"
    PRUNEPATHS="/tmp /var/spool /media /home/.ecryptfs"
    PRUNEFS="NFS nfs nfs4 rpc_pipefs afs binfmt_misc proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs mfs shfs sysfs cifs lustre_lite tmpfs usbfs udf fuse.glusterfs fuse.sshfs curlftpfs ecryptfs fusesmb devtmpfs"
    and now it looks like this:
    Code:
    # PRUNE_BIND_MOUNTS="yes"
    # PRUNENAMES=".git .bzr .hg .svn"
    PRUNEPATHS="/tmp /var/spool /media /home/.ecryptfs /backups /shared"
    PRUNEFS="NFS nfs nfs4 rpc_pipefs afs binfmt_misc proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs mfs shfs sysfs cifs lustre_lite tmpfs usbfs udf fuse.glusterfs fuse.sshfs curlftpfs ecryptfs fusesmb devtmpfs"
    You can see I also added a couple paths I wanted ignored.

    IMO, the best thing about Linux is I have total control.
    Last edited by oshunluvr; May 08, 2013, 06:03 PM.

    Please Read Me
Working...
X