delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/11/15/11:11:55

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 15 Nov 2010 17:10:46 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: /dev/sda2 - Bad file descriptor error with mkfs.ext4 on cygwin
Message-ID: <20101115161046.GD17405@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <AANLkTikzvPRgGjDT2fBodH0aCh5mAs0vjkW_76joRJXy AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <AANLkTikzvPRgGjDT2fBodH0aCh5mAs0vjkW_76joRJXy@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Nov  6 10:08, Phani Deepak Parasuramuni wrote:
> Hi,
> 
> I am using Cygwin 1.7.7  on 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  #blocks  name
>     8     0 312571224 sda
>     8     1 302083072 sda1
>     8     2  10484736 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?

UAC?  You need to run an elevated shell to be able to write to disk
partitions.


Corinna

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

- Raw text -


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