From owner-freebsd-questions@FreeBSD.ORG Sat Jan 19 14:59:30 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 00C3FD8E for ; Sat, 19 Jan 2013 14:59:29 +0000 (UTC) (envelope-from bob@immure.com) Received: from maul.immure.com (adsl-66-136-206-1.dsl.austtx.swbell.net [66.136.206.1]) by mx1.freebsd.org (Postfix) with ESMTP id 97824ECB for ; Sat, 19 Jan 2013 14:59:28 +0000 (UTC) Received: from rancor.immure.com (rancor.immure.com [10.1.132.9]) by maul.immure.com (8.14.5/8.14.5) with ESMTP id r0JEx8ap049610; Sat, 19 Jan 2013 08:59:08 -0600 (CST) (envelope-from bob@immure.com) Received: from rancor.immure.com (localhost [127.0.0.1]) by rancor.immure.com (8.14.6/8.14.6) with ESMTP id r0JEx8t8007901; Sat, 19 Jan 2013 08:59:08 -0600 (CST) (envelope-from bob@rancor.immure.com) Received: (from bob@localhost) by rancor.immure.com (8.14.6/8.14.6/Submit) id r0JEx8lL007900; Sat, 19 Jan 2013 08:59:08 -0600 (CST) (envelope-from bob) Date: Sat, 19 Jan 2013 08:59:07 -0600 From: Bob Willcox To: Erich Dollansky Subject: Re: Safe way to repair corrupted GPT partition table? Message-ID: <20130119145907.GA7788@rancor.immure.com> References: <20130118200824.GA4084@rancor.immure.com> <20130119072509.2579dcce@X220.ovitrap.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130119072509.2579dcce@X220.ovitrap.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-immure-MailScanner-Information: Please contact the ISP for more information X-immure-MailScanner-ID: r0JEx8ap049610 X-immure-MailScanner: Found to be clean X-immure-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (not cached, score=-2.9, required 1, autolearn=not spam, ALL_TRUSTED -1.00, BAYES_00 -1.90) X-immure-MailScanner-From: bob@immure.com X-Spam-Status: No Cc: questions list X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Bob Willcox List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jan 2013 14:59:30 -0000 On Sat, Jan 19, 2013 at 07:25:09AM +0700, Erich Dollansky wrote: > Hi, > > On Fri, 18 Jan 2013 14:08:25 -0600 > Bob Willcox wrote: > > > Is there a way to repair a GPT partition table that has gotten > > corrupted (following a system hang during heavy I/O to a ZFS > > filesystem)? > > > I would use a hex editor. Of course, try it out on another disk before > working on that disk. You can even copy the data with dd from the other > disk after you are sure it will work. Of course, the size must match or > must be made matching. > > Ok, it is not a safe way but it is a working way. Have to say I was hoping that there was some programatic way to do this. Certainly if I go down this path I'll have to practice on a disk that doesn't contain data that I care about. Getting the size right as this is the only disk of this size I have. (Actually, it's an Areca RAID 5 Volume Set.) Thanks, Bob > > Erich -- Bob Willcox | LIVING YOUR LIFE: bob@immure.com | A task so difficult, it has never been attempted before. Austin, TX |