Question: Does LBA always specify sectors as 512?bytes even if the drive is formatted with 4K?sectors? Because I read that you should format the partition boundaries so that the 4K?clusters line up with 4K?sectors. I’m assuming this problem arises if the disk is formatted with 4K?sectors but LBA assigns it every 512?bytes. Is this the reason? Also, is the reason the logical drive geometry is different from the physical drive geometry �C to maintain backwards compatibility with old standards and limitations with CHS? If the drive-reported geometry is not accurate, why do partitions still need to start at sector?63 (if that is no longer always the correct cylinder)?
And are clusters aligned with the start of the partition or the start of the disk?
Answer:
- Does LBA always specify sectors as 512?bytes even if the drive is formatted with 4K?sectors?
Yes, a lot of code in the world was written in the times of exclusive domination of 512-byte sectors. This code cannot handle any other sector size, so BIOS / disk hardware always emulates 512-bytes sectors regardless of actual sector size. Otherwise, 95% of operating systems just wouldn’t boot from such disks at all.
- Also, is the reason the logical drive geometry is different from the physical drive geometry �C to maintain backwards compatibility with old standards and limitations with CHS?
There are boundaries in CHS addressing system. 1? ?S? ?63, 0? ?H? ?255 (and sometimes 0? ?C? ?1023). It is the reason why logical geometry exists and is different from the physical geometry.
- If the drive-reported geometry is not accurate, why do partitions still need to start at sector?63 (if that is no longer always the correct cylinder)?
Since Windows Vista, FDISK creates the first partition on LBA sector 2048 (1M alignment). It may have any CHS coordinates; they do not matter anymore.
In Windows XP and previous versions, the first partition was created on CHS sector (C=0,?H=1,?S=1) which usually maps to LBA sector 63 (if logical geometry of this disk has 63 sectors per track). Some USB flash drives have logical geometry with 32 virtual sectors per track, so the first partition starts on LBA sector 32 for them. In any case, all of this has nothing to do with actual disk geometry, performance reasons, etc �C it’s a pure tradition, terminated in Vista/Windows?7.
- Are clusters aligned with the start of the partition or the start of the disk?
Clusters are always aligned with the start of the partition. So they may be misaligned on disk, if the partition was created in pre-Vista FDISK and is misaligned itself.