22
4
I want to wipe an SSD clean of all its partitions and data, so I can repartition it (this is not for security purposes).
I've looked at sudo dd if=/dev/zero of=/dev/sdb bs=1M
but if this just fills each partition with zeros, I'm not sure this what I want to do.
I plan to run this command quite often, and I don't want to exhaust my SSD's writes. Could anyone give me advice on tackling this problem?
1
Study this: ATA Secure Erase. I have no experience with the process, so this is not an answer, just a hint. Anyone feel free to write your own answer about this if you know this is the right way.
– Kamil Maciorowski – 2018-01-11T08:54:44.45018For security purposes, or merely because you need to repartition? – user1686 – 2018-01-11T08:55:46.140
mostly just to repartition – IgDV – 2018-01-11T09:07:31.660
1412 gauge pump-action. And you knew someone was going to say it sooner or later! – ssimm – 2018-01-11T13:40:19.260
1@ssimm - My preference is a charcoal barbecue. – Daniel R Hicks – 2018-01-12T02:08:23.683
You command should wipe the whole disk. It may need a partition rescan for the
sdbX
devices to vanish, but the partitioning is removed when you overwrite the first few megabytes of the disk. – allo – 2018-01-12T12:42:46.577@IgDV: The fact that this is not for security purposes is critical to your question, so I have edited it to add this. Please review and correct as appropriate :-). – sleske – 2018-01-12T13:50:48.883
@ssimm: That's a very drastic form of repartitioning. – sleske – 2018-01-12T13:51:13.617
What's your SSD estimated TWB? It's pretty hard to kill a SSD these days... – Firebug – 2018-01-12T19:46:04.277
I think you don't have to do anything at all. The partition tool will overwrite the existing partition table. – Paul – 2018-01-13T04:48:50.810