From owner-freebsd-current@freebsd.org Mon Sep 26 15:36:27 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 617BABE3DB7 for ; Mon, 26 Sep 2016 15:36:27 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-oi0-x22e.google.com (mail-oi0-x22e.google.com [IPv6:2607:f8b0:4003:c06::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2EA4A7E1 for ; Mon, 26 Sep 2016 15:36:27 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by mail-oi0-x22e.google.com with SMTP id t83so211482077oie.3 for ; Mon, 26 Sep 2016 08:36:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=qfWVEiEsHz7DN+iyNYY7U9OWrAFDO2Lh98Qrkxhlr1I=; b=HpwGPt1JbqHsFT5IFSTcAE1aIcLsS6MKDm0ewwlxZowlA4shIgS13AsGyJXV2H3DuG B4TDD0cnboyPWlgfFVW1X1ITeP1TtiwXAGij930Vx1uCbcEBHVmMlGiaiyL4rOmkkwdt csmPHGtscsLn7BvZ084cdfctQITkFZMS190WFSH9KdRzw8qbLgtNhceDGKUBx9ibWG1J eat+0b6IEQaGWbA5GE0eeYbp17dO18EEy4MRHVOec/jYCvT84RGvW7ATYPX7N15vfHBo v+Wqkja9ycRhQDy3pkfF5qmA89DhQIypVFVdqWbLeb1M/8khzMGX2ArI082jExb+yoW4 Itng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=qfWVEiEsHz7DN+iyNYY7U9OWrAFDO2Lh98Qrkxhlr1I=; b=TiBJfvjRM476ts5i84S5Q+PYeQoFfzNDgrfvLMikCnr/yXbXxwHN/lM6+p7jChKOMI I9uY96KB+EmUnLgdROA2v9sHOZRgN+yUwH600YP0AiTgEjmBGgGfWrPgCuxiZCNFHEgM nYywy3il7+0bWeKo/Q56Znb3QCiaBL1M72Vgbj0J9acdymVa9PGyLpV0AwbGAbIal+Xa bRHm2PWlR5/54aSfZ2p1D0CbNE6jqq7W/+h0VEKPt6ordXvU+Fk0bRF0cDvn4rQIWfQI Lp9KaLLkmSekrW8QidpiDrDMwlthCNlzd/KPIGnuYVvFSGTgpENt9v50t6hIBb7dmHph fc6w== X-Gm-Message-State: AA6/9Rl/orUw/MHwNAxZF2qLvcYu+uBVJTDb5WzZrUJdwvMDoebIE+ehAuQCn0G58y5D/A== X-Received: by 10.202.105.65 with SMTP id e62mr22476737oic.102.1474904186484; Mon, 26 Sep 2016 08:36:26 -0700 (PDT) Received: from [100.175.244.41] ([172.56.7.148]) by smtp.gmail.com with ESMTPSA id 37sm7238780otr.17.2016.09.26.08.36.25 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Sep 2016 08:36:25 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: Destroy GPT partition scheme absolutely, how? From: Ngie Cooper X-Mailer: iPhone Mail (13G36) In-Reply-To: <57E92726.2020605@gmail.com> Date: Tue, 27 Sep 2016 00:36:22 +0900 Cc: "Hartmann, O." , FreeBSD CURRENT Content-Transfer-Encoding: quoted-printable Message-Id: <5484D815-4B17-456B-BA60-CC6F4E97AFE3@gmail.com> References: <20160926150109.0d0d793e@hermann> <57E92726.2020605@gmail.com> To: Ernie Luzar 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: Mon, 26 Sep 2016 15:36:27 -0000 > On Sep 26, 2016, at 22:48, Ernie Luzar wrote: ... > This little script has been posted before. Maybe it will be what your look= ing for. Called gpart.nuke >=20 > #! /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=3D/dev/zero of=3D/dev/${disk} bs=3D${sectorsize} count=3D1 > # Delete GEOM metadata. > dd if=3D/dev/zero of=3D/dev/${disk} bs=3D${sectorsize} oseek=3D`expr $sect= ors - 2` count=3D2 > done Why not just use "gpart destroy -F provider"? Cheers, -Ngie=