delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/04/11/10:13:46

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Mon, 11 Apr 2005 10:13:14 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Sebastian Schuberth <s DOT schuberth AT tu-bs DOT de>
cc: cygwin AT cygwin DOT com
Subject: Re: Change Default Text File Format after installation
In-Reply-To: <425A81B8.7080001@tu-bs.de>
Message-ID: <Pine.GSO.4.61.0504111005590.3740@slinky.cs.nyu.edu>
References: <425A74F1 DOT 4040906 AT tu-bs DOT de> <Pine DOT GSO DOT 4 DOT 61 DOT 0504110944330 DOT 3740 AT slinky DOT cs DOT nyu DOT edu> <425A81B8 DOT 7080001 AT tu-bs DOT de>
MIME-Version: 1.0

On Mon, 11 Apr 2005, Sebastian Schuberth wrote:

> > > where does Cygwin store whether the user has chosen DOS or UNIX as the
> > > "Default Text File Format" when installing? Is it possible to change that
> > > setting without re-installing Cygwin?
> >
> > In the mount table.  See "man mount".  Google for "cygwin remount binary"
> > for a handy one-liner.
>
> Thanks. The default mounts seem to be encoded in the Windows registry, as
> there is not fstab.

By "default mounts", do you mean the /cygdrive auto-mounts?

> It also seems I need to change the flags in a key named "cygdrive flags"
> if I want to change the mount mode of auto-mounted drives. Is that
> correct?

No, that is *NOT* correct.  The mounts are stored in the registry *now*,
but they aren't guaranteed to stay in the registry in the future.  What is
guaranteed, however, is that the "mount" command will *always* manipulate
the mount table, wherever it's stored.  Cygwin's "mount" is very different
from the Linux "mount" -- you really should read the "mount" manpage.

> Is there an explanation of the flags somewhere (well, without having to
> checkout all the source code and search for it ...).

The flags on the auto-mounted drives can be changed by setting them in
conjunction with the --change-cygdrive-prefix (-c) mount flag.  So, to
make them binary, just say

mount -sbc /cygdrive

(if you installed "for all users"), or

mount -ubc /cygdrive

(if you installed "just for me").

For the record, this list cannot support installations where the mounts
were changed by directly editing the registry.  Also, it would be a good
idea to read and follow <http://cygwin.com/problems.html>, especially the
part about attaching (as an uncompressed text *attachment*) the output of
"cygcheck -svr" on your machine.
	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!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
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/

- Raw text -


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