Search This Blog

Mac OS diskutil command to repartition USB drive

I have a 8GB USB drive with APPLE EFI partition, which I found cannot erase with Disk Utility. I use the following commands to remove all the partitions and format it to FAT32 format.
  • Find the usb disk device name
    diskutil list
  • Repartition the USB drive:
    diskutil partitionDisk disk2 MBR "MS-DOS FAT32"  "NO NAME" 100%
    

No comments:

Post a Comment