This command will ask you to verify the name of the partition, just to be sure :) sudo $(brew -prefix e2fsprogs)/sbin/mkfs.ext3 /dev/disk2s1 but you may need to change the drive from disk2s1 to the partition or drive that you want to format.Note that this is the drive in the listing above, not the partition. If the drive is mounted, unmount it: diskutil unmountDisk disk2.figure out the name of your partition or drive using diskutil list - in my case, my partition had was on disk2 and had the identifier of disk2s1.install e2fsprogs using brew install e2fsprogs.The drive was already formatted, and had 3 partitions, and I wanted to convert partition 1 from FAT32 to ext3.
I needed to format a partition to ext3 on my USB flash drive.