From owner-freebsd-current@freebsd.org Tue Sep 27 02:47:31 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 9E03ABEBFBF for ; Tue, 27 Sep 2016 02:47:31 +0000 (UTC) (envelope-from darius@dons.net.au) Received: from ipmail06.adl6.internode.on.net (ipmail06.adl6.internode.on.net [150.101.137.145]) by mx1.freebsd.org (Postfix) with ESMTP id EE216196; Tue, 27 Sep 2016 02:47:30 +0000 (UTC) (envelope-from darius@dons.net.au) Received: from ppp118-210-115-159.lns20.adl2.internode.on.net (HELO midget.dons.net.au) ([118.210.115.159]) by ipmail06.adl6.internode.on.net with ESMTP; 27 Sep 2016 12:16:46 +0930 Received: from [IPv6:::1] (ns.dons.net.au [10.0.2.1]) (authenticated bits=0) by midget.dons.net.au (8.15.1/8.14.9) with ESMTPSA id u8R2kXZ8017640 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 27 Sep 2016 12:16:39 +0930 (CST) (envelope-from darius@dons.net.au) X-Authentication-Warning: midget.dons.net.au: Host ns.dons.net.au [10.0.2.1] claimed to be [IPv6:::1] Subject: Re: Destroy GPT partition scheme absolutely, how? Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: text/plain; charset=us-ascii From: "O'Connor, Daniel" In-Reply-To: <1785064.lgVzRW13Wf@ralph.baldwin.cx> Date: Tue, 27 Sep 2016 12:16:39 +0930 Cc: freebsd-current@freebsd.org, Ngie Cooper , Ernie Luzar , "Hartmann, O." Content-Transfer-Encoding: quoted-printable Message-Id: References: <20160926150109.0d0d793e@hermann> <57E92726.2020605@gmail.com> <5484D815-4B17-456B-BA60-CC6F4E97AFE3@gmail.com> <1785064.lgVzRW13Wf@ralph.baldwin.cx> To: John Baldwin X-Mailer: Apple Mail (2.3124) X-Spam-Score: -5.996 () ALL_TRUSTED,BAYES_00,RP_MATCHES_RCVD X-Scanned-By: MIMEDefang 2.75 on 10.0.2.1 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 02:47:31 -0000 > 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. -- Daniel O'Connor "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C