From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 15 15:52:26 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 023D61065677 for ; Wed, 15 Aug 2012 15:52:26 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id CB0F38FC17 for ; Wed, 15 Aug 2012 15:52:25 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 22B05B99A; Wed, 15 Aug 2012 11:52:25 -0400 (EDT) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Wed, 15 Aug 2012 11:16:21 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p17; KDE/4.5.5; amd64; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201208151116.21461.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Wed, 15 Aug 2012 11:52:25 -0400 (EDT) Cc: Garrett Cooper Subject: Re: GPT boot from 2nd. disk fails X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Aug 2012 15:52:26 -0000 On Wednesday, August 15, 2012 4:46:28 am Garrett Cooper wrote: > On Wed, Aug 15, 2012 at 1:27 AM, Daniel Braniss wrote: > > hi, > > this host has to disks: > > sa0> gpart show > > => 34 976773101 ada0 GPT (465G) > > 34 128 1 freebsd-boot (64k) > > 162 4194304 2 freebsd-ufs (2.0G) > > 4194466 33554432 3 freebsd-swap (16G) > > 37748898 939024237 4 freebsd-zfs (447G) > > > > => 34 976773101 ada1 GPT (465G) > > 34 128 1 freebsd-boot (64k) > > 162 4194304 2 freebsd-ufs [bootme] (2.0G) > > 4194466 8388608 3 freebsd-swap (4.0G) > > 12583074 964190061 4 freebsd-zfs (459G) > > > > but no amount of magic will cause boot from the second disk, it will always > > boot from the first disk. > > > > any insights? > > Use boot0cfg -s 5 (untested with GPT disks)? Will not work with GPT disks. They use /boot/pmbr to boot, not /boot/boot0. If you can get your BIOS to explicitly boot ada1 from the start via a BIOS setting, that should work. Another option would be to break into gptboot's prompt (similar to breaking into boot2) aud typing in 'ad1p2:/boot/loader' or some such. If that works you should even be able to write that to /boot.config on ada0p2's filesystem. -- John Baldwin