LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

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:

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 2632 Comments 0 the dsc is offline

  



All times are GMT -5. The time now is 01:32 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