Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <3A6E8A4D.30461468@mvseac.com> Date: Tue, 23 Jan 2001 23:54:53 -0800 From: L Anderson Organization: WA State Spummeler X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en,ru MIME-Version: 1.0 To: cygwin Subject: Re: 1.1.7:mount and ls problem References: <3A6E25E8 DOT 63091A22 AT mvseac DOT com> <3A6E3D52 DOT A697CA49 AT yahoo DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi Earnie, Thanks for your reply. I have commented below: Earnie Boyd wrote: > > L Anderson wrote: > > > Hi, > > > > Being new to Cygwin, I searched the faq and mail archives but could find > > no answer to my question. An answer would be appreciated. > > > > I'm running Win98 and Cygwin 1.1.7. > > > > I have drives ... e:, f:, g: ... on win98. I installed cygwin on g:. I > > fire up cygwin and do: > > cd / > > mkdir e > > mount e: /e > > All is well -- e shows up in both an ls ( as e) and mount (as e: /e). > > > > Now I do: > > mount f: /f > > I get the error: > > mount: warning - /f does not exist > > but mount shows > > f: f/ . . . > > and ls doesn't show f. > > Note: it says warning, it doesn't say error. The non-list would be the > reason for the warning. IMO, it's probably time to make it an error. > Ah! Since it says "warning", the "principle of least astonishment" should not have been violated and therefore, the software should have acted consistent with my first example, i.e., have done a "mkdir f" before doing the "mount f: f/"? At this point, I don't know what you mean by "non-list", so I can't comment. Based on the "side effects" of the command sequence, I agree. The software should have "done it right" or only issued an error message that said, effectively, "Hey dude, create the damn directory before you do a mount! Don't leave it up to me!" :-) > > > > > > If I do an ls f, all the files under f:'s root are listed. > > > > > If I do mkdir f, I get: > > mkdir: cannot make directory `f': File exists > > > > Yes, another reason for the warning. You can either umount /f and then do > the mkdir /f and mount f:/ /f or you can mkdir /cygdrive/c/cygwin/f > assuming / is pointed at c:/cygwin > I figured this out but it still doesn't answer why the directory for f (mount point) looks like any other directory but doesn't show up in an "ls" in the root? > > > > So where is f hiding except in the mount table? > > > > The mount table, in the windows registry. > This confirms what I expected but why doesn't "f" show up in an "ls" in the root (/)? > > > > Why does f seem to work like any other directory (I can cd to it or its > > subdirs and ls their contents) but not show up in an ls at the root? > > > > Is this a bug or a feature? > > > > It's a feature with old history. > Sounds like the code needs a good "slap side da head"! Unfortunately, I'm not there yet. Is it a problem with "mount", "ls", "cygwinxxx.dll", or ...? Thanks for your help! Lowell Anderson -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple