Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-Id: <4.3.1.2.20000424144102.00da9360@pop.ma.ultranet.com> X-Sender: lhall AT pop DOT ma DOT ultranet DOT com X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Date: Mon, 24 Apr 2000 14:44:27 -0400 To: earnie_boyd AT yahoo DOT com, Richard Stanton , "cygwin AT sourceware DOT cygnus DOT com" From: "Larry Hall (RFK Partners, Inc)" Subject: Re: How to change "/" from textmode to binmode? In-Reply-To: <20000424181531.12173.qmail@web118.yahoomail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 02:15 PM 4/24/00, Earnie Boyd wrote: >--- Richard Stanton 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, > >===== >--- > Earnie Boyd: > __Cygwin: POSIX on Windows__ >Cygwin Newbies: > __Minimalist GNU for Windows__ > Mingw32 List: > Mingw Home: Earnie's quite right with his description (of not only the problem and solution but also the note of the nice respite this question has had!;-)) One thing he didn't mention that's worth noting is that the initialization which remounts / to c: only happens if you umount and try to remount outside bash/sh (i.e. from the DOS prompt.) Larry -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com