Can't format o repartition any USB or Flash Drive
This may be a problem with Disk Utility.app and diskutil. I would recommend booting into recovery mode (CMD + R at startup) and verifying the main hard disk. If this turns up fine then a reinstall or restoring from a backup where the problem did not take place is the way to go.