From owner-freebsd-current@FreeBSD.ORG Tue Mar 11 08:10:12 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3E7341065676; Tue, 11 Mar 2008 08:10:12 +0000 (UTC) (envelope-from ianf@clue.co.za) Received: from munchkin.clue.co.za (munchkin.clue.co.za [66.219.59.160]) by mx1.freebsd.org (Postfix) with ESMTP id E87578FC19; Tue, 11 Mar 2008 08:10:11 +0000 (UTC) (envelope-from ianf@clue.co.za) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=20070313; d=clue.co.za; h=Received:Received:Received:To:cc:From:Subject:In-Reply-To:X-Attribution:Date:Message-Id; b=GjNqqxeOvkrRcscbwAG/PCi7nC09Q0F3FlFht4ix5ygK0XT2dQRW5X/cv3PsZ/l4JoRgPw1znI/TkutNDrcUWTtypKNy/lBigYCOvQxFlNOWb+1aNYULXz0paa05c4IdbGEFXrQ09G1szhSr3qX+qFtQD5fzHT1dVdrF7hIhvXoQnLeOCwtzgjkngJsOIlVYyQNsqaDbqeqqVPcZUm3wFnsQEdQVwVM3xhiMwOEbH5ZAng/rtC+XIooIoAnNfQdx; Received: from uucp by munchkin.clue.co.za with local-rmail (Exim 4.67) (envelope-from ) id 1JYzYp-00052B-FI; Tue, 11 Mar 2008 08:10:11 +0000 Received: from ianf.clue.co.za ([10.0.0.6] helo=clue.co.za) by urchin.clue.co.za with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1JYzY7-0004Ho-Lu; Tue, 11 Mar 2008 08:09:27 +0000 Received: from localhost ([127.0.0.1] helo=clue.co.za) by clue.co.za with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1JYzY7-000KjB-Mu; Tue, 11 Mar 2008 10:09:27 +0200 To: Rink Springer From: Ian FREISLICH In-Reply-To: Message from Rink Springer of "Tue, 11 Mar 2008 08:48:58 +0100." <20080311074858.GB2327@rink.nu> X-Attribution: BOFH Date: Tue, 11 Mar 2008 10:09:27 +0200 Message-Id: Cc: current@freebsd.org Subject: Re: sysinstall: "Unable to create the partition. Too big?" 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, 11 Mar 2008 08:10:12 -0000 Rink Springer wrote: > On Mon, Mar 10, 2008 at 03:46:56PM +0200, Ian FREISLICH wrote: > > Rink Springer wrote: > > > Hi, > > > > > > On Mon, Mar 10, 2008 at 02:44:26PM +0200, Ian FREISLICH wrote: > > > > Yet, sysinstall has the size as 1255914653 sectors. > > > > > > Could you paste the output of 'sysctl -b kern.geom.conftxt' ? > > > > 0 DISK aacd0 639830589440 512 hd 255 sc 63 > > This is very odd.. the big number in the above line is the size in > bytes (len), and the 512 is the number of bytes per sector (s). So, the > size in sectors is simply len / s = 639830589440 / 512 = 1249669120, > what the dmesg claims. This is the same as the calculation made by > sysinstall - look at lib/libdisk/open_disk.c:Int_Open_Disk(). > > I don't see any obvious overflow errors there... everything seems to use > daddr_t types, which are 64 bit (at least on i386), so that should not > be a problem. I forgot to state that this was amd64. The thing is, that the installer actually gets the right number - 1249664157: Disk: aacd0 Partition name: aacd0s1 Free: 1249664157 blocks (595GB) This is how the disk is configured after my manual change using 'disklabel -e' to /var: Part Mount Size Newfs Part Mount Size Newfs ---- ----- ---- ----- ---- ----- ---- ----- aacd0s1a 512MB * aacd0s1b swap 4056MB SWAP aacd0s1e 512MB * aacd0s1d 10240MB * aacd0s1f 577GB * If I delete these partitions and manually enter the sizes in the installer, an extra (nonexistent) 3GB appears: Part Mount Size Newfs Part Mount Size Newfs ---- ----- ---- ----- ---- ----- ---- ----- aacd0s1a / 512MB UFS2 Y aacd0s1b swap 4056MB SWAP aacd0s1d /tmp 512MB UFS2+S Y aacd0s1e /usr 10240MB UFS2+S Y aacd0s1f /var 580GB UFS2+S Y > Could you perhaps add debugging printf()'s to Int_Open_Disk() to try to > trace what is going on? I'll see what I can do. Ian -- Ian Freislich