delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/31/13:09:24

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Fri, 31 Oct 2003 13:08:59 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: "Lee D. Rothstein" <lee AT veritech DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Mount Confusion -- the tallest pique in the world? ;-)
In-Reply-To: <6.0.0.20.0.20031030083220.071a6320@rogue.codemeta.com>
Message-ID: <Pine.GSO.4.56.0310311247130.13697@slinky.cs.nyu.edu>
References: <6 DOT 0 DOT 0 DOT 20 DOT 0 DOT 20031030083220 DOT 071a6320 AT rogue DOT codemeta DOT com>
Importance: Normal
MIME-Version: 1.0

On Thu, 30 Oct 2003, Lee D. Rothstein wrote:

> Either Cygwin or I be confused. (I'm betting on "I". ;-))

Bingo.

> I have deleted '/tmp' ('d:/Cygwin/tmp' -- using Explorer)
> and issued: 'umount /tmp' and 'mount 'e:\tmp /tmp' repeatedly.
                                                     ^^^^^^^^^^
Umm, why?  Once should have been enough.

> All the other mounts to '/' appear in an 'ls' of '/',
> but '/tmp' ('e:/tmp'), does not.

What other mounts to "/"?  "/" itself is a mount, but under it everything
should be either a real or virtual (/proc, /dev) directory.

> While the apps seem to find 'e:/tmp', should I be worried?

No.  Mounts can be associated with non-existing directories, and will work
just fine.  If you want tab completion, you can simply "mkdir
/cygdrive/d/Cygwin/tmp" -- it will then show up in "ls /" and allow tab
completion, e.g., "/tm[Tab]".  BTW, unless you repeat this trick with
/proc and /dev, they won't show up in "ls /" either.

> Prior to my doing any of the above (w/ Cygwin root at
> 'c:/_Programs/Cygwin'), I've had recurring instances of something
> (apps?, 'setup.exe?, what?) creating 'tmp' and more frequently 'var' on
> both my 'c:' and 'e:' drives. This problem seems to have subsided since
> I moved the Cygwin root directory from 'c:/_Programs/Cygwin' to
> D:/Cygwin'.

I'd bet you were installing as one user and running as another.

> Also, after I moved Cygwin, despite changing all the references in the
> profile and Windows environment variables, *and* reinstalling the whole
> of Cygwin, "Cygwin" "insisted" on looking at the C/_Programs... : root
> rather than the D:/Cygwin... directory
>
> Anybody know what's causing this?

Stale user mounts?  Your "/", "/usr/bin" and "/usr/lib" mounts appear to
be user mounts.  You should probably remount them as "system" (i.e.,
'mount -f -s -b d:/Cygwin /', 'mount -f -s -b d:/Cygwin/bin /usr/bin',
'mount -f -s -b d:/Cygwin/lib /usr/lib', and 'umount -U').

Also, your system cygdrive prefix is marked "textmode"; you should change
it to "binmode" to avoid spurious errors (by 'mount -s -b -c /').  It's
not very safe to have it set to '/' anyway...

> Note that at the end of the attached 'cycheck -shv', there is
> the following error message:
>
> cygcheck: dump_sysinfo: GetVolumeInformation() failed: 1
>
> which seems to be coincidental when it checks the 'a:/' floppy drive.

This is expected.

> Thanks,
> Lee

Oh, and another small thing:

cls = `() {  cmd /c cls
}'

Why not install the "clear" package and 'function cls() { clear }'? ;-)
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019