Dai Conrad wrote on Monday, February 27, 2006 1:05 AM:: > I've been having a problem with updatedb for a while now. The > symptoms are that late in the process it starts grinding my A: drive > and I have to hit ctrl-C to kill it. > ... > > Any suggestions or recommendations will be greatly appreciated.
I don't know what find is up to, but you're unlikely to want to have A: in your locatedb, so your first stop should be: $ man updatedb and search for "prune". It pays to tune your locatedb generation to suit your own system. Due to mount points, files are likely to appear several times in the database if not tuning is performed, which is pretty wasteful (both in terms of disk space, and the amount of time and disk thrashing spent indexing the same directory tree multiple times). Unless you need locate to show you all possible ways to refer to a file, you can reduce the database redundancy using a combination of --prunepaths and --localpaths. E.g. my crontab runs something like the following: /usr/bin/updatedb --localpaths="/ /c" --prunepaths='/c/cygwin /cygdrive /a /d /usr/bin /usr/lib' You can read this as: - Index / (i.e. C:\cygwin) and C: (mounted on /c) - Omit /c/cygwin as that's already covered by /. - Omit /cygdrive because that would access other filesystems. - Omit /a and /d (mountpoints for my floppy and DVD drives respectively). - /usr/bin is mounted as /bin and /usr/lib as /lib, so there is no point in indexing either /usr/bin or /usr/lib because they're already covered by /bin and /lib. HTH Phil -- ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the H.E Information Systems Ltd. Tel: 0161 866 9066 Web: www.heis.co.uk This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.clearswift.com ********************************************************************** -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/