delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/04/24/14:49:29

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <390493FD.9179689C@veritas.com>
Date: Mon, 24 Apr 2000 11:35:41 -0700
From: Bob McGowan <rmcgowan AT veritas DOT com>
Organization: VERITAS Software
X-Mailer: Mozilla 4.7 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: earnie_boyd AT yahoo DOT com
CC: Cygwin Mailing List <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: How to change "/" from textmode to binmode?
References: <20000424181531 DOT 12173 DOT qmail AT web118 DOT yahoomail DOT com>

Earnie Boyd wrote:
> 
> --- Richard Stanton <stanton AT haas DOT berkeley DOT edu> wrote:
> > Following up on the exchange below, I find I can't change / back from text
> > to binmode, mainly because I can't unmount it, even though umount doesn't
> > complain:
> >
> > c:\>umount /
> >
> > c:\>mount
> > Device              Directory           Type         Flags
> > c:\cygnus\usr       /usr                user         binmode
> > c:\cygnus\bin       /usr/bin            user         binmode
> > c:\cygnus\lib       /usr/lib            user         binmode
> > \\.\tape0:          /dev/st0            user         textmode
> > \\.\tape1:          /dev/st1            user         textmode
> > \\.\a:              /dev/fd0            user         textmode
> > \\.\b:              /dev/fd1            user         textmode
> > C:                  /                   user         textmode
> >
> > c:\>
> >
> > How can I change / from textmode back to binmode if I want to do so?
> >
> 
> Gee, I haven't seen this discussed for months/years.  The reason that it
> appears you can't umount / is simple.  The initialization of the Cygwin1.dll
> will create the / directory mount if it doesn't exist.  You actually do remove
> the entry for / with the umount; however, when you do mount to check to see if
> it's gone it gets added back during the initialization.  This has been resolved
> by today's version of mount which uses a -f switch to replace the existing
> entry.  I.E.: mount -f -b c:/ / would add make c:/ the root with binary mode
> processing as the default.
> 
> Cheers,

In an earlier response to the original question, Chris Faylor suggested
using 'mount -?' to get descriptions of options and that one of these
should help.  So I was trying out mount with different options, in
different ways, and came up with a new issue.

It appears that I can create an environment where / is mounted on 2
different locations, one stored at the system level and one at the
user.  It would seem to me to make sense that 'mount' should not allow
duplicates of system level mount points at the user level.  Is this a
valid conclusion?

-- 
Bob McGowan
Staff Software Quality Engineer
VERITAS Software
rmcgowan AT veritas DOT com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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