MacOS Commands

Erasing/Format Drives with the Mac Terminal

  • diskutil list ↲
  • diskutil unmountDisk /dev/disk0 ↲
    OR diskutil unmountDisk /force /dev/disk0 ↲
  • diskutil eraseDisk HFS+ MyDrive /dev/disk0 ↲                {APFS, HFS+, NTFS, ExFAT, FAT32}
  • diskutil eraseDisk FORMAT DRIVE_NAME /dev/diskX ↲

—————————————————————————————–

Compare
Category:

Reviews

There are no reviews yet.

Be the first to review “MacOS Commands”

Your email address will not be published. Required fields are marked *