Securely erase an external disk using dd on OSX Plug in your SD card, HDD, or other block device and then use the following command to see which /dev/diskN node it's located on: diskutil list Unmount the disk where “N� is the number of the disk taken from the above command: