From nobody Tue Apr 11 18:03:56 2023 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PwtyT02TKz44J2y for ; Tue, 11 Apr 2023 18:04:17 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from omta001.cacentral1.a.cloudfilter.net (omta001.cacentral1.a.cloudfilter.net [3.97.99.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PwtyS5Jf7z3CZd; Tue, 11 Apr 2023 18:04:16 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Authentication-Results: mx1.freebsd.org; none Received: from shw-obgw-4003a.ext.cloudfilter.net ([10.228.9.183]) by cmsmtp with ESMTP id mAWCp0MVRuZMSmILnpIamk; Tue, 11 Apr 2023 18:04:15 +0000 Received: from spqr.komquats.com ([70.66.148.124]) by cmsmtp with ESMTPA id mILmpu6H0cyvumILnp0t3U; Tue, 11 Apr 2023 18:04:15 +0000 X-Authority-Analysis: v=2.4 cv=VbHkgXl9 c=1 sm=1 tr=0 ts=6435a11f a=Cwc3rblV8FOMdVN/wOAqyQ==:117 a=Cwc3rblV8FOMdVN/wOAqyQ==:17 a=IkcTkHD0fZMA:10 a=dKHAf1wccvYA:10 a=6I5d2MoRAAAA:8 a=YxBL1-UpAAAA:8 a=EkcXrb_YAAAA:8 a=-K33PcvFBo8K_hxmGGEA:9 a=QEXdDO2ut3YA:10 a=IjZwj45LgO3ly-622nXo:22 a=Ia-lj3WSrqcvXOmTRaiG:22 a=LK5xJRSDVpKd5WXXoEvA:22 Received: from [127.0.0.1] (S0106002401cb186f.gv.shawcable.net [70.67.229.168]) by spqr.komquats.com (Postfix) with ESMTPSA id 8EB7A1F5; Tue, 11 Apr 2023 11:04:13 -0700 (PDT) Date: Tue, 11 Apr 2023 11:03:56 -0700 From: Cy Schubert To: freebsd-hackers@freebsd.org, Graham Perrin , Warner Losh CC: FreeBSD Hackers Subject: Re: gpart destroy, in depth In-Reply-To: <519b5387-4561-94a1-f2e1-6fe6c4a4f35e@freebsd.org> References: <64e88636-1e03-7ff5-7d3f-e8a36117cdbe@freebsd.org> <519b5387-4561-94a1-f2e1-6fe6c4a4f35e@freebsd.org> Message-ID: <372DCA30-5F1D-48E7-9D12-159E33EC1878@cschubert.com> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-CMAE-Envelope: MS4xfB4ThsSJdrqCsJW1rNicQzXcATR3uH9QUSVfWTJbhDZDqwxHCHcvfqiGNd5dn8fOm4Rnhn3ePNjC0OnZob60U2kqD66SfSRxJMzzjf0+Cw+1IjcZ4jiN 42Zhb2gD0i+gwUVuY/rgzJtXFD1c23GyicYPn1GLIPPs9EtZfp2pjvHSr/547L3Arau9PwTXiabJxBjqJGSwBs+gV2tIEdNmzZd18EmYrebJWuTh5eobnM1f tiNmvyVmI0kvGeH/63xbRjzlzAzhuOGVmZDvYK+t8cA= X-Rspamd-Queue-Id: 4PwtyS5Jf7z3CZd X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16509, ipnet:3.96.0.0/15, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On April 11, 2023 10:35:40 AM PDT, Graham Perrin wrote: >On 11/04/2023 14:24, Warner Losh wrote: > >> It writes zeros to the partition table=2E >>=20 >> Warner > > >Thanks=2E > >Is it precise about where it ceases writing zeros in the areas previously= occupied by the table and backup table? > >Or does it (for want of a better expression) spill over, a little? > >>=20 >> On Tue, Apr 11, 2023, 7:13 AM Graham Perrin wrote: >>=20 >> Please: what, exactly, occurs when a partition table is destroyed b= y >> gpart(8)? >>=20 >> Background: =E2=80=A6 >>=20 You should be able to simply recreate the partitions as before=2E The data= will be untouched, unless the disk has been reused=2E --=20 Cheers, Cy Schubert FreeBSD UNIX: Web: https://FreeBSD=2Eorg NTP: Web: https://nwtime=2Eorg e^(i*pi)+1=3D0 Pardon the typos=2E Small keyboard in use=2E