LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Blogs > linux-related notes
User Name
Password

Notices


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.
Old

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

Posted 12-04-2020 at 12:52 PM by the dsc (linux-related notes)
Updated 12-04-2020 at 12:53 PM 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:

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

  



All times are GMT -5. The time now is 11:10 AM.

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