Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I would like to know if anyone knows how I can create a database of a file system on my computer. so I can choose this data base to search for files on this file system efficiently.

I ask this question since in man locate I found that I can choose a database for a different file system. Also would be great if /var/lib/mlocate/mlocate.db database can have the data of 2 disks

any approach ideas or others would be greatly appreciated.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

I'm sure if you appropriately modified /etc/updatedb.conf that it would accomodate multiple mount points (disks). In fact, I thought it looked at everything except the paths that were pruned off (contained in the /etc/updatedb.conf).

Thus you could still use the locate command to select the files from the generated database.

share|improve this answer
    
thanks, a lot for the info, I solved it mounting the disks into another directory, becuase media is pruned and I think is not a good idea to unprune media/ –  Pedro Teran Jun 8 '12 at 23:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.