Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 370 Bytes

format-a-usb-disk-from-the-command-line.md

File metadata and controls

17 lines (11 loc) · 370 Bytes

Format A USB Disk From The Command Line

Category: Mac

You can format a USB disk from the command line. Identify the disk to format using the diskutil list command.

To format using Extended Journaled (JHFS+) format:

diskutil eraseDisk JHFS+ DiskName /dev/DiskId

To format using ExFAT:

diskutil eraseDisk ExFAT DiskName /dev/DiskId