Sector size of 4096 bytes (not 512)

pluknet pluknet at gmail.com
Tue Aug 26 07:37:34 UTC 2008


2008/8/26 Sten Daniel Soersdal <netslists at gmail.com>:
>
> Does anyone know if i might run into any surprises if my hdd has 4096 byte
> sized sectors and not the regular 512, it is low-level formatted that way.
> I want to run a regular FreeBSD (v7) installation on it for a machine that
> goes into production relatively soon after that.
> I tried Googling but i have trouble finding definitive answers.
> I have noticed on the many lists that people writing device drivers and
> filesystem utils often assume it's 512B in size.
> My (lack of) confidence in my own understanding of the filesystem code makes
> me uncertain. (I looked in src/sys/boot and src/sys/ufs).
>

You should not change the sector size, because it is value of the
physical parameter on disc
(typically it's 512 for magnetic discs and 4096 for optical discs),
not whatever logical value.
You should better check tuning(7)/tunefs(8) man pages if you want to
tune up your system.

wbr,
pluknet


More information about the freebsd-fs mailing list