Overriding reported sector size

From: martin f krafft
Date: Thu Sep 29 2011 - 06:28:38 EST


Dear list,

recent disks >2Tb come with 4k sectors, but they report 512b sectors
to the OS for "backwards-compatibility" â presumably, other OSs
do not differentiate between physical and logical sector size, which
Linux can do and does.

All the block device layers nowadays can auto-align themselves, but
that obviously only works when they know the true sector size.

Rather than fixing each and every tool, and/or telling each and
every tool to ignore the reported sector size and to use 4k instead,
is there a way by which I can "fix" the sector size at the OS-level?

Thanks,

--
.''`. martin f. krafft <madduck@xxx> Related projects:
: :' : proud Debian developer http://debiansystem.info
`. `'` http://people.debian.org/~madduck http://vcs-pkg.org
`- Debian - when you have better things to do than fixing systems

"never trust a woman who wears mauve, whatever her age may be, or a
woman over thirty-five who is fond of pink ribbons. it always means
they have a history."
-- oscar wilde

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)