From owner-freebsd-current@FreeBSD.ORG Tue Mar 11 07:49:11 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 0C191106566B; Tue, 11 Mar 2008 07:49:11 +0000 (UTC) (envelope-from rink@tragedy.rink.nu) Received: from mx1.rink.nu (alastor.rink.nu [213.34.49.5]) by mx1.freebsd.org (Postfix) with ESMTP id A98738FC21; Tue, 11 Mar 2008 07:49:10 +0000 (UTC) (envelope-from rink@tragedy.rink.nu) Received: from localhost (alastor.rink.nu [213.34.49.5]) by mx1.rink.nu (Postfix) with ESMTP id 176CBBFECC6; Tue, 11 Mar 2008 07:49:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at rink.nu Received: from mx1.rink.nu ([213.34.49.5]) by localhost (alastor.rink.nu [213.34.49.5]) (amavisd-new, port 10024) with ESMTP id H25M3anABwKS; Tue, 11 Mar 2008 07:48:59 +0000 (UTC) Received: from tragedy.rink.nu (tragedy.rink.nu [213.34.49.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.rink.nu (Postfix) with ESMTP id 1076DBFECC4; Tue, 11 Mar 2008 07:48:59 +0000 (UTC) Received: from tragedy.rink.nu (tragedy.rink.nu [213.34.49.3]) by tragedy.rink.nu (8.13.8/8.13.8) with ESMTP id m2B7mwvA057102; Tue, 11 Mar 2008 08:48:59 +0100 (CET) (envelope-from rink@tragedy.rink.nu) Received: (from rink@localhost) by tragedy.rink.nu (8.13.8/8.13.8/Submit) id m2B7mwJS057101; Tue, 11 Mar 2008 08:48:58 +0100 (CET) (envelope-from rink) Date: Tue, 11 Mar 2008 08:48:58 +0100 From: Rink Springer To: Ian FREISLICH Message-ID: <20080311074858.GB2327@rink.nu> References: <20080310125117.GA74239@rink.nu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Cc: Rink Springer , 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 07:49:11 -0000 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. Could you perhaps add debugging printf()'s to Int_Open_Disk() to try to trace what is going on? -- Rink P.W. Springer - http://rink.nu "Anyway boys, this is America. Just because you get more votes doesn't mean you win." - Fox Mulder