From owner-freebsd-questions@FreeBSD.ORG Sat Jan 19 00:25:25 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 7B661AB1 for ; Sat, 19 Jan 2013 00:25:25 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) Received: from alogt.com (alogt.com [69.36.191.58]) by mx1.freebsd.org (Postfix) with ESMTP id 4F473FC6 for ; Sat, 19 Jan 2013 00:25:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alogt.com; s=default; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=4a1TAIrN9TdEEgcYGXnZcgbprgwgl/PzLxd18sIIOjw=; b=mue1ZK2VQpY+BkKM/WPpsm057X103RkdNAeVrRnX/0gOysddly9SFALxO+ct9OTk3TuEJbaPaaT6cTPAjOu0yQo1AAZyNYoBn39VNbmKYSUwbsz8tA+jV2C579DwdvX2; Received: from [122.129.203.50] (port=65312 helo=X220.ovitrap.com) by sl-508-2.slc.westdc.net with esmtpsa (SSLv3:DHE-RSA-AES128-SHA:128) (Exim 4.80) (envelope-from ) id 1TwMFI-0028Rv-CU; Fri, 18 Jan 2013 17:25:17 -0700 Date: Sat, 19 Jan 2013 07:25:09 +0700 From: Erich Dollansky To: Bob Willcox Subject: Re: Safe way to repair corrupted GPT partition table? Message-ID: <20130119072509.2579dcce@X220.ovitrap.com> In-Reply-To: <20130118200824.GA4084@rancor.immure.com> References: <20130118200824.GA4084@rancor.immure.com> X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.6; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sl-508-2.slc.westdc.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - alogt.com X-Get-Message-Sender-Via: sl-508-2.slc.westdc.net: authenticated_id: erichsfreebsdlist@alogt.com X-Source: X-Source-Args: X-Source-Dir: Cc: questions list X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jan 2013 00:25:25 -0000 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. Erich