Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
index your harddrive for faster searching [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
trsix
n00b
n00b


Joined: 07 Jun 2006
Posts: 29

PostPosted: Sat Jul 08, 2006 2:26 am    Post subject: index your harddrive for faster searching [SOLVED] Reply with quote

I hope that someone can help me out here.

1. I want to index my harddrive so i can search for things faster
- i heard that you could do this so that when youre searching for files on your harddrive you are just searching a database instead of actually searching the whose drive for the file relying on the speed of the drive.

2. I want to set up a cron job to have this file updated on a regular basis.

Any takers ? :)


Last edited by trsix on Sun Jul 09, 2006 8:58 am; edited 1 time in total
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9538
Location: beyond the rim

PostPosted: Sat Jul 08, 2006 3:28 am    Post subject: Reply with quote

Do you talk about slocate or something to index file contents as well?
Back to top
View user's profile Send private message
--D_S--
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jan 2005
Posts: 90
Location: Guatemala

PostPosted: Sat Jul 08, 2006 3:36 am    Post subject: Reply with quote

easy just emerge slocate:
Code:

# emerge slocate


To update slocate database use:
Code:

# updatedb


and add to cron
/etc/crontab wrote:

#min hour day month day-week job
0 0 * * 1 updatedb -e /mnt,/tmp,/var/tmp,/usr/portage


-e is for excluting dirs in the database
_________________

Athlon Xp 2400+
Back to top
View user's profile Send private message
trsix
n00b
n00b


Joined: 07 Jun 2006
Posts: 29

PostPosted: Sat Jul 08, 2006 4:16 am    Post subject: Reply with quote

Genone wrote:
Do you talk about slocate or something to index file contents as well?


Slocate is what i am looking for, Perfect !!!
Back to top
View user's profile Send private message
trsix
n00b
n00b


Joined: 07 Jun 2006
Posts: 29

PostPosted: Sat Jul 08, 2006 4:21 am    Post subject: Reply with quote

--D_S-- wrote:
easy just emerge slocate:
Code:

# emerge slocate



nice, i suspected there was a package for this, thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum