Question

What is the diskutil equivalence from Disk Utility of

  • Format/Erase with Format MS-DOS(FAT) and Scheme GUID Partition Map.

  • Format/Erase with Format MS-DOS(FAT) and Scheme Master Boot Record.

In other words how do format/erase a disk with Console/Terminal?

Was it helpful?

Solution

The equivalent commands are given below.

diskutil eraseDisk MS-DOS GPT diskX
diskutil eraseDisk MS-DOS MBR diskX

Where diskX is the identifier for the drive. The value of X needs to be replaced with a integer of 0 or higher. The command diskutil list will list all the current disk identifiers. The command diskutil listfilesystems will list the available formats.

Licensed under: CC-BY-SA with attribution
Not affiliated with apple.stackexchange
scroll top