www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/11/06/00:39:05

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: <AANLkTikzvPRgGjDT2fBodH0aCh5mAs0vjkW_76joRJXy@mail.gmail.com>
Subject: /dev/sda2 - Bad file descriptor error with mkfs.ext4 on cygwin
From: Phani Deepak Parasuramuni <phanidee AT gmail DOT com>
To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

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

- Raw text -


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