Subject: Re: bin/33633: /sbin/fdisk does not work
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,>
From: David Laight <david@l8s.co.uk>
List: netbsd-bugs
Date: 06/03/2006 10:05:03
The following reply was made to PR bin/33633; it has been noted by GNATS.

From: David Laight <david@l8s.co.uk>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: bin/33633: /sbin/fdisk does not work
Date: Sat, 3 Jun 2006 11:11:47 +0100

 On Sat, Jun 03, 2006 at 12:00:04AM +0000, Yoshito Komatsu wrote:
 
 The only partition entry is:
 
 >  01be  80 01 01 00 a9 b2 ff ff  3f 00 00 00 41 63 38 1d
 
 Which (as usual) starts at sector 63 and is cylinder 0, head 1, sector 1
 as expected.  This is enough to determine the 'sectors per track' [1], but
 since the end (0x3f + 0x1d386342) is beyond the CHS limit is isn't
 possible to determine the number of heads (and hence cylinders).
 
 At most fdisk should warn about this - so christos change is ok...
 
 	David
 
 [1] the code doesn't detect this special case, but will default to 63.
 
 -- 
 David Laight: david@l8s.co.uk