Re: ATA support for 4k sector size

From: Bill Davidsen
Date: Sat Mar 21 2009 - 21:21:11 EST


H. Peter Anvin wrote:
Greg Freemyer wrote:

I'm not intimate with the details, but I would hope most boot loaders
by now use LBA values to find the boot code, not CHS.


Yes, for "true" hard drives this is pretty much universal these days (except for MS-DOS and its ilk.) For USB and so on some BIOSes are still stuck in old times. Sigh.

If so the issue becomes the partitioning tools (fdisk etc.) putting
the partitions at the right place. Can't those tools bypass the bios
somehow and ask the drive itself what it's geometry is?

It can, but it MUST NOT do so. The fields that are to be entered into the partition table are BIOS CHS values, not any other kind of CHS.

I can recall playing with the disk "geometry" in the expert part of fdisk and not getting any particular bad effects, so I'm not sure why you MUST NOT other than the SSD you mentioned. However, the reason it was long ago is that aligning things in some possibly batter way didn't make a measurable difference in performance, so I went back to defaults, so I agree with your advice, it doesn't seem to help.

--
Bill Davidsen <davidsen@xxxxxxx>
"We have more to fear from the bungling of the incompetent than from
the machinations of the wicked." - from Slashdot

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