Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Wed, 25 Aug 2004 17:56:00 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Mike cc: cygwin AT cygwin DOT com Subject: Re: Why umount -A is a really bad idea In-Reply-To: <20040825210724.GG29527@mikee.ath.cx> Message-ID: References: <412CFBCB DOT 3040808 AT breame DOT com> <20040825210724 DOT GG29527 AT mikee DOT ath DOT cx> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.39 On Wed, 25 Aug 2004, Mike wrote: > On Wed, 25 Aug 2004, Colin JN Breame wrote: > > > I tried this once, just to see what would happen. I then spent the > > next hour restoring the mount points. I've learnt a valuable > > lesson... > > Why would a 'mount -a' not work after your 'umount -a' to restore the > mounts? > > Mike Because Cygwin's mounts aren't the same as Unix mounts. The mount and umount commands on Cygwin modify the mount table directly, so that a umount really is permanent. However (and this concerns the OP, too), you can save the mount table as the output of "mount -m", which you can later use to restore the mounts. For those unfortunate enough to have done a "umount -a" without saving the mounts via "mount -m", the minimum necessary mounts for Cygwin to work are mount -sbc /cygdrive mount -fsb c:/cygwin / mount -fsb c:/cygwin/bin /usr/bin mount -fsb c:/cygwin/lib /usr/lib (that is provided that you installed Cygwin in c:/cygwin). 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! "Happiness lies in being privileged to work hard for long hours in doing whatever you think is worth doing." -- Dr. Jubal Harshaw -- 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/