X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=0.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 Date: Sat, 6 Nov 2010 10:08:50 +0530 Message-ID: Subject: /dev/sda2 - Bad file descriptor error with mkfs.ext4 on cygwin From: Phani Deepak Parasuramuni To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Hi, I am using Cygwin 1.7.7 =A0on Windows 7. I have installed e2fsprogs-1.41.12 on cygwin. I have carved out a 10G partition in my harddisk using windows disk manager. My 'cat /proc/partitions' command also lists out my sda2 partition, so I am sure that there is sda2 partition with 10G $ cat /proc/partitions major minor =A0#blocks =A0name =A0=A0 =A08 =A0 =A0 0 312571224 sda =A0=A0 =A08 =A0 =A0 1 302083072 sda1 =A0=A0 =A08 =A0 =A0 2 =A010484736 sda2 Now, I am trying to use mkfs.ext4 to create an ext4 file system on this partition. This is the command I am using: $/usr/sbin/mkfs.ext4 /dev/sda2 it fails with error message; "mkfs.ext4: Bad file descriptor while trying to determine filesystem size" Any idea why it is happening so? Thanks in advance, Phani. -- 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