From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 23 09:45:13 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A2D5CB1C; Wed, 23 Jan 2013 09:45:13 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.16.84]) by mx1.freebsd.org (Postfix) with ESMTP id 5BA55402; Wed, 23 Jan 2013 09:45:13 +0000 (UTC) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by kabab.cs.huji.ac.il with esmtp id 1TxwtL-0004Zi-Vl; Wed, 23 Jan 2013 11:45:12 +0200 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3 To: John Baldwin Subject: Re: solved: pmbr: Boot loader too large In-reply-to: <201301221206.58460.jhb@freebsd.org> References: <201301221206.58460.jhb@freebsd.org> Comments: In-reply-to John Baldwin message dated "Tue, 22 Jan 2013 12:06:58 -0500." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 23 Jan 2013 11:45:11 +0200 From: Daniel Braniss Message-ID: Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jan 2013 09:45:13 -0000 > > never underestimate the human stupidity (mine in this case) nor of the boot. > > pmbr will load the whole partition, which was 1M, instead of the size of > > gptboot :-( > > > > reducing the size of the slice/partition fixed the issue. > > pmbr doesn't have room to be but so smart. It can't parse a filesystem, so it > just loads a raw partition assuming that the partition is the boot loader. > The 545k bit has to do with where it is loaded. The boot loader has to live > in the lower 640k, but it starts at 0x7c00 (the address that the BIOS always > loads boot loaders). The 545k limit comes from 640k - 0x7c00. This is a > fundamental limit of the x86 BIOS architecture. Compared to the 15.5k that > UFS leaves for boot2 it is worlds of space. thanks for the info. If the error message was clearer might have saved some time :-) Partition size too big instead of Boot loader too large btw, thanks to grep -r I was to find it came from pmbr.s