[CentOS] erasing a disk

Mon Sep 14 20:30:38 UTC 2020
Jon Pruente <jpruente at riskanalytics.com>

On Mon, Sep 14, 2020 at 3:18 PM david <david at daku.org> wrote:

> I've tried erasing the first megabyte of the disk, but there are ZFS
> or LVM structures that get in the way.  So, does anyone have an
> efficient way to erase structures from a disk such that it can be reused?

GPT for sure has backup metadata on the drive, so you won't be wiping it by
trying to remove the first few MB. You always should try using tooling made
for the purpose instead of trying to manually do it. In this case try a
tool like wipefs.