Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

kamba

macrumors newbie
Original poster
Oct 29, 2019
1
0
Hello mac users.
Sorry for my bad english.

On my duty I have to work with hard drives / ssd / usb flash.
I'm buying / selling / upgrading drives for my clients.
Sometimes I need to check the disk before sell it (read/write speed).
When I connect a new disk it is unallocated, system says: hey would you like to format it?
As in this picture
Screenshot 2019-10-30 at 13.09.11.png

Screenshot 2019-10-30 at 12.41.43.png


After I format the disk, the chosen partition appears on it.
Then I make some tests to know disk is in good condition.
After that I don't need any partition any more.
I need to erase disk, clear all partitions and make it unallocated like it come from factory.
How can I do this?
The disk utility does not allow me to erase the last partition.
Screenshot 2019-10-30 at 12.42.56 copy.png


I think this can be done through the terminal, but I could not find a suitable instruction on the Internet
The only way to erase all partition I have found is:
diskutil zeroDisk
But this way is to slow and writing zeros to all of disk space will affect disk life

Does anybody know other solutions?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.