From owner-freebsd-current@FreeBSD.ORG Wed Jul 29 00:14:08 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B76CE1065670 for ; Wed, 29 Jul 2009 00:14:08 +0000 (UTC) (envelope-from h.schmalzbauer@omnilan.de) Received: from host.omnilan.net (host.omnilan.net [62.245.232.135]) by mx1.freebsd.org (Postfix) with ESMTP id 1D1258FC16 for ; Wed, 29 Jul 2009 00:14:07 +0000 (UTC) (envelope-from h.schmalzbauer@omnilan.de) Received: from titan.flintsbach.schmalzbauer.de (titan.flintsbach.schmalzbauer.de [172.21.1.150]) (authenticated bits=0) by host.omnilan.net (8.13.8/8.13.8) with ESMTP id n6T0E6SL069541 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 29 Jul 2009 02:14:06 +0200 (CEST) (envelope-from h.schmalzbauer@omnilan.de) Message-ID: <4A6F944D.6040909@omnilan.de> Date: Wed, 29 Jul 2009 02:14:05 +0200 From: Harald Schmalzbauer Organization: OmniLAN User-Agent: Thunderbird 2.0.0.22 (X11/20090717) MIME-Version: 1.0 To: Marcel Moolenaar References: <4A344A9F.5020708@jrv.org> <4A344C67.8000101@jrv.org> <4A37C1A7.1070801@omnilan.de> <19563E0A-3A5A-4B0C-BB89-934A44CF4A82@mac.com> In-Reply-To: <19563E0A-3A5A-4B0C-BB89-934A44CF4A82@mac.com> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig1A1919F3D20B6FB2436DD589" Cc: FreeBSD Current Subject: Re: `gpart show` and secondary GPT header X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 29 Jul 2009 00:14:09 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig1A1919F3D20B6FB2436DD589 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Marcel Moolenaar schrieb am 16.06.2009 18:28 (localtime): >=20 > On Jun 16, 2009, at 9:00 AM, Harald Schmalzbauer wrote: >=20 >> Marcel Moolenaar schrieb am 2009-06-14 07:23 (localtime): >> ... >>>>>> Jun 13 06:31:42 bigback kernel: GEOM: ad12: the secondary GPT=20 >>>>>> table is >>>>>> corrupt or invalid. >>>>>> Jun 13 06:31:42 bigback kernel: GEOM: ad12: using the primary only= -- >>>>>> recovery suggested. >> >> I'm curious what the correct way to recover is. >> I also tried dd, but without success. >> `gpt` had a recover functionality if I remember corretcly. >=20 > Recovery is not yet implemented in gpart. That would be > the correct way to recover. And yes, gpt(8) has recovery. > Thus, gpt(8) is the right way to recover on -STABLE. Hello, I'd need some help. I tried to recover the secondary GPT after overwriting on the same disk. I used 'dd if=3D/dev/ada0 iseek=3D1 count=3D1 oseek=3D1953525167 of=3D/de= v/ada0' I thought this must work since the location of the secondary, stored in=20 the GPT header, is correct. But it doesn't. Usually, after replacing a failed hard drive, I duplicate the first 34=20 sectors and modify the labels. If the replaced HD is of different size,=20 the secondary GPT can't be restored simply by dd, if I'm right. But why doesn't it work on the same HD? Thanks, -Harry P.S.: Any recovery bits for me to test? --------------enig1A1919F3D20B6FB2436DD589 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) iEYEARECAAYFAkpvlE4ACgkQLDqVQ9VXb8jvMQCfUpTjAhiq1rWsXBrA9S7qAZrL XnEAn0naJHSvQpgpQ7xpn1ahXlc1bY3s =7QjG -----END PGP SIGNATURE----- --------------enig1A1919F3D20B6FB2436DD589--