Date: Fri, 18 Jan 2013 19:40:59 -0500 From: "illoai@gmail.com" <illoai@gmail.com> To: Bob Willcox <bob@immure.com> Cc: questions list <freebsd-questions@freebsd.org> Subject: Re: Safe way to repair corrupted GPT partition table? Message-ID: <CAHHBGkrNFioEPWFgQTwb-F14u1-LdPUgL0cX2UmM_Jg0jDhuqA@mail.gmail.com> In-Reply-To: <20130118200824.GA4084@rancor.immure.com> References: <20130118200824.GA4084@rancor.immure.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 18 January 2013 15:08, Bob Willcox <bob@immure.com> 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 now get these errors whenever I boot the system: > > GEOM: da0: corrupt or invalid GPT detected. > GEOM: da0: GPT rejected -- may not be recoverable. > > Fortunately, my ZFS filesystem on the disk (actually a RAID 5 array on a > ARC-1223 adapter) still mounts and seems to be ok. There is only one partition > on the disk (the ZFS one) and it covered the entire disk so restoring it > should be easy. Question is, is there a way to do this and will it be safe (I > wouldn't want to trash the filesystem in the partion). > > A 'gpart show da0' gives this result: > > gpart: No such geom: da0. > > This is on a 9.1-STABLE system: > > FreeBSD rancor.immure.com 9.1-STABLE FreeBSD 9.1-STABLE #2 r245176: Tue Jan 8 15:45:29 CST 2013 bob@amidala.immure.com:/usr/obj/usr/src/sys/AMIDALA amd64 > > > Any help would be much appreciated. > Is the whole disk in the zfs pool, or is this a single partition covering the whole disk that has been placed in the zfs pool? Have you tried to repair it with the zfs tools? -- --
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHHBGkrNFioEPWFgQTwb-F14u1-LdPUgL0cX2UmM_Jg0jDhuqA>