This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: /dev/sda2 - Bad file descriptor error with mkfs.ext4 on cygwin
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 15 Nov 2010 17:10:46 +0100
- Subject: Re: /dev/sda2 - Bad file descriptor error with mkfs.ext4 on cygwin
- References: <AANLkTikzvPRgGjDT2fBodH0aCh5mAs0vjkW_76joRJXy@mail.gmail.com>
- Reply-to: 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