Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 04 Oct 2017 08:16:03 +0300
From:      Toomas Soome <tsoome@me.com>
To:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: Booting native 4K SSD disk from FreeBSD ?
Message-ID:  <EDF1FC64-36E6-4D86-B7E5-EC145D278500@me.com>
In-Reply-To: <10608d2a-4209-25c1-4117-8568993bfe6a@selasky.org>
References:  <10608d2a-4209-25c1-4117-8568993bfe6a@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help


> On 4 Oct 2017, at 00:18, Hans Petter Selasky <hps@selasky.org> wrote:
>=20
> Hi,
>=20
> I accidentially ordered a Sata SSD disk which diskinfo reports a =
sector-size 4K instead of 512 bytes. Trying to get it to boot under =
FreeBSD appeared impossible. Then I started looking into the boot0,1,2 =
and loader and the assumptions they make about 512 byte sector size LBA =
:-(
>=20
> Anyone has any recommendations or experience about how to use native =
4K disks with FreeBSD?
>=20

The fastest way right now is via UEFI boot, it should be able to cope =
with 4k, but as Allan noted, there may be some corners.

The BIOS version is totally out right now, it only is supporting 512B =
sectors. I have been working to fix it starting with loader libi386 =
biosdisk interface (for loader itself), but due to lack of time it has =
been delayed somewhat. The plain loader bits are done, but the +GELI =
needs more work (the code has to cope with 512/4k sector and GELI is =
only doing 4k logical IO). The hard part is about the boot1 code =
(boot1,gptboot etc) and thats due to boot block area size limits (in =
existing setups). We are struggling to fit into UFS boot block area, and =
freebsd-boot and ESP sizes are also very small, making all this pain in =
the =E2=80=A6=20

rgds,
toomas




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?EDF1FC64-36E6-4D86-B7E5-EC145D278500>