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: Mon, 2 Sep 2002 17:28:08 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: mount trouble Message-ID: <20020902212808.GA22511@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <006a01c252c4$ea7c7d90$0100a8c0 AT wdg DOT uk DOT ibm DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <006a01c252c4$ea7c7d90$0100a8c0@wdg.uk.ibm.com> User-Agent: Mutt/1.3.23.1i On Mon, Sep 02, 2002 at 10:08:37PM +0100, Max Bowsher wrote: >Usman Muzaffar wrote: >> Hi - >> >> I accidentally typed 'umount -A' (remove all mounts) when I mean to >> type 'umount -U' (remove user mounts). >... >> How do I get >> back to where I was? > >mount -f -s -b "C:/cygwin/usr/X11R6/lib/X11/fonts" "/usr/X11R6/lib/X11/fonts" >#if you use X and want to textmode the rest, don't textmode this >mount -f -s -b "C:/cygwin/bin" "/usr/bin" >mount -f -s -b "C:/cygwin/lib" "/usr/lib" >mount -f -s -b "C:/cygwin" "/" Actually, for speed, you might also want to do this: # Tell cygwin that nothing in this directory should be opened # to check for "executableness", assume all cygwin executable mount -f -s -b -X "C:/cygwin/bin" "/usr/bin" # Tell cygwin that nothing in this directory should be opened # to check for "executableness", assume nothing executable # unless .exe mount -f -s -b -E "C:/cygwin/lib" "/usr/lib" # Tell cygwin that the following programs are non-cygwin-special # but are still executable. mount -f -s -b -x "C:/cygwin/bin/strace.exe" "/usr/bin/strace.exe" mount -f -s -b -x "C:/cygwin/bin/strace.exe" "/usr/bin/strace" mount -f -s -b -x "C:/cygwin/bin/cygcheck.exe" "/usr/bin/cygcheck.exe" mount -f -s -b -x "C:/cygwin/bin/cygcheck.exe" "/usr/bin/cygcheck" Also, mounting any directories exported via samba with the '-E' option should have a noticeable effect on speed since cygwin will not open files to look for the '#!' bits which indicate that a file is a script. Opening files over the network is an expensive operation. In general, if you tell cygwin via the mount table what type of files are located in specific directories, it will save a file open/read/close. That should translate into a slight speed increase. For more information see "man mount" (thanks, Joshua). cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/