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 X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Sat, 30 Aug 2003 15:34:01 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: "Hannu E K Nevalainen (garbage mail)" cc: cygwin AT cygwin DOT com Subject: Re: "Automatic" mount update In-Reply-To: Message-ID: References: Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sat, 30 Aug 2003, Hannu E K Nevalainen (garbage mail) wrote: > Below I have enclosed a bash session that has me a bit baffled > > Note that I have made attempts to have the active mounts saved into > /cygwin.mnt (as the two first bash command printouts shows). This is meant > to automate any CHANGES in the mount points between my OS changes (Dual > boot: W98SE and W2K Advanced Server). > {bash PPID/PID and "exit status" (s=) shown in the prompt} > > The /F1 and /F2 mounts seems to have "stuck", I have "umount"-ed them > several times with all "tricks" and umount flags that I can think of beeing > relevant - still they show up next time I launch bash! > > Do I need to "umount -A" in "~/.bash_logout"? > How would this affect any running rxvt/bash instances? > (I do suspect problems) > > Anyone here who can shed some light on the matter? > > /Hannu E K Nevalainen > [snip] > $ mount > \\FUJITSU1 on /F1 type system (binmode) > \\FUJITSU2 on /F2 type system (binmode) ^^^^^^ > $ umount -su /F1 > umount: /F1: No such file or directory > $ umount -su /F2 > umount: /F2: No such file or directory I believe you need to use "umount -s /F1" and "umount -s /F2". I think the -s and -u flags might be mutually exclusive, or, rather, one overrides the other (thus, if you specify -su, only -u is recognized). > $ umount -s /F2 > $ umount -s /F1 Yep, just like this. > $ mount > C:\Program\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type system (binmode) > C:\Program\cygwin\bin on /usr/bin type system (binmode) > C:\Program\cygwin\lib on /usr/lib type system (binmode) > C:\Program\cygwin on / type system (binmode) > $ mount -m >cygwin.mnt > $ cat cygwin.mnt > mount -f -s -b "C:/Program/cygwin/usr/X11R6/lib/X11/fonts" "/usr/X11R6/lib/X11/fonts" > mount -f -s -b "C:/Program/cygwin/bin" "/usr/bin" > mount -f -s -b "C:/Program/cygwin/lib" "/usr/lib" > mount -f -s -b "C:/Program/cygwin" "/" > mount -s -b --change-cygdrive-prefix "/cygdrive" So, what's the problem? You seem to have gotten rid of the /F1 and /F2 mounts here... Can you please show a log of the invocation of a new "bash --login -c /bin/mount" from the cmd prompt? Do the mounts show up again? How about "bash --login -x -c /bin/mount"? Do you see where these mounts are added? 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! "I have since come to realize that being between your mentor and his route to the bathroom is a major career booster." -- Patrick Naughton -- 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/