This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Files in /usr/bin
Larry Hall (Cygwin) wrote on Friday, February 27, 2009 3:43 PM:
> On 02/27/2009, Buchbinder, Barry (NIH/NIAID) [E] wrote:
>> As I understand it, </usr/bin> is mounted on </bin>; everything
>> should
>> be in </cygdrive/c/cygwin/bin> and nothing in
>> </cygdrive/c/cygwin/usr/bin>.
>
> I think your notation for the last part of your statement is wrong.
> Since '/cygdrive/c' is Cygwin notation, what's in
> '/cygdrive/c/cygwin/bin' should match what's in
> '/cygdrive/c/cygwin/usr/bin'. In Windows, everything would be in
> 'c:\cygwin\bin' and nothing in 'c:\cygwin\usr\bin'.
Getting there via /cygdrive was my attempt to avoid mount magic.
After cleaning out </c/cygwin/usr/bin/>, here's what I get:
$ cd /bin
/bin> ls | wc
1648 1648 21143
$ cd /usr/bin
$ ls | wc
1648 1648 21143
$ cd /cygdrive/c/cygwin/bin
$ ls | wc
1648 1648 21143
$ cd /cygdrive/c/cygwin/usr/bin
$ ls | wc
0 0 0
So the contents of </bin> and </usr/bin> do match, but
</cygdrive/c/cygwin/bin> and </cygdrive/c/cygwin/usr/bin> don't.
___
Extending my OP:
As an additional datum, after cleaning out </c/cygwin/usr/bin/>, I
reinstalled everything using setup. </c/cygwin/usr/bin/> refilled.
I have a suspicion that the mount table might have had something to
do with it, since it appeared to me to be squirrelly. It was
mount -f -u -b "h:/cygwin/usr/sbin" "/share/sbin"
mount -f -u -b "h:/cygwin/usr/sbin" "/sbin"
mount -f -u -b "c:/cygwin/usr/bin" "/usr/bin"
mount -f -u -b "c:/cygwin/usr/bin" "/bin"
mount -f -u -b "c:/cygwin/usr/lib" "/usr/lib"
mount -f -u -b "c:/cygwin/usr/lib" "/lib"
mount -f -u -b "h:/cygwin/arc" "/arc"
mount -f -u -b "c:/cygwin" "/"
mount -f -u -b "c:/BW" "/BW"
mount -f -u -b "c:/WS" "/WS"
mount -u -b --change-cygdrive-prefix "/"
and is now
mount -f -u -b "c:/cygwin/usr/sbin" "/sbin"
mount -f -u -b "c:/cygwin/usr/lib" "/lib"
mount -f -u -b "c:/cygwin/bin" "/usr/bin"
mount -f -u -b "h:/cygwin/arc" "/arc"
mount -f -u -b "c:/cygwin" "/"
mount -f -u -b "c:/BW" "/BW"
mount -f -u -b "c:/WS" "/WS"
mount -u -b --change-cygdrive-prefix "/"
There was also a fair amount of duplication between </lib> and
</usr/lib>, and </sbin> and </usr/sbin>.
In any case, right now I'm not asking that someone makes this stop
happening, though I may consider changing my mind after 1.7 goes
gold.
Thanks for the input.
- Barry
Disclaimer: Statements made herein are not made on behalf of NIAID.