From nobody@FreeBSD.ORG Thu Nov 18 04:44:45 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 4DE491503C; Thu, 18 Nov 1999 04:44:45 -0800 (PST)
Message-Id: <19991118124445.4DE491503C@hub.freebsd.org>
Date: Thu, 18 Nov 1999 04:44:45 -0800 (PST)
From: shimon@simon-shapiro.org
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: In RELENG_3, fdisk reports sizes incorrectly
X-Send-Pr-Version: www-1.0

>Number:         14974
>Category:       conf
>Synopsis:       In RELENG_3, fdisk reports sizes incorrectly
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    jhb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 18 04:50:01 PST 1999
>Closed-Date:    Sat Mar 10 17:46:00 PST 2001
>Last-Modified:  Sat Mar 10 17:49:11 PST 2001
>Originator:     Simon Shapiro
>Release:        RELENG_3
>Organization:
Simon's Garage
>Environment:
FreeBSD brass.simon-shapiro.org 3.3-STABLE FreeBSD 3.3-STABLE #1: Tue Nov 16 13:48:39 EST 1999     ShimonR@nomis.simon-shapiro.org:/usr/src/RELENG_3/src/sys/compile/BRASS  i386

>Description:
# fdisk i2o0
Nov 18 07:41:57 brass /boot/kernel.i2o: i2o0: cannot find label (no disk label)
******* Working on device /dev/ri2o0 *******
parameters extracted from in-core disklabel are:
cylinders=43391 heads=64 sectors/track=32 (2048 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=43391 heads=64 sectors/track=32 (2048 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165,(FreeBSD/NetBSD/386BSD)
    start 2048, size 88864768 (43391 Meg), flag 80 (active)
	beg: cyl 1/ sector 1/ head 0;
	end: cyl 383/ sector 32/ head 63  <<--------<<  This is WRONG!
The data for partition 2 is:
<UNUSED>

>How-To-Repeat:
Create a slice over 2GB in size
>Fix:


>Release-Note:
>Audit-Trail:

From: John Baldwin <jhb@pike.osd.bsdi.com>
To: freebsd-gnats-submit@FreeBSD.org, shimon@simon-shapiro.org
Cc:  
Subject: Re: conf/14974: In RELENG_3, fdisk reports sizes incorrectly
Date: Fri, 25 Aug 2000 02:07:21 -0700 (PDT)

 Is this problem still present in 4.1 release or RELENG_4?
 
 -- 
 
 John Baldwin <jhb@bsdi.com> -- http://www.FreeBSD.org/~jhb/
 PGP Key: http://www.cslab.vt.edu/~jobaldwi/pgpkey.asc
 "Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/
 
State-Changed-From-To: open->feedback 
State-Changed-By: sheldonh 
State-Changed-When: Fri Aug 25 02:27:38 PDT 2000 
State-Changed-Why:  
jhb asked for feedback. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=14974 
Responsible-Changed-From-To: freebsd-bugs->jhb 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Fri Aug 25 02:28:07 PDT 2000 
Responsible-Changed-Why:  
John will want the feedback. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=14974 
State-Changed-From-To: feedback->closed 
State-Changed-By: jhb 
State-Changed-When: Sat Mar 10 17:46:00 PST 2001 
State-Changed-Why:  
The described behavior is not actually a bug, rather it appears to be a 
quirk of the PC BIOS due to the limiations of the MBR slice table. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=14974 
>Unformatted:
