How to use 'updatedb' and 'locate' on a second partition?

Edward Norton r00t3d at gmail.com
Fri Sep 15 16:24:03 MST 2006


On 9/14/06, Josef Lowder <joe at actionline.com> wrote:
>
> .
> When I run 'updatedb' it compiles a list of files only on my primary
> partition
> so I can then use 'locate' to find files I am searching for.
>
> Is it possible (I assume it is) and how would it be done (what syntax) to
> use
> 'updatedb' to build a separate list of files on a second (or third)
> partition
> so files could be searched for on those partitions?


slocate -U  /mnt/partition -o /path/to/new/db
Then to search that partition, `slocate -d /path/to/new/database
searchstring`
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.plug.phoenix.az.us/pipermail/plug-discuss/attachments/20060915/0c8a66f3/attachment.htm


More information about the PLUG-discuss mailing list