Skip site navigation (1) Skip section navigation (2)

Re: "/usr/bin" supposed to exist?

From: Frank Seesink <frank(at)mail(dot)wvnet(dot)edu>
To: pgsql-cygwin(at)postgresql(dot)org
Subject: Re: "/usr/bin" supposed to exist?
Date: 2003-10-04 22:14:31
Message-ID: blngoc$nrr$ (view raw, whole thread or download thread mbox)
Lists: pgsql-cygwin
Jason Tishler wrote:
> On Fri, Oct 03, 2003 at 04:09:40PM +0200, Cornelia Boenigk wrote:
>>if you try to find /usr/bin in Windows explorer: you don't see it,
>>seems not available.  if you run the cygwin bash and cd to /usr/bin
>>you will see all programmes installed.
> Under Cygwin, /usr/bin is a mount point:
>     $ mount | fgrep /usr/bin
>     C:\Cygwin\bin on /usr/bin type system (binmode)

Not sure, but this user may be experiencing the wonderful phantom 
/usr/bin issue, where /usr/bin is there if you type a command like

	cd /usr/bin

but if you type

	cd /usr

you don't see it.  This has happened to me twice now in the past 6 
months.  Not sure why, other than Cygwin setup.exe or one of the post 
install scripts mangling something along the way.

I found a post online someplace (Google for "missing Cygwin /usr/bin 
directory") on how to get things back the way they should be.  It 
basically involved ripping out the mount and then rebuilding it.  But be 
careful, because without the /usr/bin mounting, any commands you type 
(like 'ls') may require the full path.  Basically, to "rebuild" things 
so /usr/bin appears, do the following (assuming you have Cygwin 
installed at 'C:\cygwin'; adjust as necessary):

$ cd /usr
$ umount /usr/bin
$ /bin/rmdir bin
$ /bin/mkdir bin
$ /bin/mount -f -s -b "C:/cygwin/bin" "/usr/bin"

This should set things so you see the /usr/bin directory again.

Note I have not had an issue with apps not working when this occurs.  It 
is just that there does not "appear" to be a ./bin directory in /usr. 
All the usual commands, though, work to access the files at this mount 
point.  Very weird.  But I like directory listings to show things 
properly, so I do the above when necessary.

In response to


pgsql-cygwin by date

Next:From: stephan.michael.ruppDate: 2003-10-05 08:11:52
Subject: Re: "/usr/bin" supposed to exist?
Previous:From: Jason TishlerDate: 2003-10-04 15:00:57
Subject: Re: "/usr/bin" supposed to exist?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group