Re: How to use 'updatedb' and 'locate' on a second partition…

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: Edward Norton
Date:  
To: Main PLUG discussion list
Subject: Re: How to use 'updatedb' and 'locate' on a second partition?
On 9/14/06, Josef Lowder <> 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`
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss