From owner-freebsd-current@FreeBSD.ORG Mon Apr 13 18:50:56 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 EF7D0106564A for ; Mon, 13 Apr 2009 18:50:56 +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 AFAEB8FC15 for ; Mon, 13 Apr 2009 18:50:56 +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 CE07146B51; Mon, 13 Apr 2009 14:50:50 -0400 (EDT) Received: from jhbbsd.hudson-trading.com (unknown [209.249.190.8]) by bigwig.baldwin.cx (Postfix) with ESMTPA id 810A88A04D; Mon, 13 Apr 2009 14:50:18 -0400 (EDT) From: John Baldwin To: freebsd-current@freebsd.org Date: Mon, 13 Apr 2009 14:32:55 -0400 User-Agent: KMail/1.9.7 References: <49E1819B.7000604@jrv.org> In-Reply-To: <49E1819B.7000604@jrv.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200904131432.55697.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Mon, 13 Apr 2009 14:50:18 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=4.2 tests=RDNS_NONE autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: "James R. Van Artsdalen" Subject: Re: can't boot 5.5 TB GPT disk 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: Mon, 13 Apr 2009 18:50:57 -0000 On Sunday 12 April 2009 1:52:27 am James R. Van Artsdalen wrote: > FreeBSD bigback.housenet.jrv 8.0-CURRENT FreeBSD 8.0-CURRENT #0 r190917: > Sat Apr 11 19:48:25 CDT 2009 > james@bigback.housenet.jrv:/usr/obj/usr/src/sys/GENERIC amd64 > > I can't boot a GPT partitioned 5.5 TB disc, where the UFS root partition > is near the end of the disk. If I put another disk in the system and > mount root from the GPT disk the system runs fine. > > The 5.5 TB disk is partitioned: > > bigback# gpart show > => 34 11718748093 ad6 GPT (5.5T) > 34 6 - free - (3.0K) > 40 409600 1 efi (200M) > 409640 11634190128 2 !6a898cc3-1dd2-11b2-99a6-080020736631 > (5.4T) > 11634599768 128 3 freebsd-boot (64K) > 11634599896 4194304 4 freebsd-ufs (2.0G) > 11638794200 33554432 5 freebsd-swap (16G) > 11672348632 4194304 6 freebsd-ufs (2.0G) > 11676542936 33554432 7 freebsd-ufs (16G) > 11710097368 8388608 8 freebsd-ufs (4.0G) > 11718485976 262151 - free - (128M) > > If I try to boot it (disk1 so pressing F5 here) it fails looking like > this (there is no UART available so this is typed from a pic, with typos): > > F1 FreeBSD > F5 Drive 1 > > Default: F1 > > BTX Loader 1.00 BTX version is 1.02 > Consoles: internal video/keyboard > BIOS drive C: is disk0 > BIOS drive D: is disk1 > BIOS 630kb/3136864kB available memory > > FreeBSD/i386 bootstrap loader, Revision 1.1 > (james@bigback.housenet.jrv, Sat Apr 11 08:19:00 CDT 2009 > \ > can't load 'kernel' > > Type '?' for a list of commands, 'help' for more details > OK > > To get this far suggests to me that PMBR and GPTBOOT worked, and that > the problem is elsewhere. Suggestions? Could there be a 32-bit > truncation lurking in a loader somewhere? > > PS. Note that the "lsdev' command causes the loader to crash while > printing out the info on the big disk, right after the EFI line for ad6p1... I would first try to fix the lsdev crash. You can use forever loops and printfs to narrow down the cause of the crash if needed. The biosdisk.c code should be able to handle 64-bit LBAs. -- John Baldwin