From owner-freebsd-questions@FreeBSD.ORG Sat Sep 20 13:15:28 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 326744CE for ; Sat, 20 Sep 2014 13:15:28 +0000 (UTC) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D4A7CA30 for ; Sat, 20 Sep 2014 13:15:27 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.9/8.14.9) with ESMTP id s8KDFK8i006371 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 20 Sep 2014 07:15:20 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.9/8.14.9/Submit) with ESMTP id s8KDFJgD006365; Sat, 20 Sep 2014 07:15:20 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Sat, 20 Sep 2014 07:15:19 -0600 (MDT) From: Warren Block To: Rod Person Subject: Re: HELP! GEOM: ada0: the secondary GPT header is not in the last LBA In-Reply-To: <20140919222922.1cf95b53@atomizer> Message-ID: References: <20140919222922.1cf95b53@atomizer> User-Agent: Alpine 2.11 (BSF 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Sat, 20 Sep 2014 07:15:20 -0600 (MDT) Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Sep 2014 13:15:28 -0000 On Fri, 19 Sep 2014, Rod Person wrote: > Hi, > > I don't know what happened, but I have a 2 TB hard drive that has > mainly multimedia on it. After a reboot I get the message: > > GEOM: ada0: the secondary GPT header is not in the last LBA > GEOM_PART: integrity check failed (ada0, GPT) > > I found the gdisk utility and when I run I get the following > information: > > root@atomizer:/ # gdisk /dev/ada0 > GPT fdisk (gdisk) version 0.8.10 > > Partition table scan: > MBR: protective > BSD: not present > APM: not present > GPT: present > > Found valid GPT with protective MBR; using GPT. > > Warning! Secondary partition table overlaps the last partition by > 10035073 blocks! > Try reducing the partition table size by 40140292 entries. > (Use the 's' item on the experts' menu.) > > At this point, I don't want to go any further, it would seem that I > can restore the partition table and everything would be right again, > but having never done this I am a bit nervous. Can anyone lend a hand > with this? What happened? Was this new partition just created, and with what tool? gpart normally will not allow creating partitions that overlap other structures. Was dd(1) used to copy it from another disk? Is there data on this new partition?