Disk Utility
Disk Utility is a system utility for performing disk and disk volume-related tasks on macOS. Features include: Create, convert, backup, compress, and encrypt logical volume images from a wide range of formats to .dmg or, for CD/DVD images, .cdr Mount, unmount and eject disk volumes (including hard disks, removable media, and disk volume images) Enable or disable journaling Verify a disk's integrity, and repair it if damaged (works for both Mac-compatible partitions and for FAT32 partitions with Windows installed) Erase, format, partition, and clone disks Securely delete free space or disk using a "zero out" data, a 7-pass DOD 5220-22 M standard, or a 35-pass Gutmann algorithm Add or change partition table between Apple Partition Map, GUID Partition Table, and master boot record (MBR) Restore volumes from Apple Software Restore (ASR) images Check the S.M.A.R.T. status of a hard disk Disk Utility functions may also be accessed via the command line with commands diskutil and hdiutil. The commands also can create and manage RAM disk images.