Re: Destroy GPT partition scheme absolutely, how?

From: Warner Losh <>
Date: Mon, 26 Sep 2016 22:58:04 -0600
On Mon, Sep 26, 2016 at 8:46 PM, O'Connor, Daniel <> wrote:
>> On 27 Sep 2016, at 06:21, John Baldwin <> wrote:
>> That doesn't always work.  In particular, if a disk was partitioned with GPT
>> and then you use normal MBR on it afterwards, the 'gpart destroy -F' of the
>> MBR will leave most of the GPT intact and the disk will come up with the old
>> GPT partitions, not as a raw disk.
> I wonder how feasible it would be to have a command which runs destroy for every known partition scheme on a particular device..
> Sure there would be some duplicate zeroing but it's not likely to be significantly slower and considerably more robust.

dd of 2MB of zeros to the start and end of the disk. That will destroy
pretty much everything. For SSDs, sometimes you can do the same with
TRIMs only faster (other times they are slower or unreliable).

Received on Tue Sep 27 2016 - 02:58:06 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:08 UTC