Problem: find not traversing /cygdrive/X properly?

Kevin Autrey Kevin.Autrey@pobox.com
Sun Oct 23 19:35:00 GMT 2005


I tried the lastest snapshot cygwin.dll - no changes - find still failed.

So, I bit the bullet and re-installed my Cygwin installation.  Same 
problem:  I can't do a 'find' from a top-level /cygdrive/X directory (and 
it seems to affect ONLY 'find' when searching from the top-level 
/cygdrive/X mount point).

When I do a 'find' command (in bash or tcsh):

>tka-16:/cygdrive/p> find /cygdrive/c -iname cdplayer.ini
>find: .: No such file or directory
>find: /cygdrive/c/.backupSettings: No such file or directory
>find: /cygdrive/c/AUTOEXEC.BAT: No such file or directory
>find: /cygdrive/c/boot.ini: No such file or directory
>find: /cygdrive/c/CONFIG.SYS: No such file or directory
>find: /cygdrive/c/Documents and Settings: No such file or directory
>find: /cygdrive/c/IO.SYS: No such file or directory
>find: /cygdrive/c/Log.txt: No such file or directory
>find: /cygdrive/c/MSDOS.SYS: No such file or directory
>find: /cygdrive/c/NTDETECT.COM: No such file or directory
>find: /cygdrive/c/ntldr: No such file or directory
>find: /cygdrive/c/PRIOR_SYSTEM: No such file or directory
>find: /cygdrive/c/Program Files: No such file or directory
>find: /cygdrive/c/RECYCLER: No such file or directory
>find: /cygdrive/c/System Volume Information: No such file or directory
>find: /cygdrive/c/Temp: No such file or directory
>find: /cygdrive/c/tomsteady.ini: No such file or directory
>find: /cygdrive/c/WINDOWS: No such file or directory
>find: /cygdrive/c/xPos.txt: No such file or directory


If I search a specific directory from the /cygdrive/X directory, it works:

>tka-16:/cygdrive/p> find /cygdrive/c/windows -iname cdplayer.ini
>/cygdrive/c/windows/CDPLAYER.INI



If I do 'find' on the "C:/" directory it works:

>tka-16:/cygdrive/p> find C:/ -iname cdplayer.ini
>C:/WINDOWS/CDPLAYER.INI


What's interesting is that if I do a 'find' on "/cygdrive/c/.", it also works!

>tka-16:/cygdrive/p> find /cygdrive/c/. -iname cdplayer.ini
>/cygdrive/c/./WINDOWS/CDPLAYER.INI



Does this clarify the problem or give more clues as to what might be going 
on? Is anyone else having this problem?

Kevin



