Re: RFC: disk geometry via sysfs

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

 



Alan Cox wrote:
On Mer, 2006-02-15 at 11:20 -0500, Phillip Susi wrote:
Why do you say the partitioning tool needs to know the disk reported C/H/S? The value stored in the MBR must match the bios reported values, not the disk reported ones, so why does the partitioner care about what the disk reports?

You answered that in asking the question.  "The value stored in the MBR
must match the ...". What if the MBR has not yet been written ?


The value in the MBR must match the _bios_ value, not the value that the disk reports in its inquiry command ( which often will be different ). When creating a new MBR you need to get the geometry from the bios, not the drive itself.

(Also btw its *should*...) most modern OS's will take a sane MBR
geometry and trust it over BIOS defaults.


If the value in the MBR differs from the geometry that the bios reports, then boot code using int 13 in chs mode will fail because it won't be using the geometry that the bios expects.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux