Erase SSD on macOS

1970 + 1726955791

To remove partition table (e.g. GPT) from disks like SSD's you can write some zeroes to the device. It will erase all your data from the disk device.

# check for disk number (in our example it's `disk4`)
diskutil list

# unmount partitions if mounted any
sudo diskutil unmount disk4s2

# write 0's to the disk for the first 16 MBytes
sudo dd if=/dev/zero of=/dev/disk4 bs=4096 count=4096

More posts