From owner-freebsd-stable@FreeBSD.ORG Thu Sep 19 07:51:40 2013 Return-Path: Delivered-To: freebsd-stable@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 ESMTP id 165D18F3 for ; Thu, 19 Sep 2013 07:51:40 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com [209.85.217.181]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 959662B2C for ; Thu, 19 Sep 2013 07:51:39 +0000 (UTC) Received: by mail-lb0-f181.google.com with SMTP id u14so7470715lbd.40 for ; Thu, 19 Sep 2013 00:51:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=eoYKlJNWknla1Y/TCAI6pC2i3ixRUL0WImHu33rxEFU=; b=aOzoa6ScBpULvnvHtKRuik0f7Y4ksBJidOI4pi408IJnoPoiDgGQHngmOQGMR4CKmW mlI1yu/Hb2wJnzRXOS1IHJ+h/Jsg+c1+7IhhfjUA1Yf78Vg3+Jd1htfzzycJ8NKHCazp PP5i/8wGTl4mM7TC5vlfpe1g/qzcayQ91jJSXU+xU0v614a8brF2eANCF4QgYfUlGI2H PA+Htit26Sj+kqajylO7alBZHObxnoRXWk+ykjeh4BW42+1T4CKKcWKpmtY3S+wqUtzv Svp6g/8bQvT7Kxp2WOwtghSiadrmUQ8ANIIS9OdRoZRGlca1DBc4tLQbSjpAVrU/3bvi hcEg== X-Received: by 10.152.121.3 with SMTP id lg3mr137163lab.33.1379577082389; Thu, 19 Sep 2013 00:51:22 -0700 (PDT) Received: from [192.168.1.130] (mau.donbass.com. [92.242.127.250]) by mx.google.com with ESMTPSA id u18sm3279114lbp.4.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 19 Sep 2013 00:51:21 -0700 (PDT) Message-ID: <523AACF8.8080404@gmail.com> Date: Thu, 19 Sep 2013 10:51:20 +0300 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130909 Thunderbird/17.0.8 MIME-Version: 1.0 To: Andrew Moran Subject: Re: Rescuing a GPT ZFS boot setup References: <1379572619.72405.YahooMailNeo@web121302.mail.ne1.yahoo.com> In-Reply-To: <1379572619.72405.YahooMailNeo@web121302.mail.ne1.yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-stable@freebsd.org" X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Sep 2013 07:51:40 -0000 19.09.2013 09:36, Andrew Moran wrote: > 3 years ago I followed https://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/Mirror for a FreeBSD 8.1 system (which has since been upgraded to 9.1). A couple days ago I had massive hardware failure, and wound up having to put the two drives into an entirely new PC system. > > Unfortunately I'm not able to get it to boot off the hard drives. It doesn't even show the FreeBSD bootloader menu it normally would. The BIOS sees both drives and it can boot off the 9.1 install/Live CD without any problems. In the LiveCD, I can see both drives partition tables ("gpart show ..") and I can import the zpool ("zpool import zroot"), and see all my data. I just can't seem to boot from it. I tried rerunning the "gpart bootcode" commands on both drives (no errors), but no effect. > > It's also not beyond the realm of possibility I have some BIOS setting wrong, but the drives do show up in the POST and BIOS setting. > > Does anyone know how I can make my drives bootable again? Maybe the machine is just too picky about partitioning scheme? Try this black magic: printf '\ny\n\n\n\ny\n\ny\n\n\n\n\ny\n' | fdisk -u ${YourDiskName} -- Sphinx of black quartz, judge my vow.