updatedb how to "add" another path
How to add another path for updatedb?
I have another partition mounted under "/media" but it does not search it.
If I use
updatedb -U path
then it only searches "path".
How to "add" another path?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu findutils Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- oddemirci
- Solved:
- 2010-02-09
- Last query:
- 2010-02-09
- Last reply:
- 2010-02-09
Sam_ (and-sam) said : | #1 |
Partition is correctly recognized? Permissions are correct?
Reference:
https:/
https:/
https:/
oddemirci (oddemirci) said : | #2 |
What do you mean partitions regocnized? Of course it is recognized and everything working well. Please do not answer a question for which you don't have knowledge. I appreciate that you are trying to be helpful, though.
Sam_ (and-sam) said : | #3 |
oddemirci (oddemirci) said : | #4 |
Hello,
In the file updatedb.conf, /media is included by default:
PRUNEPATHS="/tmp /var/spool /media"
The problem is the following: I don't want anything in /media to be included, but I want /media/partition1 to be included.
Unfortunately, undatedb.conf has only the PRUNEPATHS option. This means that you can "subtract" a path from the database. But there should be a way to "add" a path to the database. It seems that the developers of updatedb did not include this capability.
Anyway, I will mount the partition to some other place.