From owner-freebsd-current@freebsd.org Tue Oct 3 21:35:46 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0F96EE2537C for ; Tue, 3 Oct 2017 21:35:46 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from mx1.scaleengine.net (mx1.scaleengine.net [209.51.186.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DF7B264F64 for ; Tue, 3 Oct 2017 21:35:45 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from Ticonderoga.HML3.ScaleEngine.net (senat1-01.HML3.ScaleEngine.net [209.51.186.5]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id 2D3C413108 for ; Tue, 3 Oct 2017 21:35:44 +0000 (UTC) Subject: Re: Booting native 4K SSD disk from FreeBSD ? To: freebsd-current@freebsd.org References: <10608d2a-4209-25c1-4117-8568993bfe6a@selasky.org> From: Allan Jude Message-ID: Date: Tue, 3 Oct 2017 17:36:59 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <10608d2a-4209-25c1-4117-8568993bfe6a@selasky.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Oct 2017 21:35:46 -0000 On 10/03/2017 17:18, Hans Petter Selasky wrote: > Hi, > > 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 :-( > > Anyone has any recommendations or experience about how to use native 4K > disks with FreeBSD? > > --HPS > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" It is not possible in legacy/BIOS mode, because the BIOS calls do not let you specify a sector size. However, you SHOULD be able to boot from the 4k device using UEFI. I am trying to debug a problem I am having with this on my new Mac, which has a 4k NVMe disk. -- Allan Jude