At 13:20 10/17/2005  (Monday), Kevin Autrey wrote:
>Sorry for the private e-mail earlier... my e-mailer (Eudora) understands 
>"Reply-To:" but apparently not "Mail-Followup-To:".  :-(
>
>Anyway, mount -m returns the following (and the cygdrive-prefix looks good 
>to me):
>
>tka-16:/cygdrive> mount -m
>mount -f -s -b "d:/cygwin/bin" "/usr/bin"
>mount -f -s -b "d:/cygwin/lib" "/usr/lib"
>mount -f -s -b "d:/cygwin" "/"
>mount -s -t --change-cygdrive-prefix "/cygdrive"
>
>
>I then took your suggestion and downloaded the snapshot version of 
>cygwin1.dll, and rebooted:
>
>tka-16:/cygdrive/c> uname -a
>CYGWIN_NT-5.1 tka-16 1.5.19s(0.138/4/2) 20051013 22:16:34 i686 unknown 
>unknown Cygwin
>
>
>But the problem remains...
>
>Is the part where the path is "normalized" (from the earlier strace 
>listing) - when the drive letter goes missing from the 
>/cygdrive/.../filename path - is that normalization done in the 
>cygwin1.dll code or in the "find" application code?
>
>Kevin
>
>
>
>
>At 09:58 10/17/2005  (Monday), Eric Blake wrote:
>> > ----------------------  Forwarded Message:  ---------------------
>> > From:    Kevin Autrey <Kevin.Autrey AT pobox DOT com>
>> > To:      ericblake AT comcast DOT net (Eric Blake)
>> > Subject: Re: Problem: find not traversing /cygdrive/X properly?
>> > Date:    Mon, 17 Oct 2005 14:44:23 +0000
>> >
>> > Hi Eric -
>> >
>> > At 09:29 10/17/2005  (Monday), you wrote:
>> > > > Hi -
>> > > >
>> > > > After installing the latest updates on 2005-Oct-15 (those updates 
>> being
>> > > > whois, openssl, ncurses and cygwin-doc) - my "find" seems to be
>> > > > broken.  I've searched the mailing lists for relevant posts but 
>> didn't see
>> > > > any relevant posts (but hey, searching for "find" turns up a lot of
>> > > > non-related hits!).
>> > >
>> > >Nothing in that list looks like it would have made a difference.  Are you
>> > >sure you didn't also pick up something else new?
>> >
>> > Yeah, that's what I was thinking too - that nothing that was updated 
>> should
>> > have made a difference.
>> >
>> > Here are all of the files that got downloaded during the update on 
>> Saturday:
>> >
>> >
>> >
>> >tka-16:/cygdrive/e/cygwin/http%3a%2f%2fplanetmirror.com%2fpub%2fsourcewa 
>> r e%2fcy
>> > gwin>
>> > >find . -mtime 1 -ls
>> > >281474976710968    0 drwxrwxrwt 120 ???????? ????????        0 Oct 15
>> > >10:34 ./release
>> > >281474976710993    0 drwxrwxrwt   2 ???????? ????????        0 Oct 15
>> > >10:33 ./release/cygwin-doc
>> > >844424930139267  454 -rwxrwxrwx   1 Administrator  Users      929258 Oct
>> > >15 10:33 ./release/cygwin-doc/cygwin-doc-1.4-3.tar.bz2
>> > >281474976711045    0 drwxrwxrwt   6 ???????? ????????        0 Oct 15
>> > >10:34 ./release/ncurses
>> > >281474976711382    0 drwxrwxrwt   2 ???????? ????????        0 Oct 15
>> > >10:34 ./release/ncurses/libncurses8
>> > >844424930139268   84 -rwxrwxrwx   1 Administrator  Users      169516 Oct
>> > >15 10:34 ./release/ncurses/libncurses8/libncurses8-5.4-4.tar.bz2
>> > >1125899906849942  172 -rwxrwxrwx   1 Administrator  Users      349256 Oct
>> > >15 10:34 ./release/ncurses/ncurses-5.4-4.tar.bz2
>> > >281474976711049    0 drwxrwxrwt   4 ???????? ????????        0 Oct 15
>> > >10:34 ./release/openssl
>> > >1125899906849943  480 -rwxrwxrwx   1 Administrator  Users      980283 Oct
>> > >15 10:34 ./release/openssl/openssl-0.9.8a-1.tar.bz2
>> > >281474976711404    0 drwxrwxrwt   2 ???????? Users           0 Oct 15
>> > >10:34 ./release/openssl/openssl097
>> > >1125899906849944  276 -rwxrwxrwx   1 Administrator  Users      564535 Oct
>> > >15 10:34 ./release/openssl/openssl097/openssl097-0.9.7h-1.tar.bz2
>> > >562949953428536    0 drwxrwxrwt   2 Administrator  Users           0 Oct
>> > >15 10:34 ./release/whois
>> > >1125899906849945   20 -rwxrwxrwx   1 Administrator  Users       37227 Oct
>> > >15 10:34 ./release/whois/whois-4.7.8-1.tar.bz2
>> > >844424930139269    0 drwxrwxrwt   3 Administrator  Users           0 Oct
>> > >15 10:34 ./release/_obsolete
>> > >844424930139270    0 drwxrwxrwt   2 Administrator  Users           0 Oct
>> > >15 10:34 ./release/_obsolete/libpcre
>> > >1125899906849941    1 -rwxrwxrwx   1 Administrator  Users          46 Oct
>> > >15 10:34 ./release/_obsolete/libpcre/libpcre-4.1-2.tar.bz2
>> > >1125899906849946    1 -rwxrwxrwx   1 Administrator  Users         373 Oct
>> > >15 10:34 ./release/_update-info-dir/_update-info-dir-00322-1.tar.bz2
>> >
>> >
>> >
>> > > >
>> > > > The find command was working fine before I installed the 
>> latest/greatest
>> > > > updates, but now I get this output from the command:
>> > > >
>> > > > >tka-16:/cygdrive/p> find /cygdrive/c -iname win.ini -type f
>> > >
>> > >Works fine for me.
>> > >
>> > > >
>> > > > My mounts look okay:
>> > >
>> > >Actually, they don't.
>> > >
>> > > >
>> > > > >tka-16:/cygdrive/p> mount
>> > > > >D:\cygWIN\bin on /usr/bin type system (textmode)
>> > > > >D:\cygWIN\lib on /usr/lib type system (textmode)
>> > >
>> > >Yuck - you really want your bin and lib to be binmode.
>> >
>> > Okay, I changed the mounts to binmode (not sure how they got to be
>> > textmode...) - no improvement:
>> >
>> > >tka-16:/cygdrive/c> mount
>> > >d:\cygwin\bin on /usr/bin type system (binmode)
>> > >d:\cygwin\lib on /usr/lib type system (binmode)
>> > >d:\cygwin on / type system (binmode)
>> > >c: on /cygdrive/c type system (textmode,noumount)
>> > >d: on /cygdrive/d type system (textmode,noumount)
>> > >e: on /cygdrive/e type system (textmode,noumount)
>> > >i: on /cygdrive/i type system (textmode,noumount)
>> > >m: on /cygdrive/m type system (textmode,noumount)
>> > >p: on /cygdrive/p type system (textmode,noumount)
>> > >s: on /cygdrive/s type system (textmode,noumount)
>> > >v: on /cygdrive/v type system (textmode,noumount)
>> > >w: on /cygdrive/w type system (textmode,noumount)
>> >
>>
>>mount -m may be a little more informative here, if something
>>happened to mount --change-cygdrive-prefix.
>>
>> > and then:
>> >
>> > >tka-16:/cygdrive/c> find /cygdrive/c win.ini
>> > >/cygdrive/c
>> > >find: .: No such file or directory
>> > >find: /cygdrive/c/.backupSettings: No such file or directory
>> > >find: /cygdrive/c/AUTOEXEC.BAT: No such file or directory
>> > >find: /cygdrive/c/boot.ini: No such file or directory
>> > >find: /cygdrive/c/CONFIG.SYS: No such file or directory
>> > >find: /cygdrive/c/Documents and Settings: No such file or directory
>> > >find: /cygdrive/c/IO.SYS: No such file or directory
>> > >find: /cygdrive/c/Log.txt: No such file or directory
>> > >find: /cygdrive/c/MSDOS.SYS: No such file or directory
>> > >find: /cygdrive/c/NTDETECT.COM: No such file or directory
>> > >find: /cygdrive/c/ntldr: No such file or directory
>> > >find: /cygdrive/c/PRIOR_SYSTEM: No such file or directory
>> > >find: /cygdrive/c/Program Files: No such file or directory
>> > >find: /cygdrive/c/RECYCLER: No such file or directory
>> > >find: /cygdrive/c/System Volume Information: No such file or directory
>> > >find: /cygdrive/c/Temp: No such file or directory
>> > >find: /cygdrive/c/tomsteady.ini: No such file or directory
>> > >find: /cygdrive/c/WINDOWS: No such file or directory
>> > >find: /cygdrive/c/xPos.txt: No such file or directory
>> > >find: win.ini: No such file or directory
>> >
>> >
>> >
>> > > >
>> > > > If you run the same command on "C:/", it works fine:
>> > > >
>> > > > >tka-16:/cygdrive/p> find c:/ -iname win.ini
>> > > > >find: c:/System Volume Information: Permission denied
>> > > > >c:/WINDOWS/win.ini
>> > > >
>> > > > The cygcheck information follows the sigtrace information.
>> > >
>> > >This much information may have been better sent as an
>> > >attachment - 104k of inline text is a bit much.
>> >
>> > Oh.  Sorry - I read the cygwin.com Problems page wrong.  When it said
>> > "should be sent as an attachment" - brain cells tripped and interpreted it
>> > as "should not be sent as an attachment".  Sorry 'bout that...
>>
>>Maybe we should touch up that text to read "should *ALWAYS* be
>>sent as an attachment".
>>
>> >
>> > Kevin
>> >
>>
>>You may also want to try a snapshot - 1.5.19 is due soon,
>>and may have done something towards fixing whatever
>>is causing your issues.  But other than that, I am stumped.
>>
>>--
>>Eric Blake



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



More information about the Cygwin mailing list