At 01:22 PM 6/4/05 -0700, Neil wrote:
Lief Hendrickson said:
[...]
> In addition to getting a partition report from Partition Magic, I
> discovered the Linux Fdisk command with readonly option. I ran it and
> it
> listed the partitions without reporting any errors. The first line
> cites
> the number of bytes. The number is greater than
> Heads*Cylinders*Sectors*512. The reported number is greater then the
> product by approx 1.5 M (on a 60 G hd). Would these "extra" bytes
> come
> from using more bytes per sector on the outer sectors? It creates
> difficulty when trying to figure where the head boundaries are located
> (one
> of the Partition Magic complaints was partitions boundaries not
> occurring
> on head boundaries)
Greater than what product, Partition Magic? I can't say why the two
don't agree. I can say I trust Linux fdisk to "Do the Right Thing"
(TM).
--
Neil Schneider pacneil_at_linuxgeek_dot_net
The multiplication "product" - greater than the product of
Heads*Cylinders*Sectors*512
Here is the Linux Fdisk output:
Disk /dev/hda: 61.4 GB, 61491756544 bytes
240 heads, 63 sectors/track, 7943 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 2710 20487568+ c W95 FAT32 (LBA)
/dev/hda2 2710 7943 39566205 f W95 Ext'd (LBA)
/dev/hda5 2710 4065 10241437+ b W95 FAT32
/dev/hda6 4065 4078 102280+ 83 Linux
/dev/hda7 4078 4113 262048+ 82 Linux swap
/dev/hda8 4113 7943 28953760+ 83 Linux
Note the first line says 61,491,756,544 bytes
However, heads * cylinders * sectors * 512 = 240 * 7943 * 63 * 512 =
61,490,257,920
The first line of the report is too high by 61,491,756,544 - 61,490,257,920
= 1,498,624 bytes
Where did the extra bytes come from?
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-newbie