Search code examples
javawindowsformattingusb-drivefat32

Formatting Fat32 usb drive on Windows


What is the best way to format an usb drive (> 32Gb) with Java on Windows?

I tried to use the format function:

Process p = Runtime.getRuntime().exec("CMD /C format f: /FS:FAT32 /Q /X /Y");

But the size of the drive is limited to 32Gb. My usb drive is larger than 100Gb.

Could I do it using JNI or will I be limited with the 32Gb?


Solution

  • Try this :

    http://www.ridgecrop.demon.co.uk/index.htm?fat32format.htm

    This is a 3rd party tool for formatting FAT32 drives beyond 32 GB limit. It has both command line and GUI modes.

    Exceeding 32 GB limit for FAT32 drives is not possible through the native "format" command on windows.