James Harris
2020-03-29 10:01:46 UTC
Some queries on interacting with Advanced Format (4k) drives.
When will it become unsafe for an OS to assume that an HDD's sector size
is 512 bytes? Or has it become unsafe already???
AIUI 4k drives have two modes: 512e meaning emulation of 512-byte
sectors and 4kn meaning 4k native.
I would hope that older commands such as ATA Read Sectors (0x20 or 0x21)
will always transfer data in 512-byte units, and there would be separate
commands to read and write larger sectors.
Or, failing that, that all drives would emulate 512-byte sectors by
default and they would have to be switched to 4kn mode if an OS was
ready for it.
But is that true? I fear it's not as it seems some drives are
specifically sold as 512e and some as 4kn.
Anyone know?
When will it become unsafe for an OS to assume that an HDD's sector size
is 512 bytes? Or has it become unsafe already???
AIUI 4k drives have two modes: 512e meaning emulation of 512-byte
sectors and 4kn meaning 4k native.
I would hope that older commands such as ATA Read Sectors (0x20 or 0x21)
will always transfer data in 512-byte units, and there would be separate
commands to read and write larger sectors.
Or, failing that, that all drives would emulate 512-byte sectors by
default and they would have to be switched to 4kn mode if an OS was
ready for it.
But is that true? I fear it's not as it seems some drives are
specifically sold as 512e and some as 4kn.
Anyone know?
--
James Harris
James Harris