From owner-freebsd-current@FreeBSD.ORG Tue Jul 21 13:44:00 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A727310656A4 for ; Tue, 21 Jul 2009 13:43:59 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id AD2AA8FC18 for ; Tue, 21 Jul 2009 13:43:59 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 6337446B66; Tue, 21 Jul 2009 09:43:59 -0400 (EDT) Received: from jhbbsd.hudson-trading.com (unknown [209.249.190.8]) by bigwig.baldwin.cx (Postfix) with ESMTPA id A66038A09D; Tue, 21 Jul 2009 09:43:58 -0400 (EDT) From: John Baldwin To: Edho P Arief Date: Tue, 21 Jul 2009 09:36:18 -0400 User-Agent: KMail/1.9.7 References: <200907201057.03777.jhb@freebsd.org> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200907210936.18845.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Tue, 21 Jul 2009 09:43:58 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=4.2 tests=AWL,BAYES_00,RDNS_NONE autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: freebsd-current@freebsd.org Subject: Re: broken pmbr? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jul 2009 13:44:06 -0000 On Tuesday 21 July 2009 1:51:08 am Edho P Arief wrote: > On Mon, Jul 20, 2009 at 9:57 PM, John Baldwin wrote: > > On Friday 17 July 2009 10:42:07 pm Edho P Arief wrote: > >> I just managed to, um, break my installation boot using these steps: > >> > >> 1. system with at least two disks (say ad0 and ad4) > >> 2. create gpt partition on ad0 > >> 3. create at least one freebsd-ufs on ad0 > >> 4. install freebsd on ad4 using gpt ( > > http://m8d.de/news/freebsd-on-gpt.php ) > >> 5. reboot and boot to ad4 > >> 6. 'Missing boot loader' > >> > >> (Rearranging ad0 to adX where X>4 or removing ad0 solves the problem, = btw) > >> > >> Does pmbr only search first drive with gpt it found? > > > > /boot/pmbr only looks on the current disk, yes. =C2=A0You could put the= boot > > partition on ad0 and then put a /boot.config in the UFS partition on ad= 0 that > > points to ad4 if you want it to find the boot loader from ad4 instead o= f ad0. >=20 > I looked to me pmbr only find *first* disk-containing-gpt, not the > disk where it's booted from. No, it uses the %dl register from the BIOS to do all it's disk I/O and that= is always the drive that contains the pmbr code itself. =2D-=20 John Baldwin