This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Why I can see windows drives?


* Peng Yu (2004-05-08 21:33 +0100)
> When I run "df", I got.
> [...]
> 
> When I run "ls -a /", I can see the directory cygdrive.
> 
> BTW, when I run "locate abc", it only searchs with the directory of cygwin.
> How can I make it search all the harddrives on my computer?

Additional to Brian Dessent's reply I want to state that creating a 
directory is not sufficient. updatedb searches unreliably under 
/cygdrive; you may get an error like "find: foo changed during 
execution".

To avoid updatedb searching in / and in /cygdrive (and to avoid locate 
giving examples twice) make yourself an alias like:
'nice -n 19 updatedb --prunepaths="/cygdrive /cygdrive/c/cygwin"  --localpaths="/ /cygdrive/c" 2> /dev/null'

Thorsten


--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]