Download your favorite Linux distribution at LQ ISO.
Go Back > Blogs
User Name


Just annotations of little "how to's", so I know I can find how to do something I've already done when I need to do it again, in case I don't remember anymore, which is not unlikely. Hopefully they can be useful to others, but I can't guarantee that it will work, or that it won't even make things worse.

It may be useful to have separate mlocate databases for removable drives

Posted 12-04-2020 at 11:52 AM by the dsc (linux-related notes)
Updated 12-04-2020 at 11:53 AM by the dsc
Tags locate, mlocate

Firstly because by default "/media" is pruned. But if you'd only remove it from there, then you'd end risking dumbly updating and erasing or rewriting stuff depending on which removable drive is plugged/mounted there.

A separate database can be created with commands along the lines of:

sudo updatedb --localpaths=/media/removable1 --output=/var/lib/mlocate/removable1.db
Apparently mlocate ignores the LOCATE_PATH environment variable, which could,...
Posted in Uncategorized
Views 2849 Comments 0 the dsc is offline


All times are GMT -5. The time now is 05:42 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration