From owner-freebsd-hackers@freebsd.org Fri Feb 3 04:09:41 2017 Return-Path: Delivered-To: freebsd-hackers@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 0CF3DCCEE52 for ; Fri, 3 Feb 2017 04:09:41 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D1B19B5B for ; Fri, 3 Feb 2017 04:09:40 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id v1349dVA002903 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 2 Feb 2017 21:09:39 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id v1349be3002897; Thu, 2 Feb 2017 21:09:37 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Thu, 2 Feb 2017 21:09:37 -0700 (MST) From: Warren Block To: Ngie Cooper cc: "Andrey V. Elsukov" , "freebsd-hackers@freebsd.org" , "Rodney W. Grimes" , Slawa Olhovchenkov Subject: Re: How to safely remove rest of GTP? In-Reply-To: Message-ID: References: <201701312058.v0VKwlut046163@pdx.rh.CN85.dnsmgr.net> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (wonkity.com [127.0.0.1]); Thu, 02 Feb 2017 21:09:39 -0700 (MST) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2017 04:09:41 -0000 On Thu, 2 Feb 2017, Ngie Cooper wrote: > *snort* I completely forgot I had scripted this back 1.5 years ago: > https://github.com/yaneurabeya/scratch/blob/master/bayonetta/scratch/scripts/freebsd/wipe-gpt-partitions.sh > . This basically napalms all of the blocks at the beginning and end > that count per GPT (and MBR as well). > > If someone wants, I can check this into FreeBSD somewhere under tools... dd is the standard solution, but the oseek to the end of the drive is relatively slow. Or at least it seemed like it the last time I tried it on a big drive. And thematically, the function goes with gpart.