Monday, April 4, 2011

A very important detail if you mount anything on /media

Categorized | Database, System, cli

Use locate across external devices in Linux

December 5th, 2010 by T4L

By default, updatedb indexes only your root partition when run. To be able to extend locate’s reach and get updatedb to index external devices such as USB harddisks and flash drives, edit the /etc/updatedb.conf file. Modify the following line:

PRUNEPATHS=”/tmp /var/spool /media”

so that it reads

PRUNEPATHS=”/tmp /var/spool”

This adds the devices mounted in the /media directory to the search path.

Author Profile

T4L ;

Other posts by T4L

Author's web site

Are you satisfied with this blog?
Why not subscribe our RSS Feed? you will always get the latest post.


Hi, Be the first leave some reply

Leave A Reply


I keep my user folders on /media/ DATA which until now has meant that I haven't been using the 'locate' command properly. Little wonder then, that this has frustrated me no end.

No comments:

Post a Comment