delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/09/15/13:31:19

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Fri, 15 Sep 2000 13:30:27 -0400 (EDT)
From: David Condon <dcondon AT apk DOT net>
X-Sender: dcondon AT newstaff
To: cygwin AT sourceware DOT cygnus DOT com
Subject: Setting cygdrive prefix to '/' causes disappearing mounts
Message-ID: <Pine.GSO.4.10.10009151309010.24-100000@newstaff>
MIME-Version: 1.0

I have been experiencing a problem in which everything in the mount
table disappears. This happens when any program using the Cygwin DLL
is executed. With Regedit open, I can see that the keys containing the
mount points disappear.

I recreate the mount points that existed before. If I open an additional
window to the Cygwin bash without closing the first one, all mounts remain
in place.

If I start sshd as a service using SRVANY, as long as that program continues
to run, all mounts remain in place. When all programs requiring the Cygwin
DLL have been exited and nothing using the DLL is still running, the registry
keys still exist. The next time any Cygwin program is executed (not just
bash -- running any program under CMD.EXE does the same thing) all the
registry keys for the mounts immediately disappear.

This problem was apparently caused, at least in my case, by setting either a
user or system /cydrive prefix to '/'. It is 100% reproducible, and especially
interesting that even when only a user /cygdrive prefix is set to '/', all
system mounts will disappear. Now that I have a little better understanding
of how the cygdrive prefix works, I can see that there is really no good
reason to change it to '/' anyway. However, the User Guide uses this exact
command as an example (3.11, "Changing the default prefix") in the section
on "mount". It seems that it would be appropriate to change that to anything
other than '/' and add a warning that setting it to '/' causes the mount
table to be cleared.

-- 
David Condon                    |       dcondon AT apk DOT net
Webmaster, APK Net Ltd.         |       (216) 241-7166
1621 Euclid Ave., Suite 1230    |       Fax: (216) 241-7522
Cleveland, Ohio 44115


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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