Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Apr 2010 10:34:23 -0700
From:      Marcel Moolenaar <xcllnt@mac.com>
To:        Bartosz Stec <bartosz.stec@it4pro.pl>
Cc:        freebsd-fs@freebsd.org, freebsd-current@freebsd.org
Subject:   Re: gpart failing with no such geom after gpt corruption
Message-ID:  <4D9CB47F-5571-444D-A30B-0227BA01D6E9@mac.com>
In-Reply-To: <4BB49E3F.7070506@it4pro.pl>
References:  <4BB49E3F.7070506@it4pro.pl>

next in thread | previous in thread | raw e-mail | index | archive | help

On Apr 1, 2010, at 6:23 AM, Bartosz Stec wrote:

> Unfortunately it wasn't so easy. First of all system booted, and as I expected kernel message shows GPT error on ad1. Zpool was degraded but alive and kicking. However, when I tried to execute any gpart command on ad1, it return:
> 
>   ad1: no such geom

If the GPT is rejected, no GEOM is created in the kernel. It's the GEOM
that gpart(8) talks to, so the error indicates that the GPT is not accepted
after you changed the disk size. For all practical purposes ad1 doesn't have
a partitioning.

The only gpart command you can use is:
	gpart create -s gpt ad1

This creates a new GPT on the disk, wiping out whatever was there...

-- 
Marcel Moolenaar
xcllnt@mac.com






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D9CB47F-5571-444D-A30B-0227BA01D6E9>