Bug 14974

Summary: In RELENG_3, fdisk reports sizes incorrectly
Product: Base System Reporter: shimon <shimon>
Component: confAssignee: John Baldwin <jhb>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description shimon 1999-11-18 12:50:01 UTC
# 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
Comment 1 jhb 2000-08-25 10:07:21 UTC
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/
Comment 2 Sheldon Hearn freebsd_committer freebsd_triage 2000-08-25 10:27:38 UTC
State Changed
From-To: open->feedback

jhb asked for feedback.
Comment 3 Sheldon Hearn freebsd_committer freebsd_triage 2000-08-25 10:28:07 UTC
Responsible Changed
From-To: freebsd-bugs->jhb

John will want the feedback.
Comment 4 John Baldwin freebsd_committer freebsd_triage 2001-03-11 01:46:00 UTC
State Changed
From-To: feedback->closed

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.