Wrong/ inconsistent responses from diff

Corinna Vinschen corinna-cygwin@cygwin.com
Tue Aug 24 16:08:00 GMT 2010

On Aug 24 14:12, Fergus wrote:
> >> Would you mind to paste the file content of /etc/fstab and, if it
> >> exists, /etc/fstab.d/$USER into your reply?
> > Oh and, btw., could you please test if this still occurs with the
> > latest developer snapshot from http://cygwin.com/snapshots/
> Thanks as usual for taking an interest and trying to help with this.
> I have identified where the strange behaviour is induced on my system:
> ~> mount -p
> Prefix              Type         Flags
> /cygdrive           user         binmode
> ~> mount -c "/"
> ~> mount -p
> Prefix              Type         Flags
> /                   user         textmode
> The change from binmode to textmode seems to be induced by the
> command mount -c "/" [...]

Found it.  The method to compute the mount flags from the options
given to the mount(1) command have been changed and accidentally the
default is 0, instead of MOUNT_BINARY.  Fixed in CVS.   For the time
being, the workaround is to set the mount option explicitely:

  mount -o binary,... -c /

or, which is much less error-prone in the long run, to create a cygdrive
mount in /etc/fstab.

> Here is where it gets awkward: I don't have a /etc/fstab or
> /etc/fstab.d/$USER. I think I never had the latter and lost the
> former at some point.

Since it's auto-generated, you must have deleted it.

> Not having it, didn't seem to matter. And,
> sorry, I can't even remember what it's for:

That's what a User's Guide is for:


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

More information about the Cygwin mailing list