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:
and now it looks like this:
You can see I also added a couple paths I wanted ignored.
IMO, the best thing about Linux is I have total control.
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"
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"
IMO, the best thing about Linux is I have total control.