bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "partnew" Command Writes Wrong Ending Cylinder in MPT


From: sburtchin
Subject: Re: "partnew" Command Writes Wrong Ending Cylinder in MPT
Date: Sat, 9 Dec 2006 22:38:17 -0800 (PST)


sburtchin wrote:
> 
> BUG Found! - well, more or less depend on your POV.
> .
> .
> .
> The problem occurs at this code line:
> 
>       if (cylinder >= buf_geom.cylinders) 
>         cylinder = buf_geom.cylinders - 1;
> 

The problem is actually more general than that.  GRUB is not reading my
geometry correctly.  Here is what GRUB sees:

>geometry (hd0)
drive 0x80: C/H/S 1022/240/63, sectors=160086528, LBA
Partition 0 -- fat - 0xb
.
.

>geometry (hd1)
drive 0x81: C/H/S 831/240/63, sectors=12594960, LBA (Secondary Master)
Partition 0 -- fat - 0xb
.
.

These should be C/H/S 1024/240/63 and 833/240/63.
-- 
View this message in context: 
http://www.nabble.com/%22partnew%22-Command-Writes-Wrong-Ending-Cylinder-in-MPT-tf2599372.html#a7779713
Sent from the Grub - Bugs mailing list archive at Nabble.com.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]