From owner-freebsd-questions@FreeBSD.ORG Thu Sep 16 16:15:15 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AC72F106566C for ; Thu, 16 Sep 2010 16:15:15 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 621A48FC1D for ; Thu, 16 Sep 2010 16:15:15 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OwH7C-0006Q5-2Y for freebsd-questions@freebsd.org; Thu, 16 Sep 2010 18:15:14 +0200 Received: from pool-173-79-86-179.washdc.fios.verizon.net ([173.79.86.179]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Sep 2010 18:15:14 +0200 Received: from nightrecon by pool-173-79-86-179.washdc.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Sep 2010 18:15:14 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Michael Powell Followup-To: gmane.os.freebsd.questions Date: Thu, 16 Sep 2010 12:17:19 -0400 Lines: 39 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: pool-173-79-86-179.washdc.fios.verizon.net Subject: Re: Problem adding 1TB SATA disk to system X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Sep 2010 16:15:15 -0000 Andy Wodfer wrote: > Hi all, > > I'm running FreeBSD 8.0 release (will upgrade to 8.1 STABLE tonight). > However, I'm having big problems adding a new harddrive to the system. I > want a separate 1TB SATA installed to recover backup files on, but when I > add it I only get error messages: > > dmesg: > > ad2: 953869MB at ata1-master SATA300 > GEOM: ad2: corrupt or invalid GPT detected. > GEOM: ad2: GPT rejected -- may not be recoverable. > GEOM: ufsid/4c80e66f50f43e15: corrupt or invalid GPT detected. > GEOM: ufsid/4c80e66f50f43e15: GPT rejected -- may not be recoverable. > > I've tried label and fdisk, but I can't get it to work. > [snip] I do not believe you can utilize fdisk and label for this. Since it appears there may be a possibility of a garbage MBR present this will wipe it: Boot a LiveFS CD, then at a root prompt do: sysctl kern.geom.debugflags=16 and: dd if=/dev/zero of=/dev/adx oseek=1 bs=512 count=1 where x equals your drive number. This will zero out any old MBR. You will need to set this up with gpart instead of fdisk. More details in man gpart and possibly glabel. The devil is in the details, but this may be enough to get you pointed down the road. -Mike