How do you get autofs and updatedb to work together?

Posted by Veek.M on Super User See other posts from Super User or by Veek.M
Published on 2014-02-01T16:01:12Z Indexed on 2014/06/03 21:28 UTC
Read the original article Hit count: 179

Filed under:

/etc/my.misc

sda1    -fstype=ntfs,user,exec    :/dev/sda1
sda3    -fstype=ntfs,user,exec    :/dev/sda3
sda4    -fstype=ntfs,user,exec    :/dev/sda4

/etc/auto.master

/my /etc/my.misc --ghost 

When I run locate .pdf, I get nothing because though the mount points (sda1, sda2, ..) are created in /my - there's nothing in them till I access them. Unfortunately this is not good enough for updatedb and it purges its cache of /my/sdaX files. How do I prevent/solve this problem?

© Super User or respective owner

Related posts about linux