Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-Id: <4.3.2.7.0.20020419162200.0203d918@irispavp.igb.umontreal.ca> X-Sender: bleau2 AT irispavp DOT igb DOT umontreal DOT ca Date: Fri, 19 Apr 2002 16:45:34 -0400 To: cygwin AT cygwin DOT com From: Andre Bleau Subject: Bug with /cygdrive/X in binmode Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g3JMOAZ03711 I'm having trouble mounting some of my drives in binmode. As an ordinary user, I tried: mount -b -f E: /cygdrive/e To mount the E: drive in binmode. Mount reports: $ mount C:\cygwin\bin on /usr/bin type system (textmode) C:\cygwin\lib on /usr/lib type system (textmode) C:\cygwin on / type system (textmode) E: on /cygdrive/e type user (binmode) c: on /cygdrive/c type user (textmode,noumount) d: on /cygdrive/d type user (textmode,noumount) z: on /cygdrive/z type user (textmode,noumount) Writing to files under /cydrive/e still converts \n to \r\n. I used the following test program (testNL.c): #include main () { FILE *fd; fd = fopen("HelloWorld", "w"); fprintf(fd, "Hello world\n"); } Compiled with: gcc -g testNL.c -o testNL Test results: cd /cygdrive/e/Partage/Images testNL od -c HelloWorld 0000000 H e l l o w o r l d \r \n 0000015 However, creating another binary mount point, things work as they should: mkdir /Partage mount -b E:/Partage /Partage $ mount C:\cygwin\bin on /usr/bin type system (textmode) C:\cygwin\lib on /usr/lib type system (textmode) E:\Partage on /Partage type user (binmode) C:\cygwin on / type system (textmode) E: on /cygdrive/e type user (binmode) c: on /cygdrive/c type user (textmode,noumount) d: on /cygdrive/d type user (textmode,noumount) z: on /cygdrive/z type user (textmode,noumount) cd /Partage/Images testNL od -c HelloWorld 0000000 H e l l o w o r l d \n 0000014 It seems that users cannot remount their drives in binmode but only subdirectories. cygwin version is 1.3.10-1 André Bleau, ing., associé de recherche bleau AT igb DOT umontreal DOT ca Laboratoire de recherche en imagerie et orthopédie (LIO) École de technologie supérieure (ETS) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/