How to change "/" from textmode to binmode?

Earnie Boyd earnie_boyd@yahoo.com
Mon Apr 24 11:15:00 GMT 2000


--- Richard Stanton <stanton@haas.berkeley.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,

=====
---
   Earnie Boyd: < mailto:earnie_boyd@yahoo.com >
            __Cygwin: POSIX on Windows__
Cygwin Newbies: < http://www.freeyellow.com/members5/gw32/index.html >
           __Minimalist GNU for Windows__
  Mingw32 List: < http://www.egroups.com/group/mingw32/ >
    Mingw Home: < http://www.mingw.org/ >

__________________________________________________
Do You Yahoo!?
Send online invitations with Yahoo! Invites.
http://invites.yahoo.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list