delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/02/17:28:19

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
Date: Mon, 2 Sep 2002 17:28:08 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
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: <akvkob$55l$1 AT main DOT gmane DOT org> <006a01c252c4$ea7c7d90$0100a8c0 AT wdg DOT uk DOT ibm DOT com>
Mime-Version: 1.0
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/

- Raw text -


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