
On 24/07/12 17:25, Russell Coker wrote:
On Tue, 24 Jul 2012, Colin Fee <tfeccles@gmail.com> wrote:
Logical Sector size: 512 bytes Physical Sector size: 4096 bytes
So if you have a drive like that (as some of my drives return the same numbers) then how do you make sure that the partitions are correctly aligned? Or does parted just do the right thing?
If you align your sectors as if it were a 4k drive operating in 512-emulation mode, then it'll still work fine on a drive that is actually 512-byte sectors. I gather that recent Linux disk tools, and MS Windows, defaults to setting up disks with partitions/filesystems aligned to 4k boundaries by default. You lose, like, a megabyte, so its not a problem. However there do seem to be a lot of disks that mis-report their physical sector size. Why would that be? One of my disks does, and I'm aware that Samsung have a firmware update that corrects it, but it seems like an odd thing to get wrong in the first place.