bad file descriptor; e2fsprogs on cygwin

Help
2010-11-05
2012-11-28
  • hi,

    I have been trying to create an ext4 file-system on a 10g partition, from cygwin on windows 7.
    When i issued this command:

    $mkfs.ext4 /dev/sda2

    it fails saying that

    mkfs.ext4: Bad file descriptor while trying to determine filesystem size

    Please help!

    Thanks in advance,
    Phani.