Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

locate command ignores other hard drives

  • 02-05-2011 11:33AM
    #1
    Moderators, Arts Moderators Posts: 36,236 Mod ✭✭✭✭


    Pretty straightforward problem - the locate command only finds files on my primary hard drive, ignoring the two other ones where all my media files reside. Is there some way of forcing locate to index drives other than the one where / is mounted?


Comments

  • Registered Users, Registered Users 2 Posts: 1,929 ✭✭✭PrzemoF


    Make sure those 2 are mounted and run "updatedb"? ( http://linux.die.net/man/1/locate )


  • Moderators, Arts Moderators Posts: 36,236 Mod ✭✭✭✭pickarooney


    They're all automounted and ext3. I'll check updatedb.conf.


  • Moderators, Arts Moderators Posts: 36,236 Mod ✭✭✭✭pickarooney


    Problem solved, thanks.

    /media was in the PRUNEPATHS list. It might not be such a good idea that I have my drives mounted there come to think of it as now any USB sticks or CDs will be included in the locate db. I can always explicitly exclude /media/disk etc. if needs be.


Advertisement