9

I want to format my USB stick to ext2. I have following tools installed. But don't know how to use them for my case:

  • Cygwin – I'm just a starter and not surely know how to use. (mkfs is also not included.)
  • Ext2Fsd – Don't know how to format Ext2. I found Change Partition Type and there are many types which I don't know.

Can anyone please guide me with steps on any of above tools (or) are there any other solutions?

studiohack
  • 13,477
4lvin
  • 175

2 Answers2

10

Install the e2fsprogs package from the installer and then you get the mke2fs (mke2fs.exe) command. Then, read this starting at the section "POSIX devices" to learn what device to tell it to format.

I've never done this. Be careful.

LawrenceC
  • 75,182
-1

sorry - formatting on answer is nasty

    echo -e "\nFormatting USB Key ${usbKey}"
    yy=`date +'%d%m%y'`
    echo "usbPath=${usbPath}"
    dosUSBPath_=`echo ${usbPath}|cut -d "/" -f3`; 
    dosUSBPath=`echo "${dosUSBPath_}:"`
    /cygdrive/c/Windows/System32/format.com ${dosUSBPath} /fs:fat32 /v:${yy} /q /x /y 
    echo -e "\nDrive contents now are :"; ls -lrt ${usbPath}

Will format the MicroSD card

/cygdrive/c/Windows/System32/format.com d: /fs:fat32 /v:210115 /q /x /y

The type of the file system is FAT32. QuickFormatting 7600M Initializing the File Allocation Table (FAT)... Format complete. 7.4 GB total disk space. 7.4 GB are available.

    4,096 bytes in each allocation unit.
1,941,503 allocation units available on disk.

       32 bits in each FAT entry.

Volume Serial Number is 2068-BD0A

Darren
  • 7