Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Aug 2008 11:05:47 +0400
From:      pluknet <pluknet@gmail.com>
To:        "Sten Daniel Soersdal" <netslists@gmail.com>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: Sector size of 4096 bytes (not 512)
Message-ID:  <a31046fc0808260005m59fabe2fn723b3be68bb6803a@mail.gmail.com>
In-Reply-To: <48B3A11C.6030504@gmail.com>
References:  <48B3A11C.6030504@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
2008/8/26 Sten Daniel Soersdal <netslists@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a31046fc0808260005m59fabe2fn723b3be68bb6803a>