From owner-freebsd-current@freebsd.org Tue Sep 27 04:37:29 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DBED3BE8B43 for ; Tue, 27 Sep 2016 04:37:29 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9E80CAF5 for ; Tue, 27 Sep 2016 04:37:29 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.85) with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (envelope-from ) id <1bok91-003J33-EK>; Tue, 27 Sep 2016 06:37:27 +0200 Received: from p578a69f9.dip0.t-ipconnect.de ([87.138.105.249] helo=freyja.zeit4.iv.bundesimmobilien.de) by inpost2.zedat.fu-berlin.de (Exim 4.85) with esmtpsa (TLSv1.2:AES256-GCM-SHA384:256) (envelope-from ) id <1bok91-001S40-6G>; Tue, 27 Sep 2016 06:37:27 +0200 Date: Tue, 27 Sep 2016 06:37:26 +0200 From: "O. Hartmann" To: Ngie Cooper Cc: Ernie Luzar , "Hartmann, O." , FreeBSD CURRENT Subject: Re: Destroy GPT partition scheme absolutely, how? Message-ID: <20160927063726.12524ae7@freyja.zeit4.iv.bundesimmobilien.de> In-Reply-To: <5484D815-4B17-456B-BA60-CC6F4E97AFE3@gmail.com> References: <20160926150109.0d0d793e@hermann> <57E92726.2020605@gmail.com> <5484D815-4B17-456B-BA60-CC6F4E97AFE3@gmail.com> Organization: FU Berlin X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.29; amd64-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Originating-IP: 87.138.105.249 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2016 04:37:29 -0000 On Tue, 27 Sep 2016 00:36:22 +0900 Ngie Cooper wrote: > > On Sep 26, 2016, at 22:48, Ernie Luzar wrote: > > ... > > > This little script has been posted before. Maybe it will be what your > > looking for. Called gpart.nuke > > > > #! /bin/sh > > echo "What disk do you want" > > echo "to wipe? For example - da1 :" > > read disk > > echo "OK, in 10 seconds I will destroy all data on $disk!" > > echo "Press CTRL+C to abort!" > > sleep 10 > > diskinfo ${disk} | while read disk sectorsize size sectors other > > do > > # Delete MBR and partition table. > > dd if=/dev/zero of=/dev/${disk} bs=${sectorsize} count=1 > > # Delete GEOM metadata. > > dd if=/dev/zero of=/dev/${disk} bs=${sectorsize} oseek=`expr $sectors - 2` > > count=2 done > > Why not just use "gpart destroy -F provider"? > > Cheers, > -Ngie > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" Yes, why not :-( Maybe panic and too much swet on the forehead ... ;-) Thanks.