mount trouble

Christopher Faylor cgf@redhat.com
Mon Sep 2 14:28:00 GMT 2002


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/



More information about the Cygwin mailing list